1"use strict";(self.webpackChunkcommudle_admin=self.webpackChunkcommudle_admin||[]).push([[4286],{44286:(am,it,s)=>{s.r(it),s.d(it,{PublicHackathonModule:()=>nm});var m=s(98434),f=s(69262),A=s(69377),t=s(23214),C=s(98426),J=s(36908),u=s(52050),_=s(76800),P=s(990),l=s(45383),at=s(53703),O=s(55337),W=s(39127),y=s(21413),b=s(56977),F=s(48213),k=s(20060),rt=s(96299),R=s(5731),$=s(18292),X=s(49026);let Et=(()=>{class e{constructor(n){this.el=n,this.maxTilt=15,this.perspective=1e3,this.scale=1.05,this.tiltOnLoad=!0,this.el.nativeElement.style.transition="transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1)",this.el.nativeElement.style.transformStyle="preserve-3d",this.el.nativeElement.style.willChange="transform"}ngAfterViewInit(){this.tiltOnLoad&&(this.el.nativeElement.style.transition="none",this.el.nativeElement.style.transform=`perspective(${this.perspective}px) rotateX(${.6*-this.maxTilt}deg) rotateY(${.8*this.maxTilt}deg) scale(${this.scale})`,setTimeout(()=>{this.el.nativeElement.style.transition="transform 1.5s cubic-bezier(0.25, 0.8, 0.25, 1)",this.el.nativeElement.style.transform=`perspective(${this.perspective}px) rotateX(0deg) rotateY(0deg) scale(1)`},800))}onMouseEnter(){this.el.nativeElement.style.transition="transform 0.1s ease-out"}onMouseMove(n){const i=this.el.nativeElement.getBoundingClientRect(),o=n.clientX-i.left,r=n.clientY-i.top,c=i.width/2,p=i.height/2,h=(r-p)/p*-this.maxTilt,M=(o-c)/c*this.maxTilt;this.el.nativeElement.style.setProperty("--mouse-x",`${o}px`),this.el.nativeElement.style.setProperty("--mouse-y",`${r}px`),this.el.nativeElement.style.transform=`perspective(${this.perspective}px) rotateX(${h}deg) rotateY(${M}deg) scale(${this.scale})`}onMouseLeave(){this.el.nativeElement.style.transition="transform 0.5s ease-out",this.el.nativeElement.style.transform=`perspective(${this.perspective}px) rotateX(0deg) rotateY(0deg) scale(1)`}static{this.\u0275fac=function(i){return new(i||e)(t.rXU(t.aKT))}}static{this.\u0275dir=t.FsC({type:e,selectors:[["","appTilt",""]],hostBindings:function(i,o){1&i&&t.bIt("mouseenter",function(){return o.onMouseEnter()})("mousemove",function(c){return o.onMouseMove(c)})("mouseleave",function(){return o.onMouseLeave()})},inputs:{maxTilt:"maxTilt",perspective:"perspective",scale:"scale",tiltOnLoad:"tiltOnLoad"}})}}return e})();var I=s(97586),T=s.n(I),ct=s(96508),g=s(14481),st=s(10245),St=s(24113),$t=s(22015);const It=(e,a)=>({"chip-closed":e,"chip-open":a}),lt=(e,a,n)=>["/communities",e,"hackathons",a,"fill-form",n];function zt(e,a){if(1&e&&(t.j41(0,"h1",14),t.EFF(1),t.k0s()),2&e){const n=t.XpG(3);t.R7$(),t.JRh(n.hackathon.name)}}function Ht(e,a){if(1&e&&(t.j41(0,"div",11)(1,"div",12),t.DNE(2,zt,2,1,"h1",13),t.k0s()()),2&e){const n=t.XpG(2);t.R7$(2),t.Y8G("ngIf",n.showName)}}function Yt(e,a){if(1&e&&(t.j41(0,"div",15),t.nrm(1,"app-community-badge",16),t.k0s()),2&e){const n=t.XpG(2);t.R7$(),t.Y8G("community",n.community)("size","small")}}function Bt(e,a){if(1&e&&(t.j41(0,"div",8),t.DNE(1,Ht,3,1,"div",9)(2,Yt,2,2,"div",10),t.k0s()),2&e){const n=t.XpG();t.R7$(),t.Y8G("ngIf",n.showName),t.R7$(),t.Y8G("ngIf",n.showCommunityBadge)}}function Xt(e,a){if(1&e&&(t.j41(0,"span",23),t.EFF(1),t.k0s()),2&e){const n=t.XpG(2);t.R7$(),t.SpI("",n.hackathon.winners_count," winners")}}function Ut(e,a){if(1&e&&(t.j41(0,"span",23),t.EFF(1),t.k0s()),2&e){const n=t.XpG(2);t.R7$(),t.SpI("",n.hackathon.tracks_count," tracks")}}function Nt(e,a){if(1&e&&(t.j41(0,"div",17)(1,"div",18)(2,"span",19),t.EFF(3,"TOTAL PRIZE POOL"),t.k0s(),t.j41(4,"span",20),t.EFF(5),t.nI1(6,"number"),t.k0s()(),t.j41(7,"div",21),t.DNE(8,Xt,2,1,"span",22)(9,Ut,2,1,"span",22),t.k0s()()),2&e){const n=t.XpG();t.R7$(5),t.Lme("",n.totalPrizesByCurrency[0].currency.symbol," ",t.bMT(6,4,n.totalPrizesByCurrency[0].amount),""),t.R7$(3),t.Y8G("ngIf",n.hackathon.winners_count),t.R7$(),t.Y8G("ngIf",n.hackathon.tracks_count)}}function Lt(e,a){if(1&e&&(t.j41(0,"div",29),t.nrm(1,"fa-icon",30),t.j41(2,"span"),t.EFF(3),t.nI1(4,"date"),t.k0s()()),2&e){const n=t.XpG(2);t.R7$(),t.Y8G("icon",n.icons.faCalendarDays),t.R7$(2),t.JRh(t.i5U(4,2,n.hackathon.start_date,"d MMM"))}}function Vt(e,a){if(1&e&&(t.j41(0,"div",29),t.nrm(1,"fa-icon",30),t.j41(2,"span"),t.EFF(3),t.nI1(4,"titlecase"),t.k0s()()),2&e){const n=t.XpG(2);t.R7$(),t.Y8G("icon",n.icons.faGlobe),t.R7$(2),t.JRh(t.bMT(4,2,n.hackathon.hackathon_location_type))}}function At(e,a){if(1&e&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&e){const n=t.XpG(4);t.R7$(),t.JRh(n.hackathon.location_address)}}function Jt(e,a){if(1&e&&(t.j41(0,"a",33),t.DNE(1,At,2,1,"span",27),t.k0s()),2&e){const n=t.XpG(3);t.Y8G("href",n.hackathon.location_map_link,t.B4B),t.R7$(),t.Y8G("ngIf",n.hackathon.location_address)}}function Wt(e,a){if(1&e&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&e){const n=t.XpG(4);t.R7$(),t.JRh(n.hackathon.location_name)}}function Qt(e,a){if(1&e&&t.DNE(0,Wt,2,1,"span",27),2&e){const n=t.XpG(3);t.Y8G("ngIf",n.hackathon.location_name)}}function qt(e,a){if(1&e&&(t.j41(0,"div",31),t.nrm(1,"fa-icon",30),t.DNE(2,Jt,2,2,"a",32)(3,Qt,1,1,"ng-template",null,0,t.C5r),t.k0s()),2&e){const n=t.sdS(4),i=t.XpG(2);t.R7$(),t.Y8G("icon",i.icons.faLocationDot),t.R7$(),t.Y8G("ngIf",i.hackathon.location_map_link)("ngIfElse",n)}}function Kt(e,a){if(1&e&&(t.j41(0,"div",29),t.nrm(1,"fa-icon",30),t.j41(2,"span"),t.EFF(3),t.k0s()()),2&e){const n=t.XpG(2);t.R7$(),t.Y8G("icon",n.icons.faAward),t.R7$(2),t.SpI("",n.hackathon.prizes_count," Prizes")}}function Zt(e,a){if(1&e&&(t.j41(0,"div",36),t.nrm(1,"fa-icon",30),t.j41(2,"span"),t.EFF(3,"Completed"),t.k0s()()),2&e){const n=t.XpG(3);t.R7$(),t.Y8G("icon",n.icons.faCircleCheck)}}function tn(e,a){1&e&&(t.j41(0,"div",37),t.nrm(1,"span",38),t.j41(2,"span"),t.EFF(3,"Live"),t.k0s()())}function nn(e,a){if(1&e&&(t.qex(0),t.DNE(1,Zt,4,1,"div",34)(2,tn,4,0,"div",35),t.bVm()),2&e){const n=t.XpG(2);t.R7$(),t.Y8G("ngIf",(null==n.hackathon?null:n.hackathon.status)===(null==n.EHackathonStatus?null:n.EHackathonStatus.COMPLETED)),t.R7$(),t.Y8G("ngIf",(null==n.hackathon?null:n.hackathon.status)===(null==n.EHackathonStatus?null:n.EHackathonStatus.OPEN))}}function en(e,a){if(1&e&&(t.qex(0),t.EFF(1),t.bVm()),2&e){const n=t.XpG(4);t.R7$(),t.Lme(" ",n.momentTimezone.tz(n.moment.utc(n.hackathon.application_start_date),n.hackathon.timezone).format("DD MMM YYYY")," ",n.momentTimezone.tz(n.hackathon.timezone).format("z")," ")}}function on(e,a){if(1&e&&(t.qex(0),t.EFF(1),t.nI1(2,"date"),t.bVm()),2&e){const n=t.XpG(4);t.R7$(),t.JRh(t.i5U(2,1,n.hackathon.application_start_date,"dd MMM yyyy"))}}function an(e,a){if(1&e&&(t.j41(0,"span")(1,"span",41),t.EFF(2,"\u2022"),t.k0s(),t.j41(3,"span"),t.EFF(4,"Registrations starts on - "),t.DNE(5,en,2,2,"ng-container",27)(6,on,3,4,"ng-container",27),t.k0s()()),2&e){const n=t.XpG(3);t.R7$(5),t.Y8G("ngIf",n.hackathon.timezone),t.R7$(),t.Y8G("ngIf",!n.hackathon.timezone)}}function rn(e,a){if(1&e&&(t.j41(0,"span",42)(1,"span",43)(2,"span",44)(3,"span",45)(4,"span",46),t.EFF(5),t.k0s()(),t.j41(6,"span",47),t.EFF(7,"Days"),t.k0s()(),t.j41(8,"span",44)(9,"span",45)(10,"span",46),t.EFF(11),t.k0s()(),t.j41(12,"span",47),t.EFF(13,"Hours"),t.k0s()(),t.j41(14,"span",44)(15,"span",45)(16,"span",46),t.EFF(17),t.k0s()(),t.j41(18,"span",47),t.EFF(19,"Minutes"),t.k0s()(),t.j41(20,"span",44)(21,"span",45)(22,"span",46),t.EFF(23),t.k0s()(),t.j41(24,"span",47),t.EFF(25,"Seconds"),t.k0s()()()()),2&e){const n=t.XpG(3);t.R7$(4),t.AVh("flip",n.countdownFlip.days),t.R7$(),t.JRh(n.countdownDays<10?"0"+n.countdownDays:n.countdownDays),t.R7$(5),t.AVh("flip",n.countdownFlip.hours),t.R7$(),t.JRh(n.countdownHours<10?"0"+n.countdownHours:n.countdownHours),t.R7$(5),t.AVh("flip",n.countdownFlip.minutes),t.R7$(),t.JRh(n.countdownMinutes<10?"0"+n.countdownMinutes:n.countdownMinutes),t.R7$(5),t.AVh("flip",n.countdownFlip.seconds),t.R7$(),t.JRh(n.countdownSeconds<10?"0"+n.countdownSeconds:n.countdownSeconds)}}function cn(e,a){1&e&&(t.j41(0,"span")(1,"span",41),t.EFF(2,"\u2022"),t.k0s(),t.j41(3,"span"),t.EFF(4,"Registrations closed"),t.k0s()())}function sn(e,a){if(1&e&&(t.j41(0,"div",39),t.DNE(1,an,7,2,"span",27)(2,rn,26,12,"span",40)(3,cn,5,0,"span",27),t.k0s()),2&e){const n=t.XpG(2);t.Y8G("ngClass",t.l_i(4,It,"Closed"===n.hackathonStatus,"Closed"!==n.hackathonStatus)),t.R7$(),t.Y8G("ngIf","Upcoming"===n.hackathonStatus),t.R7$(),t.Y8G("ngIf","Outgoing"===n.hackathonStatus),t.R7$(),t.Y8G("ngIf","Closed"===n.hackathonStatus&&n.hackathon.status===n.EHackathonStatus.OPEN)}}function ln(e,a){if(1&e&&(t.j41(0,"div",24),t.DNE(1,Lt,5,5,"div",25)(2,Vt,5,4,"div",25)(3,qt,5,3,"div",26)(4,Kt,4,2,"div",25)(5,nn,3,2,"ng-container",27)(6,sn,4,7,"div",28),t.k0s()),2&e){const n=t.XpG();t.R7$(),t.Y8G("ngIf",n.hackathon.start_date&&n.showLocation),t.R7$(),t.Y8G("ngIf",n.showLocation),t.R7$(),t.Y8G("ngIf",n.showLocation&&n.hackathon.location_address),t.R7$(),t.Y8G("ngIf",n.showLocation&&n.hackathon.prizes_count),t.R7$(),t.Y8G("ngIf",n.showStatusBadge),t.R7$(),t.Y8G("ngIf",n.hackathon.application_start_date&&n.hackathon.application_end_date&&n.hackathon.status===n.EHackathonStatus.OPEN&&n.showCountdown)}}function mn(e,a){if(1&e&&(t.j41(0,"div",54)(1,"span",55),t.EFF(2,"Starts"),t.k0s(),t.j41(3,"span",56),t.EFF(4),t.k0s(),t.j41(5,"span",57),t.EFF(6),t.k0s()()),2&e){const n=t.XpG(3);t.R7$(4),t.JRh(n.momentTimezone.tz(n.moment.utc(n.hackathon.start_date),n.hackathon.timezone).format("DD MMM YYYY")),t.R7$(2),t.Lme("",n.momentTimezone.tz(n.moment.utc(n.hackathon.start_date),n.hackathon.timezone).format("h:mm A")," ",n.momentTimezone.tz(n.hackathon.timezone).format("z"),"")}}function dn(e,a){if(1&e&&(t.j41(0,"div",54)(1,"span",55),t.EFF(2,"Ends"),t.k0s(),t.j41(3,"span",56),t.EFF(4),t.k0s(),t.j41(5,"span",57),t.EFF(6),t.k0s()()),2&e){const n=t.XpG(3);t.R7$(4),t.JRh(n.momentTimezone.tz(n.moment.utc(n.hackathon.end_date),n.hackathon.timezone).format("DD MMM YYYY")),t.R7$(2),t.Lme("",n.momentTimezone.tz(n.moment.utc(n.hackathon.end_date),n.hackathon.timezone).format("h:mm A")," ",n.momentTimezone.tz(n.hackathon.timezone).format("z"),"")}}function gn(e,a){if(1&e&&(t.j41(0,"div",50)(1,"span",51),t.EFF(2,"Hackathon Dates"),t.k0s(),t.j41(3,"div",52),t.DNE(4,mn,7,3,"div",53)(5,dn,7,3,"div",53),t.k0s()()),2&e){const n=t.XpG(2);t.R7$(4),t.Y8G("ngIf",n.hackathon.timezone),t.R7$(),t.Y8G("ngIf",n.hackathon.timezone)}}function _n(e,a){if(1&e&&(t.j41(0,"div",52)(1,"div",54)(2,"span",55),t.EFF(3,"Opens"),t.k0s(),t.j41(4,"span",56),t.EFF(5),t.k0s(),t.j41(6,"span",57),t.EFF(7),t.k0s()(),t.j41(8,"div",54)(9,"span",55),t.EFF(10,"Closes"),t.k0s(),t.j41(11,"span",56),t.EFF(12),t.k0s(),t.j41(13,"span",57),t.EFF(14),t.k0s()()()),2&e){const n=t.XpG(3);t.R7$(5),t.JRh(n.momentTimezone.tz(n.moment.utc(n.hackathon.application_start_date),n.hackathon.timezone).format("DD MMM YYYY")),t.R7$(2),t.Lme("",n.momentTimezone.tz(n.moment.utc(n.hackathon.application_start_date),n.hackathon.timezone).format("h:mm A")," ",n.momentTimezone.tz(n.hackathon.timezone).format("z"),""),t.R7$(5),t.JRh(n.momentTimezone.tz(n.moment.utc(n.hackathon.application_end_date),n.hackathon.timezone).format("DD MMM YYYY")),t.R7$(2),t.Lme("",n.momentTimezone.tz(n.moment.utc(n.hackathon.application_end_date),n.hackathon.timezone).format("h:mm A")," ",n.momentTimezone.tz(n.hackathon.timezone).format("z"),"")}}function pn(e,a){if(1&e&&(t.j41(0,"div",50)(1,"span",51),t.EFF(2,"Registration Dates"),t.k0s(),t.DNE(3,_n,15,6,"div",58),t.k0s()),2&e){const n=t.XpG(2);t.R7$(3),t.Y8G("ngIf",n.hackathon.timezone)}}function un(e,a){if(1&e&&(t.j41(0,"div",48),t.DNE(1,gn,6,2,"div",49)(2,pn,4,1,"div",49),t.k0s()),2&e){const n=t.XpG();t.R7$(),t.Y8G("ngIf",n.hackathon.start_date&&n.hackathon.end_date),t.R7$(),t.Y8G("ngIf",n.hackathon.application_start_date&&n.hackathon.application_end_date&&"Closed"!==n.hackathonStatus)}}function hn(e,a){if(1&e&&(t.j41(0,"div",59)(1,"div",60),t.nrm(2,"commudle-interested-members",61),t.k0s()()),2&e){const n=t.XpG();t.R7$(2),t.Y8G("users",n.users)("totalCount",n.totalUsers)}}function bn(e,a){if(1&e&&(t.j41(0,"a",64),t.EFF(1," Apply Now "),t.k0s()),2&e){const n=t.XpG(2);t.Y8G("routerLink",t.sMw(1,lt,null==n.community?null:n.community.slug,null==n.hackathon?null:n.hackathon.slug,n.hrgId))}}function Cn(e,a){if(1&e&&(t.j41(0,"a",64),t.EFF(1," Login To Apply "),t.k0s()),2&e){const n=t.XpG(2);t.Y8G("routerLink",t.sMw(1,lt,null==n.community?null:n.community.slug,null==n.hackathon?null:n.hackathon.slug,n.hrgId))}}function fn(e,a){if(1&e&&(t.j41(0,"div",62),t.DNE(1,bn,2,5,"a",63)(2,Cn,2,5,"a",63),t.k0s()),2&e){const n=t.XpG();t.R7$(),t.Y8G("ngIf",0===(null==n.userTeamDetails?null:n.userTeamDetails.length)),t.R7$(),t.Y8G("ngIf",!n.currentUser)}}let z=(()=>{class e{constructor(n,i,o,r,c){this.hackathonService=n,this.authService=i,this.logoTintService=o,this.el=r,this.platformId=c,this.showName=!0,this.showStatusBadge=!0,this.showCommunityBadge=!0,this.showPrizeHeader=!0,this.showCountdown=!0,this.showDatesRow=!0,this.showInterestedMembers=!0,this.showApplySection=!0,this.showLocation=!0,this.icons={faGlobe:l.Bwz,faAward:l.LPI,faCalendarDays:l.l6G,faClock:l.a$,faCircleCheck:l.QRE,faLocationDot:l.gKm},this.moment=I,this.momentTimezone=ct,this.EHackathonLocationType=W.Iu,this.EHackathonStatus=u.ZZ,this.countryDetails=_.aE,this.countdownFlip={days:!1,hours:!1,minutes:!1,seconds:!1},this.destroy$=new y.B,this.isBrowser=(0,A.UE)(this.platformId)}ngOnInit(){this.fetchInterestedMembers(),this.authService.currentUser$.pipe((0,b.Q)(this.destroy$)).subscribe(n=>{n&&this.getTeamDetails(),this.currentUser=n}),this.hackathon.application_start_date&&this.hackathon.application_end_date&&this.calculateHackathonDatesStatus(),this.hackathon.total_prize_amount&&(this.totalPrizesByCurrency=Object.keys(this.hackathon.total_prize_amount).map(n=>({currency:this.countryDetails.find(i=>i.currency===n)||{currency:n,symbol:n},amount:this.hackathon.total_prize_amount[n]}))),this.resolveCountdownColor()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.countdownInterval&&clearInterval(this.countdownInterval)}getTeamDetails(){this.hackathonService.getHackathonCurrentRegistrationDetail
1s(this.hackathon.id).subscribe(n=>{this.userTeamDetails=n})}calculateHackathonDatesStatus(){if(this.currentDate=new Date,this.hackathonApplicationStartDate=new Date(this.hackathon.application_start_date),this.hackathonApplicationEndDate=new Date(this.hackathon.application_end_date),this.currentDate<this.hackathonApplicationStartDate)this.hackathonStatus="Upcoming";else if(this.currentDate>=this.hackathonApplicationStartDate&&this.currentDate<=this.hackathonApplicationEndDate){this.hackathonStatus="Outgoing";const n=864e5,i=this.hackathonApplicationEndDate.getTime()-this.currentDate.getTime();this.daysLeft=Math.ceil(i/n),this.isBrowser&&this.startCountdown()}else this.currentDate>this.hackathonApplicationEndDate&&(this.hackathonStatus="Closed")}startCountdown(){const n=()=>{const i=(new Date).getTime(),r=this.hackathonApplicationEndDate.getTime()-i;if(r<=0)return this.countdownDays=0,this.countdownHours=0,this.countdownMinutes=0,this.countdownSeconds=0,clearInterval(this.countdownInterval),void(this.hackathonStatus="Closed");const c=Math.floor(r/864e5),p=Math.floor(r%864e5/36e5),h=Math.floor(r%36e5/6e4),M=Math.floor(r%6e4/1e3);void 0!==this.countdownSeconds&&(this.countdownFlip.seconds=M!==this.countdownSeconds,this.countdownFlip.minutes=h!==this.countdownMinutes,this.countdownFlip.hours=p!==this.countdownHours,this.countdownFlip.days=c!==this.countdownDays,setTimeout(()=>{this.countdownFlip={days:!1,hours:!1,minutes:!1,seconds:!1}},700)),this.countdownDays=c,this.countdownHours=p,this.countdownMinutes=h,this.countdownSeconds=M};n(),this.countdownInterval=setInterval(n,1e3)}fetchInterestedMembers(){this.hackathonService.pInterestedUsers(this.hackathon.id).subscribe(n=>{this.users=n.users,this.totalUsers=n.total_count})}resolveCountdownColor(){if(!this.isBrowser)return;const n=this.hackathon?.banner_image||this.community?.logo_image_path;n&&this.logoTintService.resolveTints([{id:"countdown",logo:{logo_image:n}}]).then(i=>{if(i.countdown?.solid){const o=i.countdown.solid.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);if(o){const r=Number(o[1]),c=Number(o[2]),p=Number(o[3]),h=`linear-gradient(180deg, rgb(${Math.round(.3*r)}, ${Math.round(.3*c)}, ${Math.round(.3*p)}) 0%, rgb(${Math.round(.5*r)}, ${Math.round(.5*c)}, ${Math.round(.5*p)}) 49.9%, rgb(${Math.round(.7*r)}, ${Math.round(.7*c)}, ${Math.round(.7*p)}) 50%, rgb(${r}, ${c}, ${p}) 100%)`;this.el.nativeElement.style.setProperty("--countdown-color",h)}}})}static{this.\u0275fac=function(i){return new(i||e)(t.rXU(O.$),t.rXU(_.uR),t.rXU(_.GR),t.rXU(t.aKT),t.rXU(t.Agw))}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["commudle-public-hackathon-details-mini-card"]],inputs:{hackathon:"hackathon",community:"community",hrgId:"hrgId",showName:"showName",showStatusBadge:"showStatusBadge",showCommunityBadge:"showCommunityBadge",showPrizeHeader:"showPrizeHeader",showCountdown:"showCountdown",showDatesRow:"showDatesRow",showInterestedMembers:"showInterestedMembers",showApplySection:"showApplySection",showLocation:"showLocation"},standalone:!1,decls:7,vars:6,consts:[["noLink",""],[1,"mini-card"],["class","hackathon-top-section",4,"ngIf"],["class","prize-header",4,"ngIf"],["class","info-chips",4,"ngIf"],["class","dates-row",4,"ngIf"],["class","section-content section",4,"ngIf"],["class","apply-section",4,"ngIf"],[1,"hackathon-top-section"],["class","hackathon-top-bar",4,"ngIf"],["class","hackathon-header-name-section",4,"ngIf"],[1,"hackathon-top-bar"],[1,"hackathon-top-bar-left"],["class","hackathon-name",4,"ngIf"],[1,"hackathon-name"],[1,"hackathon-header-name-section"],[1,"hackathon-community-badge",3,"community","size"],[1,"prize-header"],[1,"prize-left"],[1,"prize-label"],[1,"prize-amount"],[1,"prize-right"],["class","prize-meta",4,"ngIf"],[1,"prize-meta"],[1,"info-chips"],["class","chip",4,"ngIf"],["class","chip-location",4,"ngIf"],[4,"ngIf"],["class","date-chip",3,"ngClass",4,"ngIf"],[1,"chip"],[3,"icon"],[1,"chip-location"],["target","_blank","class","chip-link",3,"href",4,"ngIf","ngIfElse"],["target","_blank",1,"chip-link",3,"href"],["class","chip completed-chip",4,"ngIf"],["class","chip live-chip",4,"ngIf"],[1,"chip","completed-chip"],[1,"chip","live-chip"],[1,"badge-dot"],[1,"date-chip",3,"ngClass"],["class","countdown-timer",4,"ngIf"],[1,"dot"],[1,"countdown-timer"],[1,"countdown-units"],[1,"countdown-unit"],[1,"countdown-value-wrap"],[1,"countdown-value"],[1,"countdown-suffix"],[1,"dates-row"],["class","section dates-section",4,"ngIf"],[1,"section","dates-section"],[1,"section-label"],[1,"date-grid"],["class","date-item",4,"ngIf"],[1,"date-item"],[1,"date-prefix"],[1,"date-value"],[1,"date-time"],["class","date-grid",4,"ngIf"],[1,"section-content","section"],[1,"participants-row"],[3,"users","totalCount"],[1,"apply-section"],["nbButton","","status","primary","shape","semi-round",3,"routerLink",4,"ngIf"],["nbButton","","status","primary","shape","semi-round",3,"routerLink"]],template:function(i,o){1&i&&(t.j41(0,"div",1),t.DNE(1,Bt,3,2,"div",2)(2,Nt,10,6,"div",3)(3,ln,7,6,"div",4)(4,un,3,2,"div",5)(5,hn,3,2,"div",6)(6,fn,3,2,"div",7),t.k0s()),2&i&&(t.R7$(),t.Y8G("ngIf",o.showName||o.showCommunityBadge),t.R7$(),t.Y8G("ngIf",o.showPrizeHeader&&(null==o.totalPrizesByCurrency?null:o.totalPrizesByCurrency.length)>0&&0!==o.totalPrizesByCurrency[0].amount),t.R7$(),t.Y8G("ngIf",o.hackathon.application_start_date&&o.hackathon.application_end_date&&o.hackathon.status===o.EHackathonStatus.OPEN&&o.showCountdown||o.hackathon.start_date&&o.showLocation||o.showLocation&&o.hackathon.prizes_count||o.showStatusBadge),t.R7$(),t.Y8G("ngIf",o.showDatesRow),t.R7$(),t.Y8G("ngIf",o.showInterestedMembers&&o.hackathon.timezone&&(null==o.users?null:o.users.length)>0&&o.totalUsers>0),t.R7$(),t.Y8G("ngIf",o.showApplySection&&o.hrgId&&"Outgoing"===o.hackathonStatus&&o.hackathon.status===o.EHackathonStatus.OPEN))},dependencies:[m.YU,m.bT,f.Wk,g.YP2,k.aY,st.O,St.g,$t.g,m.QX,m.PV,m.vh],styles:['.mini-card[_ngcontent-%COMP%]{overflow:hidden;border-radius:.5rem;background-color:var(--color-white);padding-bottom:.75rem}.mini-card[_ngcontent-%COMP%] .hackathon-top-section[_ngcontent-%COMP%]{padding:2rem 1rem .5rem}
1.mini-card[_ngcontent-%COMP%] .hackathon-top-bar[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.mini-card[_ngcontent-%COMP%] .hackathon-top-bar[_ngcontent-%COMP%] .hackathon-top-bar-left[_ngcontent-%COMP%]{display:flex;width:100%;min-width:0px;flex-wrap:wrap;justify-content:space-between;gap:.5rem}.mini-card[_ngcontent-%COMP%] .hackathon-top-bar[_ngcontent-%COMP%] .hackathon-top-bar-left[_ngcontent-%COMP%] .hackathon-name[_ngcontent-%COMP%]{margin:0;font-size:1.25rem;line-height:1.75rem;font-weight:600;color:var(--color-yankees-blue)}@media (min-width: 768px){.mini-card[_ngcontent-%COMP%] .hackathon-top-bar[_ngcontent-%COMP%] .hackathon-top-bar-left[_ngcontent-%COMP%] .hackathon-name[_ngcontent-%COMP%]{font-size:2.25rem;line-height:2.5rem}}.mini-card[_ngcontent-%COMP%] .hackathon-top-bar[_ngcontent-%COMP%] .hackathon-status-badge[_ngcontent-%COMP%]{display:inline-flex;height:fit-content;flex-shrink:0;align-items:center;gap:.375rem;border-radius:9999px;padding:.25rem .5rem;font-size:.75rem;line-height:1rem;font-weight:600;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(254 202 202 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.mini-card[_ngcontent-%COMP%] .hackathon-top-bar[_ngcontent-%COMP%] .hackathon-status-badge.completed[_ngcontent-%COMP%]{border-width:0px;background-color:var(--color-gray-100);color:var(--color-gray-600)}.mini-card[_ngcontent-%COMP%] .hackathon-top-bar[_ngcontent-%COMP%] .hackathon-status-badge.completed[_ngcontent-%COMP%] .completed-icon[_ngcontent-%COMP%]{margin-left:.25rem;display:flex;height:14px;width:14px;color:var(--color-gray-500)}.mini-card[_ngcontent-%COMP%] .hackathon-top-bar[_ngcontent-%COMP%] .hackathon-status-badge.live[_ngcontent-%COMP%]{border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(187 247 208 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.mini-card[_ngcontent-%COMP%] .hackathon-top-bar[_ngcontent-%COMP%] .hackathon-status-badge.live[_ngcontent-%COMP%] .badge-dot[_ngcontent-%COMP%]{height:.5rem;width:.5rem;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1));animation:_ngcontent-%COMP%_pulse-dot 2s ease-in-out infinite}.mini-card[_ngcontent-%COMP%] .hackathon-top-bar[_ngcontent-%COMP%] .admin-panel-btn[_ngcontent-%COMP%]{text-decoration-line:none}.mini-card[_ngcontent-%COMP%] .hackathon-header-name-section[_ngcontent-%COMP%]{padding-top:.5rem}.mini-card[_ngcontent-%COMP%] .hackathon-header-name-section[_ngcontent-%COMP%] .hackathon-community-badge[_ngcontent-%COMP%]{display:block}.mini-card[_ngcontent-%COMP%] .prize-header[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;border-top-left-radius:.5rem;border-top-right-radius:.5rem;padding:.75rem 1.25rem .5rem;background:linear-gradient(145deg,#1e40af,#3b82f6)}.mini-card[_ngcontent-%COMP%] .prize-header[_ngcontent-%COMP%] .prize-left[_ngcontent-%COMP%]{display:flex;flex-direction:column}.mini-card[_ngcontent-%COMP%] .prize-header[_ngcontent-%COMP%] .prize-left[_ngcontent-%COMP%] .prize-label[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em;--tw-text-opacity: 1;color:rgb(191 219 254 / var(--tw-text-opacity, 1))}.mini-card[_ngcontent-%COMP%] .prize-header[_ngcontent-%COMP%] .prize-left[_ngcontent-%COMP%] .prize-amount[_ngcontent-%COMP%]{margin-top:.25rem;font-size:1.5rem;line-height:2rem;font-weight:700;color:var(--color-twhite)}.mini-card[_ngcontent-%COMP%] .prize-header[_ngcontent-%COMP%] .prize-right[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end;text-align:right}.mini-card[_ngcontent-%COMP%] .prize-header[_ngcontent-%COMP%] .prize-right[_ngcontent-%COMP%] .prize-meta[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(191 219 254 / var(--tw-text-opacity, 1))}.mini-card[_ngcontent-%COMP%] .info-chips[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;column-gap:.75rem;row-gap:.5rem;padding-left:1rem;padding-right:1rem;padding-top:.75rem;padding-bottom:0}.mini-card[_ngcontent-%COMP%] .info-chips[_ngcontent-%COMP%] .date-chip[_ngcontent-%COMP%]{width:100%;border-radius:9999px;padding:0;font-size:.875rem;line-height:1.25rem;font-weight:500}.mini-card[_ngcontent-%COMP%] .info-chips[_ngcontent-%COMP%] .date-chip.chip-closed[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.mini-card[_ngcontent-%COMP%] .info-chips[_ngcontent-%COMP%] .date-chip[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.mini-card[_ngcontent-%COMP%] .info-chips[_ngcontent-%COMP%] .date-chip[_ngcontent-%COMP%] > span[_ngcontent-%COMP%] .dot[_ngcontent-%COMP%]{padding-left:.5rem;font-size:1.125rem;line-height:1.75rem}.mini-card[_ngcontent-%COMP%] .info-chips[_ngcontent-%COMP%] .date-chip[_ngcontent-%COMP%] .countdown-timer[_ngcontent-%COMP%]{display:flex;width:100%;flex-direction:column;align-items:flex-start;padding:0}.mini-card[_ngcontent-%COMP%] .info-chips[_ngcontent-%COMP%] .date-chip[_ngcontent-%COMP%] .countdown-timer[_ngcontent-%COMP%] .countdown-units[_ngcontent-%COMP%]{display:flex;width:100%;align-items:flex-start;justify-content:flex-start;gap:.5rem}.mini-card[_ngcontent-%COMP%] .info-chips[_ngcontent-%COMP%] .date-chip[_ngcontent-%COMP%] .countdown-timer[_ngcontent-%COMP%] .countdown-units[_ngcontent-%COMP%] .countdown-unit[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:.25rem}.mini-card[_ngcontent-%COMP%] .info-chips[_ngcontent-%COMP%] .date-chip[_ngcontent-%COMP%] .countdown-timer[_ngcontent-%COMP%] .countdown-units[_ngcontent-%COMP%] .countdown-unit[_ngcontent-%COMP%] .countdown-value-wrap[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;width:42px;height:50px;border-radius:8px;background:var(--countdown-color, linear-gradient(180deg, #1e3a8a 0%, #1e40af 49.9%, #2563eb 50%, #3b82f6 100%));box-shadow:0 2px 4px #0003,inset 0 1px #ffffff1a}.mini-card[_ngcontent-%COMP%] .info-chips[_ngcontent-%COMP%] .date-chip[_ngcontent-%COMP%] .countdown-timer[_ngcontent-%COMP%] .countdown-units[_ngcontent-%COMP%] .countdown-unit[_ngcontent-%COMP%] .countdown-value-wrap[_ngcontent-%COMP%]:after{content:"";position:absolute;
1left:0;right:0;top:50%;height:1px;background:#0000004d;box-shadow:0 1px #ffffff0d;z-index:2}.mini-card[_ngcontent-%COMP%] .info-chips[_ngcontent-%COMP%] .date-chip[_ngcontent-%COMP%] .countdown-timer[_ngcontent-%COMP%] .countdown-units[_ngcontent-%COMP%] .countdown-unit[_ngcontent-%COMP%] .countdown-value-wrap[_ngcontent-%COMP%] .countdown-value[_ngcontent-%COMP%]{position:relative;font-size:1.25rem;line-height:1.75rem;font-weight:700;line-height:1;color:var(--color-twhite);font-variant-numeric:tabular-nums;z-index:1;text-shadow:0 1px 2px rgba(0,0,0,.3)}.mini-card[_ngcontent-%COMP%] .info-chips[_ngcontent-%COMP%] .date-chip[_ngcontent-%COMP%] .countdown-timer[_ngcontent-%COMP%] .countdown-units[_ngcontent-%COMP%] .countdown-unit[_ngcontent-%COMP%] .countdown-value-wrap[_ngcontent-%COMP%] .countdown-value.flip[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_mechanicalFlip .4s ease-in-out}.mini-card[_ngcontent-%COMP%] .info-chips[_ngcontent-%COMP%] .date-chip[_ngcontent-%COMP%] .countdown-timer[_ngcontent-%COMP%] .countdown-units[_ngcontent-%COMP%] .countdown-unit[_ngcontent-%COMP%] .countdown-suffix[_ngcontent-%COMP%]{font-weight:500;text-transform:uppercase;letter-spacing:.025em;--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1));font-size:8px}.mini-card[_ngcontent-%COMP%] .info-chips[_ngcontent-%COMP%] .chip[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem;border-radius:9999px;padding:.25rem .75rem;font-size:.875rem;line-height:1.25rem;font-weight:500;background-color:var(--color-gray-50);color:var(--color-yankees-blue)}.mini-card[_ngcontent-%COMP%] .info-chips[_ngcontent-%COMP%] .chip[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.mini-card[_ngcontent-%COMP%] .info-chips[_ngcontent-%COMP%] .chip[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{background-color:var(--color-gray-50);color:var(--color-yankees-blue);text-decoration-line:none}.mini-card[_ngcontent-%COMP%] .info-chips[_ngcontent-%COMP%] .chip.completed-chip[_ngcontent-%COMP%]{background-color:var(--color-gray-100);color:var(--color-gray-600)}.mini-card[_ngcontent-%COMP%] .info-chips[_ngcontent-%COMP%] .chip.completed-chip[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{color:var(--color-gray-500)}.mini-card[_ngcontent-%COMP%] .info-chips[_ngcontent-%COMP%] .chip.live-chip[_ngcontent-%COMP%]{border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(187 247 208 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.mini-card[_ngcontent-%COMP%] .info-chips[_ngcontent-%COMP%] .chip.live-chip[_ngcontent-%COMP%] .badge-dot[_ngcontent-%COMP%]{height:.5rem;width:.5rem;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1));animation:_ngcontent-%COMP%_pulse-dot 2s ease-in-out infinite}.mini-card[_ngcontent-%COMP%] .chip-location[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:.25rem;border-radius:9999px;padding:.25rem .75rem;font-size:.875rem;line-height:1.25rem;font-weight:500;background-color:var(--color-gray-50);color:var(--color-yankees-blue)}.mini-card[_ngcontent-%COMP%] .chip-location[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{margin-top:2px;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.mini-card[_ngcontent-%COMP%] .chip-location[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{background-color:var(--color-gray-50);color:var(--color-yankees-blue);text-decoration-line:none}.mini-card[_ngcontent-%COMP%] .chip-location.completed-chip[_ngcontent-%COMP%]{background-color:var(--color-gray-100);color:var(--color-gray-600)}.mini-card[_ngcontent-%COMP%] .chip-location.completed-chip[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{color:var(--color-gray-500)}.mini-card[_ngcontent-%COMP%] .chip-location.live-chip[_ngcontent-%COMP%]{border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(187 247 208 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.mini-card[_ngcontent-%COMP%] .chip-location.live-chip[_ngcontent-%COMP%] .badge-dot[_ng
1content-%COMP%]{height:.5rem;width:.5rem;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1));animation:_ngcontent-%COMP%_pulse-dot 2s ease-in-out infinite}.mini-card[_ngcontent-%COMP%] .dates-row[_ngcontent-%COMP%]{display:flex;flex-direction:column}.mini-card[_ngcontent-%COMP%] .dates-row[_ngcontent-%COMP%] .dates-section[_ngcontent-%COMP%]{flex:1 1 0%;border-bottom-width:0px}.mini-card[_ngcontent-%COMP%] .section[_ngcontent-%COMP%]{padding:.5rem .75rem}.mini-card[_ngcontent-%COMP%] .section[_ngcontent-%COMP%] .section-label[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem;font-weight:500;--tw-text-opacity: 1;color:rgb(143 155 179 / var(--tw-text-opacity, 1))}.mini-card[_ngcontent-%COMP%] .section[_ngcontent-%COMP%] .date-grid[_ngcontent-%COMP%]{margin-top:.5rem;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}.mini-card[_ngcontent-%COMP%] .section[_ngcontent-%COMP%] .date-grid[_ngcontent-%COMP%] .date-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;border-radius:.5rem;background-color:var(--color-gray-50);padding:.5rem}.mini-card[_ngcontent-%COMP%] .section[_ngcontent-%COMP%] .date-grid[_ngcontent-%COMP%] .date-item[_ngcontent-%COMP%] .date-prefix[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem;font-weight:500;--tw-text-opacity: 1;color:rgb(143 155 179 / var(--tw-text-opacity, 1))}.mini-card[_ngcontent-%COMP%] .section[_ngcontent-%COMP%] .date-grid[_ngcontent-%COMP%] .date-item[_ngcontent-%COMP%] .date-value[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem;font-weight:600;color:var(--color-yankees-blue)}.mini-card[_ngcontent-%COMP%] .section[_ngcontent-%COMP%] .date-grid[_ngcontent-%COMP%] .date-item[_ngcontent-%COMP%] .date-time[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem;font-weight:500;--tw-text-opacity: 1;color:rgb(143 155 179 / var(--tw-text-opacity, 1))}.mini-card[_ngcontent-%COMP%] .section[_ngcontent-%COMP%] .section-content[_ngcontent-%COMP%]{margin-top:.5rem}.mini-card[_ngcontent-%COMP%] .section[_ngcontent-%COMP%] .section-value[_ngcontent-%COMP%]{margin:0;font-size:.875rem;line-height:1.25rem;color:var(--color-yankees-blue)}.mini-card[_ngcontent-%COMP%] .section[_ngcontent-%COMP%] .section-value[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(143 155 179 / var(--tw-text-opacity, 1))}.mini-card[_ngcontent-%COMP%] .section[_ngcontent-%COMP%] .section-meta[_ngcontent-%COMP%]{margin:0;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(143 155 179 / var(--tw-text-opacity, 1))}.mini-card[_ngcontent-%COMP%] .apply-section[_ngcontent-%COMP%]{padding-left:1rem;padding-right:1rem;padding-top:.75rem;padding-bottom:0}@media (min-width: 768px){.mini-card[_ngcontent-%COMP%] .apply-section[_ngcontent-%COMP%]{padding-bottom:1.25rem}}@keyframes _ngcontent-%COMP%_mechanicalFlip{0%{transform:translateY(0)}15%{transform:translateY(-110%)}16%{transform:translateY(110%)}70%{transform:translateY(-3%)}85%{transform:translateY(1%)}to{transform:translateY(0)}}@keyframes _ngcontent-%COMP%_pulse-dot{0%,to{opacity:1}50%{opacity:.4}}']})}}return e})();const Pn=["stickySentinel"],Mn=(e,a)=>({"sticky-active":e,"com-rounded-t-10":a}),On=()=>["."],kn=()=>["winners"],mt=()=>["user-dashboard"],dt=()=>["mentor-dashboard"],gt=()=>["judge-dashboard"],vn=()=>["tracks"],wn=()=>["judges"],yn=()=>["channels"],xn=()=>["prizes"],Rn=()=>["projects"];function Tn(e,a){1&e&&(t.j41(0,"div",9),t.nrm(1,"commudle-loading-spinner"),t.k0s())}function Fn(e,a){if(1&e&&t.nrm(0,"commudle-banner-image",16),2&e){const n=t.XpG(3);t.Y8G("name",n.hackathon.name)("headerImagePath",n.hackathon.banner_image.url)("aspectRatio","2/1")}}function Dn(e,a){if(1&e&&t.nrm(0,"commudle-banner-image",16),2&e){const n=t.XpG(3);t.Y8G("name",n.hackathon.name)("headerImagePath",n.hackathon.banner_image.url)("aspectRatio","2/1")}}function jn(e,a){1&e&&(t.j41(0,"div",14),t.DNE(1,Fn,1,3,"commudle-banner-image",15)(2,Dn,1,3,"commudle-banner-image",15),t.k0s()),2&e&&(t.Y8G("maxTilt",8)("scale",1.02),t.R7$(),t.Y8G("appBreakpoints",">md"),t.R7$(),t.Y8G("appBreakpoints","<=md"))}function Gn(e,a){if(1&e&&(t.j41(0,"div",10)(1,"div",11),t.nrm(2,"commudle-public-hackathon-detail
1s-mini-card",12),t.k0s(),t.DNE(3,jn,3,4,"div",13),t.k0s()),2&e){const n=t.XpG();t.R7$(2),t.Y8G("hackathon",n.hackathon)("hrgId",n.hrgId)("community",n.community)("showDatesRow",!1)("showInterestedMembers",!1)("showCountdown",!1)("showPrizeHeader",!1),t.R7$(),t.Y8G("ngIf",n.hackathon.banner_image)}}function En(e,a){if(1&e&&(t.j41(0,"div",27)(1,"a",28)(2,"button",29),t.nrm(3,"fa-icon",22),t.EFF(4," \xa0 Participant Team Dashboard "),t.k0s()()()),2&e){const n=t.XpG(3);t.R7$(),t.Y8G("routerLink",t.lJ4(2,mt)),t.R7$(2),t.Y8G("icon",n.icons.faArrowTrendUp)}}function Sn(e,a){if(1&e&&(t.j41(0,"div",27)(1,"a",28)(2,"button",30),t.nrm(3,"fa-icon",22),t.EFF(4," \xa0 Mentor Dashboard "),t.k0s()()()),2&e){const n=t.XpG(3);t.R7$(),t.Y8G("routerLink",t.lJ4(2,dt)),t.R7$(2),t.Y8G("icon",n.icons.faGavel)}}function $n(e,a){if(1&e&&(t.j41(0,"div",27)(1,"a",28)(2,"button",31),t.nrm(3,"fa-icon",22),t.EFF(4," \xa0 Judge Dashboard "),t.k0s()()()),2&e){const n=t.XpG(3);t.R7$(),t.Y8G("routerLink",t.lJ4(2,gt)),t.R7$(2),t.Y8G("icon",n.icons.faGavel)}}function In(e,a){if(1&e&&(t.qex(0),t.DNE(1,En,5,3,"div",26)(2,Sn,5,3,"div",26)(3,$n,5,3,"div",26),t.bVm()),2&e){const n=t.XpG(2);t.R7$(),t.Y8G("ngIf",n.hasDashboardAndChannelAccess),t.R7$(),t.Y8G("ngIf",n.userRoles.is_mentor),t.R7$(),t.Y8G("ngIf",n.userRoles.is_judge)}}function zn(e,a){if(1&e&&(t.j41(0,"div")(1,"a",32),t.nrm(2,"fa-icon",22),t.j41(3,"span",23),t.EFF(4,"Updates"),t.k0s()()()),2&e){const n=t.XpG(2);t.R7$(),t.AVh("active","updates"===n.activeFragment),t.Y8G("routerLink","."),t.R7$(),t.Y8G("icon",n.icons.faStar)}}function Hn(e,a){if(1&e&&(t.j41(0,"div")(1,"a",25),t.nrm(2,"fa-icon",22),t.j41(3,"span",23),t.EFF(4,"Tracks"),t.k0s()()()),2&e){const n=t.XpG(2);t.R7$(),t.Y8G("routerLink",t.lJ4(2,vn)),t.R7$(),t.Y8G("icon",n.icons.faAward)}}function Yn(e,a){if(1&e&&(t.j41(0,"div")(1,"a",33),t.nrm(2,"fa-icon",22),t.j41(3,"span",23),t.EFF(4,"Sponsors"),t.k0s()()()),2&e){const n=t.XpG(2);t.R7$(),t.AVh("active","sponsors"===n.activeFragment),t.Y8G("routerLink","."),t.R7$(),t.Y8G("icon",n.icons.faSackDollar)}}function Bn(e,a){if(1&e&&(t.j41(0,"div")(1,"a",34),t.nrm(2,"fa-icon",22),t.j41(3,"span",23),t.EFF(4,"FAQs"),t.k0s()()()),2&e){const n=t.XpG(2);t.R7$(),t.AVh("active","faq"===n.activeFragment),t.Y8G("routerLink","."),t.R7$(),t.Y8G("icon",n.icons.faCircleQuestion)}}function Xn(e,a){if(1&e&&(t.j41(0,"div")(1,"a",35),t.nrm(2,"fa-icon",22),t.j41(3,"span",23),t.EFF(4,"Collaborations"),t.k0s()()()),2&e){const n=t.XpG(2);t.R7$(),t.AVh("active","collaborations"===n.activeFragment),t.Y8G("routerLink","."),t.R7$(),t.Y8G("icon",n.icons.faHandshake)}}function Un(e,a){if(1&e&&(t.j41(0,"div")(1,"a",25),t.nrm(2,"fa-icon",22),t.j41(3,"span",23),t.EFF(4,"Judges"),t.k0s()()()),2&e){const n=t.XpG(2);t.R7$(),t.Y8G("routerLink",t.lJ4(2,wn)),t.R7$(),t.Y8G("icon",n.icons.faUser)}}function Nn(e,a){if(1&e&&(t.j41(0,"div")(1,"a",25),t.nrm(2,"fa-icon",22),t.j41(3,"span",23),t.EFF(4,"Channels"),t.k0s()()()),2&e){const n=t.XpG(2);t.R7$(),t.Y8G("routerLink",t.lJ4(2,yn)),t.R7$(),t.Y8G("icon",n.icons.faHashtag)}}function Ln(e,a){if(1&e&&(t.j41(0,"div")(1,"a",25),t.nrm(2,"fa-icon",22),t.j41(3,"span",23),t.EFF(4,"Prizes"),t.k0s()()()),2&e){const n=t.XpG(2);t.R7$(),t.Y8G("routerLink",t.lJ4(2,xn)),t.R7$(),t.Y8G("icon",n.icons.faAward)}}function Vn(e,a){if(1&e&&(t.j41(0,"div")(1,"a",25),t.nrm(2,"fa-icon",22),t.j41(3,"span",23),t.EFF(4,"Projects"),t.k0s()()()),2&e){const n=t.XpG(2);t.R7$(),t.Y8G("routerLink",t.lJ4(2,Rn)),t.R7$(),t.Y8G("icon",n.icons.faLaptopCode)}}function An(e,a){if(1&e&&(t.j41(0,"div",27)(1,"a",28)(2,"button",29),t.nrm(3,"fa-icon",22),t.EFF(4," \xa0 Participant Team Dashboard "),t.k0s()()()),2&e){const n=t.XpG(3);t.R7$(),t.Y8G("routerLink",t.lJ4(2,mt)),t.R7$(2),t.Y8G("icon",n.icons.faArrowTrendUp)}}function Jn(e,a){if(1&e&&(t.j41(0,"div",27)(1,"a",28)(2,"button",30),t.nrm(3,"fa-icon",22),t.EFF(4," \xa0 Mentor Dashboard "),t.k0s()()()),2&e){const n=t.XpG(3);t.R7$(),t.Y8G("routerLink",t.lJ4(2,dt)),t.R7$(2),t.Y8G("icon",n.icons.faGavel)}}function Wn(e,a){if(1&e&&(t.j41(0,"div",27)(1,"a",28)(2,"button",31),t.nrm(3,"fa-icon",22),t.EFF(4," \xa0 Judge Dashboard "),t.k0s()()()),2&e){const n=t.XpG(3);t.R7$(),t.Y8G("routerLink",t.lJ4(2,gt)),t.R7$(2),t.Y8G("icon",n.icons.faGavel)}}function Qn(e,a){if(1&e&&(t.qex(0),t.DNE(1,An,5,3,"div",26)(2,Jn,5,3,"div",26)(3,Wn,5,3,"div",26),t.bVm()),2&e){const n=t.XpG(2);
1t.R7$(),t.Y8G("ngIf",n.hasDashboardAndChannelAccess),t.R7$(),t.Y8G("ngIf",n.userRoles.is_mentor),t.R7$(),t.Y8G("ngIf",n.userRoles.is_judge)}}function qn(e,a){if(1&e&&(t.j41(0,"div",17)(1,"div",18)(2,"div",19),t.DNE(3,In,4,3,"ng-container",20),t.j41(4,"div")(5,"a",21),t.nrm(6,"fa-icon",22),t.j41(7,"span",23),t.EFF(8,"Overview"),t.k0s()()(),t.DNE(9,zn,5,4,"div",24)(10,Hn,5,3,"div",24)(11,Yn,5,4,"div",24)(12,Bn,5,4,"div",24)(13,Xn,5,4,"div",24)(14,Un,5,3,"div",24)(15,Nn,5,3,"div",24)(16,Ln,5,3,"div",24),t.j41(17,"div")(18,"a",25),t.nrm(19,"fa-icon",22),t.j41(20,"span",23),t.EFF(21,"Winners"),t.k0s()()(),t.DNE(22,Vn,5,3,"div",24)(23,Qn,4,3,"ng-container",20),t.k0s()()()),2&e){const n=t.XpG();t.Y8G("ngClass",t.l_i(18,Mn,n.isTabsSticky,n.showBannerImage)),t.R7$(3),t.Y8G("appBreakpoints","<=md"),t.R7$(2),t.AVh("active",""===n.activeFragment&&!n.showBannerImage),t.Y8G("routerLink",t.lJ4(21,On)),t.R7$(),t.Y8G("icon",n.icons.faInfoCircle),t.R7$(3),t.Y8G("ngIf",n.hackathon.updates_count>0),t.R7$(),t.Y8G("ngIf",n.hackathon.tracks_count>0),t.R7$(),t.Y8G("ngIf",n.hackathon.sponsors_count>0),t.R7$(),t.Y8G("ngIf",n.hackathon.faqs_count>0),t.R7$(),t.Y8G("ngIf",n.hasCollaborationCommunities),t.R7$(),t.Y8G("ngIf",n.hackathon.judges_count>0),t.R7$(),t.Y8G("ngIf",n.hasDashboardAndChannelAccess),t.R7$(),t.Y8G("ngIf",n.hackathon.prizes_count>0),t.R7$(2),t.Y8G("routerLink",t.lJ4(22,kn)),t.R7$(),t.Y8G("icon",n.icons.faTrophy),t.R7$(3),t.Y8G("ngIf",n.hackathon.projects_count>0),t.R7$(),t.Y8G("appBreakpoints",">md")}}function Kn(e,a){1&e&&(t.j41(0,"div",36),t.nrm(1,"router-outlet"),t.k0s())}let Zn=(()=>{class e{constructor(n,i,o,r,c,p,h,M){this.activatedRoute=n,this.hackathonService=i,this.router=o,this.seoService=r,this.authService=c,this.hackathonJudgeService=p,this.hrgService=h,this.platformId=M,this.subscriptions=[],this.isTabsSticky=!1,this.icons={faLinkedinIn:P.B_4,faTwitter:P.HQ1,faFacebookF:P.Kjv,faGlobe:l.Bwz,faGithub:P.Vz1,faInfoCircle:l.iW_,faHashtag:l.CYF,faStar:l.yy,faSackDollar:l.iwP,faCircleQuestion:l.APe,faAward:l.LPI,faUser:l.X46,faLaptopCode:l.fPr,faArrowTrendUp:l.NMo,faHandshake:l.Z8x,faUserTie:l.BzA,faChalkboardTeacher:l.ZQp,faTrophy:l.iHh,faGavel:l.pnh,faCircleCheck:l.QRE},this.isLoading=!0,this.showBannerImage=!1,this.EHackathonRegistrationStatus=u.AY,this.EHackathonStatus=W.ZZ,this.environment=J.c,this.hasDashboardAndChannelAccess=!1,this.hasCollaborationCommunities=!1,this.userRoles={is_judge:!1,is_speaker:!1,is_mentor:!1},this.destroy$=new y.B}ngOnInit(){this.checkFragment(),this.getHackathonAndCommunity(),this.getHackathonResponseGroup(),this.router.events.pipe((0,b.Q)(this.destroy$)).subscribe(n=>{n instanceof C.wF&&this.updateHeaderVariation()}),this.authService.currentUser$.pipe((0,b.Q)(this.destroy$)).subscribe(n=>{n&&(this.getHackathonCurrentRegistrationDetails(),this.getUserRoles())})}ngOnDestroy(){this.subscriptions.forEach(n=>n.unsubscribe()),this.destroy$.next(),this.destroy$.complete(),this.observer?.disconnect()}ngAfterViewInit(){this.sentinel&&(0,A.UE)(this.platformId)&&this.setupStickyObserver(this.sentinel.nativeElement)}setupStickyObserver(n){this.observer?.disconnect(),this.observer=new IntersectionObserver(([i])=>{this.isTabsSticky=!i.isIntersecting},{root:null,threshold:0}),this.observer.observe(n)}getHackathonAndCommunity(){this.subscriptions.push(this.activatedRoute.parent.data.subscribe(n=>{this.hackathon=n.hackathon,this.community=n.community,this.updateHeaderVariation(),this.getContactInfo(),this.setSeoService(),this.setSchema()}))}getHackathonResponseGroup(){this.hrgService.pShowHackathonResponseGroup(this.hackathon.id).subscribe(n=>{n&&(this.hrgId=n.id)})}checkFragment(){this.activatedRoute.fragment.subscribe(n=>{this.activeFragment=n||""})}getContactInfo(){this.subscriptions.push(this.hackathonService.showHackathonContactInfo(this.hackathon.id).subscribe(n=>{this.contactInfo=n,this.isLoading=!1}))}updateHeaderVariation(){this.showBannerImage=!!this.router.url.split("?")[0].split(this.hackathon.slug)[1]}getHackathonCurrentRegistrationDetails(){this.subscriptions.push(this.hackathonService.getHackathonCurrentRegistrationDetail
1s(this.hackathon.id).subscribe(n=>{n&&(this.userTeamDetails=n,this.userTeamDetails.some(i=>i.registration_status===u.AY.ACCEPTED)&&(this.hasDashboardAndChannelAccess=!0))}))}setSeoService(){this.seoService.setTags(this.hackathon.name+" by "+this.community.name,(0,_.VE)(this.hackathon.description),"https://commudle.com/assets/images/commudle-logo192.png")}setSchema(){if(this.hackathon.start_date){let n,i;const o=J.c.app_url+"/communities/"+this.community.slug+"/hackathons/"+this.hackathon.slug;"hybrid"===this.hackathon.hackathon_location_type?(i="https://schema.org/MixedEventAttendanceMode",n=[{"@type":"Place",name:this.hackathon.location_name,address:this.hackathon.location_address},{"@type":"VirtualLocation",url:o}]):"offline"===this.hackathon.hackathon_location_type?(i="https://schema.org/OfflineEventAttendanceMode",n={"@type":"Place",name:this.hackathon.location_name,address:this.hackathon.location_address}):(i="https://schema.org/OnlineEventAttendanceMode",n={"@type":"VirtualLocation",url:o});const r={"@context":"https://schema.org","@type":"Event",name:this.hackathon.name,description:(0,_.VE)(this.hackathon.description).substring(0,200),image:this.hackathon.banner_image?.url||this.community.logo_image_path?.i64,startDate:this.hackathon.start_date,endDate:this.hackathon.end_date,eventStatus:"https://schema.org/EventScheduled",eventAttendanceMode:i,location:n,organizer:{"@type":"Organization",name:this.community.name,url:J.c.app_url+"/communities/"+this.community.slug},interactionStatistic:{"@type":"InteractionCounter",interactionType:"https://schema.org/RegisterAction",userInteractionCount:this.hackathon.number_of_participants||0}};this.seoService.setSchema(r)}}getUserRoles(){this.subscriptions.push(this.hackathonJudgeService.getUserRoles(this.hackathon.id).subscribe(n=>{this.userRoles=n}))}static{this.\u0275fac=function(i){return new(i||e)(t.rXU(C.nX),t.rXU(O.$),t.rXU(C.Ix),t.rXU(_.B2),t.rXU(_.uR),t.rXU(at.U),t.rXU(F.$),t.rXU(t.Agw))}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["commudle-public-hackathon-homepage"]],viewQuery:function(i,o){if(1&i&&t.GBs(Pn,5),2&i){let r;t.mGM(r=t.lsd())&&(o.sentinel=r.first)}},standalone:!1,decls:9,vars:4,consts:[["stickySentinel",""],[1,"base-layout"],[1,"container"],[1,"one-column-layout"],["class","com-min-h-screen com-flex com-items-center com-justify-center",4,"ngIf"],["class","hackathon-header",4,"ngIf"],[1,"sticky-sentinel"],["class","menu-items-footer menu-items-footer-sticky",3,"ngClass",4,"ngIf"],["class","router",4,"ngIf"],[1,"com-min-h-screen","com-flex","com-items-center","com-justify-center"],[1,"hackathon-header"],[1,"hackathon-header-text"],[3,"hackathon","hrgId","community","showDatesRow","showInterestedMembers","showCountdown","showPrizeHeader"],["class","hackathon-header-banner","appTilt","",3,"maxTilt","scale",4,"ngIf"],["appTilt","",1,"hackathon-header-banner",3,"maxTilt","scale"],[3,"name","headerImagePath","aspectRatio",4,"appBreakpoints"],[3,"name","headerImagePath","aspectRatio"],[1,"menu-items-footer","menu-items-footer-sticky",3,"ngClass"],[1,"page-menu"],[1,"menu-items","d-flex"],[4,"appBreakpoints"],[1,"d-flex",3,"routerLink"],[3,"icon"],[1,"title"],[4,"ngIf"],["routerLinkActive","active",1,"d-flex",3,"routerLink"],["class","dashboard-btn-wrapper",4,"ngIf"],[1,"dashboard-btn-wrapper"],[3,"routerLink"],["comButton","","status","primary","size","tiny","shape","semi-round",1,"dashboard-btn"],["comButton","","status","info","size","tiny","shape","semi-round",1,"dashboard-btn"],["comButton","","status","warning","size","tiny","shape","semi-round",1,"dashboard-btn"],["fragment","updates",1,"d-flex",3,"routerLink"],["fragment","sponsors",1,"d-flex",3,"routerLink"],["fragment","faq",1,"d-flex",3,"routerLink"],["fragment","collaborations",1,"d-flex",3,"routerLink"],[1,"router"]],template:function(i,o){1&i&&(t.j41(0,"div",1)(1,"div",2)(2,"div",3),t.DNE(3,Tn,2,0,"div",4)(4,Gn,4,8,"div",5),t.nrm(5,"div",6,0),t.DNE(7,qn,24,23,"div",7)(8,Kn,2,0,"div",8),t.k0s()()()),2&i&&(t.R7$(3),t.Y8G("ngIf",o.isLoading),t.R7$(),t.Y8G("ngIf",!o.isLoading),t.R7$(3),t.Y8G("ngIf",!o.isLoading),t.R7$(),t.Y8G("ngIf",!o.isLoading))},dependencies:[m.YU,m.bT,C.n3,f.Wk,f.wQ,k.aY,rt.p,R.N,$.L,X.S,Et,z],styles:['.menu-items-footer[_ngcontent-%COMP%]{margin-bottom:0;border-radius:0 0 10px 10px/0px 0px 10px 10px;border-width:1px;border-top-width:0px;border-style:solid;border-color:var(--color-bright-gray);background-color:var(--color-white);padding:0}.menu-items-footer-sticky[_ngcontent-%COMP%]{position:sticky;z-index:20;top:var(--mobile-navbar-offset, 68px)}.sticky-active[_ngcontent-%COMP%]{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
1--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);background:linear-gradient(to bottom,#ffffffbf,#ffffff8c);background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.sticky-active[_ngcontent-%COMP%]:is(.com-dark *){--tw-gradient-from: #12121299 var(--tw-gradient-from-position);--tw-gradient-to: rgb(18 18 18 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #12121266 var(--tw-gradient-to-position)}.sticky-active[_ngcontent-%COMP%]{backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}.page-menu[_ngcontent-%COMP%]{width:100%}.page-menu[_ngcontent-%COMP%] com-card[_ngcontent-%COMP%]{margin:0}.page-menu[_ngcontent-%COMP%] com-card[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%]{padding-left:1.25rem;padding-right:1.25rem;padding-top:1.25rem;padding-bottom:0}.page-menu[_ngcontent-%COMP%] .menu-items[_ngcontent-%COMP%]{margin-left:.5rem;align-items:center;overflow-y:scroll;-ms-overflow-style:none;scrollbar-width:none}.page-menu[_ngcontent-%COMP%] .menu-items[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}@media (min-width: 768px){.page-menu[_ngcontent-%COMP%] .menu-items[_ngcontent-%COMP%]{overflow-y:hidden}}.page-menu[_ngcontent-%COMP%] .menu-items[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex-shrink:0}.page-menu[_ngcontent-%COMP%] .menu-items[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin:0;height:fit-content;cursor:pointer;padding:.75rem .5rem;font-size:.875rem;font-weight:500;line-height:1rem;color:var(--color-gunmetal);text-decoration-line:none}@media (min-width: 768px){.page-menu[_ngcontent-%COMP%] .menu-items[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding-left:1rem;padding-right:1rem}}.page-menu[_ngcontent-%COMP%] .menu-items[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{border-width:0px;border-bottom-width:3px;border-style:solid;border-color:transparent}.page-menu[_ngcontent-%COMP%] .menu-items[_ngcontent-%COMP%] a[_ngcontent-%COMP%] nb-icon[_ngcontent-%COMP%], .page-menu[_ngcontent-%COMP%] .menu-items[_ngcontent-%COMP%] a[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{color:var(--color-gunmetal);opacity:.8}.page-menu[_ngcontent-%COMP%] .menu-items[_ngcontent-%COMP%] a[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{margin-left:0;align-self:center}.page-menu[_ngcontent-%COMP%] .menu-items[_ngcontent-%COMP%] a[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:not(.events-chip){display:inline}.page-menu[_ngcontent-%COMP%] .menu-items[_ngcontent-%COMP%] nb-icon[_ngcontent-%COMP%], .page-menu[_ngcontent-%COMP%] .menu-items[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{font-size:1.125rem;line-height:1.75rem;line-height:1}.page-menu[_ngcontent-%COMP%] .menu-items[_ngcontent-%COMP%] nb-icon[_ngcontent-%COMP%], .page-menu[_ngcontent-%COMP%] .menu-items[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%], .page-menu[_ngcontent-%COMP%] .menu-items[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:none}.page-menu[_ngcontent-%COMP%] .menu-items[_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--tw-border-opacity: 1;border-color:rgb(51 102 255 / var(--tw-border-opacity, 1))}.page-menu[_ngcontent-%COMP%] .menu-items[_ngcontent-%COMP%] .active[_ngcontent-%COMP%] nb-icon[_ngcontent-%COMP%], .page-menu[_ngcontent-%COMP%] .menu-items[_ngcontent-%COMP%] .active[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(51 102 255 / var(--tw-text-opacity, 1))}.page-menu[_ngcontent-%COMP%] .menu-items[_ngcontent-%COMP%] .events-chip[_ngcontent-%COMP%]{margin-left:.25rem;display:inline;align-self:center;white-space:nowrap;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(249 115 22 / var(--tw-bg-opacity, 1));padding:.125rem .375rem;font-size:10px;font-weight:600;color:var(--color-white)}.dashboard-btn-wrapper[_ngcontent-%COMP%]{position:relative}.dashboard-btn-wrapper[_ngcontent-%COMP%] .dashboard-btn[_ngcontent-%COMP%]{position:relative;overflow:hidden;animation:_ngcontent-%COMP%_dashboard-pulse 2.5s ease-in-out infinite}.dashboard-btn-wrapper[_ngcontent-%COMP%] .dashboard-btn[_ngcontent-%COMP%]:after{content:"";pointer-events:none;position:absolute;top:0;left:0;height:100%;width:100%;background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.4) 50%,transparent 100%);transform:translate(-100%);animation:_ngcontent-%COMP%_dashboard-shimmer 3s ease-in-out infinite}@keyframes _ngcontent-%COMP%_dashboard-pulse{0%,to{box-shadow:0 0 rgba(var(--primary-500-rgb, 51, 102, 255),.4)}50%{box-shadow:0 0 12px 4px rgba(var(--primary-500-rgb, 51, 102, 255),.15)}}@keyframes _ngcontent-%COMP%_dashboard-shimmer{0%{transform:translate(-100%)}60%,to{transform:translate(100%)}}
1.hackathon-top-bar[_ngcontent-%COMP%]{margin-bottom:.75rem;display:flex;align-items:center;justify-content:space-between}.hackathon-top-bar[_ngcontent-%COMP%] .hackathon-status-badge[_ngcontent-%COMP%]{margin-left:1rem;margin-right:1rem;display:inline-flex;align-items:center;gap:.375rem;border-radius:9999px;padding:.375rem .75rem;font-size:.75rem;line-height:1rem;font-weight:600}.hackathon-top-bar[_ngcontent-%COMP%] .hackathon-status-badge[_ngcontent-%COMP%] .badge-dot[_ngcontent-%COMP%]{height:.5rem;width:.5rem;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(248 113 113 / var(--tw-bg-opacity, 1))}.hackathon-top-bar[_ngcontent-%COMP%] .hackathon-status-badge.live[_ngcontent-%COMP%]{--tw-border-opacity: 1;border-color:rgb(187 247 208 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.hackathon-top-bar[_ngcontent-%COMP%] .hackathon-status-badge.live[_ngcontent-%COMP%] .badge-dot[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1));animation:_ngcontent-%COMP%_pulse-dot 2s ease-in-out infinite}.hackathon-top-bar[_ngcontent-%COMP%] .hackathon-status-badge.completed[_ngcontent-%COMP%]{display:flex;align-items:center;background-color:var(--color-gray-100);color:var(--color-gray-500)}.hackathon-top-bar[_ngcontent-%COMP%] .hackathon-status-badge.completed[_ngcontent-%COMP%] .completed-icon[_ngcontent-%COMP%]{margin-left:.25rem;display:flex;height:14px;width:14px;color:var(--color-gray-500)}.hackathon-top-bar[_ngcontent-%COMP%] .admin-panel-btn[_ngcontent-%COMP%]{text-decoration-line:none}.hackathon-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;border-width:1px;border-style:solid;border-color:var(--color-bright-gray);background-color:var(--color-white)}@media (min-width: 768px){.hackathon-header[_ngcontent-%COMP%]{flex-direction:row}}.hackathon-header[_ngcontent-%COMP%] .hackathon-header-text[_ngcontent-%COMP%]{height:100%;width:100%;min-width:0px;flex:1}@media (min-width: 768px){.hackathon-header[_ngcontent-%COMP%] .hackathon-header-text[_ngcontent-%COMP%]{flex:5}}.hackathon-header[_ngcontent-%COMP%] .hackathon-header-text[_ngcontent-%COMP%] commudle-public-hackathon-details-mini-card[_ngcontent-%COMP%]{display:block}.hackathon-header[_ngcontent-%COMP%] .hackathon-header-banner[_ngcontent-%COMP%]{display:flex;width:100%;min-width:0px;flex:1;overflow:hidden;padding:.5rem}@media (min-width: 768px){.hackathon-header[_ngcontent-%COMP%] .hackathon-header-banner[_ngcontent-%COMP%]{flex:5;padding:1rem}}.hackathon-header[_ngcontent-%COMP%] .hackathon-header-banner[_ngcontent-%COMP%] commudle-banner-image[_ngcontent-%COMP%]{display:block;height:100%;width:100%}@keyframes _ngcontent-%COMP%_pulse-dot{0%,to{opacity:1}50%{opacity:.4}}.card[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:1rem;border-top-left-radius:0;border-top-right-radius:0;background-color:var(--color-white)}@keyframes _ngcontent-%COMP%_tiltEntrance{0%{transform:perspective(1000px) rotateX(4deg) rotateY(-4deg) scale(.96);opacity:0}to{transform:perspective(1000px) rotateX(0) rotateY(0) scale(1);opacity:1}}']})}}return e})();var te=s(53132),_t=s(73165),ne=s(71027),ee=s(55553);let oe=(()=>{class e{constructor(n,i){this.http=n,this.apiRoutesService=i}resolve(n,i){const o=n.parent.params.hackathon_id||n.params.hackathon_id,r=(new _t.Nl).set("hackathon_id",o);return this.http.get(this.apiRoutesService.getRoute(ee.Q.HACKATHONS.PUBLIC.SHOW),{params:r})}static{this.\u0275fac=function(i){return new(i||e)(t.KVO(_t.Qq),t.KVO(ne.Y))}}static{this.\u0275prov=t.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var ie=s(60821),ae=s(52261),U=s(77317),pt=s(96354),re=s(91525),ce=s(54720),D=s(28156),se=s(39783),ut=s(22299);const le=["imageTemplate"];function me(e,a){if(1&e){const n=t.RV6();t.j41(0,"div",13),t.bIt("click",function(){const o=t.eBV(n).$implicit,r=t.XpG
1(2).$implicit,c=t.XpG();return t.Njj(c.openImage(o,r))}),t.nrm(1,"img",14),t.k0s()}if(2&e){const n=a.$implicit;t.R7$(),t.Y8G("src",n.i128,t.B4B)}}function de(e,a){if(1&e&&(t.j41(0,"div",11),t.DNE(1,me,2,1,"div",12),t.k0s()),2&e){const n=t.XpG().$implicit;t.R7$(),t.Y8G("ngForOf",n.images)}}function ge(e,a){if(1&e&&(t.j41(0,"div",4)(1,"div",5),t.nrm(2,"commudle-editor",6),t.DNE(3,de,2,1,"div",7),t.k0s(),t.j41(4,"div",8)(5,"p",9),t.EFF(6),t.k0s(),t.nrm(7,"app-votes-display",10),t.k0s()()),2&e){const n=a.$implicit,i=t.XpG();t.R7$(2),t.Y8G("content",n.details)("editable",!1),t.R7$(),t.Y8G("ngIf",null==n.images?null:n.images.length),t.R7$(3),t.JRh(i.moment(n.created_at).format("h:mm A \xb7 ddd, Do MMM YYYY")),t.R7$(),t.Y8G("icon","heart-outline")("votableId",n.id)("votableType",i.EDbModels.ENTITY_UPDATE)("textAlignment","after")}}function _e(e,a){if(1&e){const n=t.RV6();t.j41(0,"div",15),t.bIt("click",function(){t.eBV(n);const o=t.XpG();return t.Njj(o.getUpdates())}),t.EFF(1," View More "),t.nrm(2,"nb-icon",16),t.k0s()}}function pe(e,a){if(1&e&&(t.j41(0,"div",21),t.nrm(1,"img",22),t.k0s()),2&e){const n=t.XpG().$implicit;t.R7$(),t.Y8G("src",n.image.url,t.B4B)("alt",n.eventUpdate.details)}}function ue(e,a){if(1&e){const n=t.RV6();t.j41(0,"nb-card",17)(1,"nb-card-header")(2,"div"),t.EFF(3,"Image Preview"),t.k0s(),t.j41(4,"button",18),t.bIt("click",function(){const o=t.eBV(n).dialogRef;return t.Njj(o.close())}),t.nrm(5,"nb-icon",19),t.k0s()(),t.j41(6,"nb-card-body"),t.DNE(7,pe,2,2,"div",20),t.k0s()()}if(2&e){const n=a.$implicit;t.R7$(7),t.Y8G("ngIf",n.image.url)}}let he=(()=>{class e{constructor(n,i){this.dialogService=n,this.entityUpdatesService=i,this.EDbModels=u.ag,this.entities=[],this.moment=I,this.limit=5,this.subscriptions=[]}ngOnInit(){this.getUpdates()}getUpdates(){this.subscriptions.push(this.entityUpdatesService.pGetEntityUpdates(this.entityId,this.entityType).subscribe(n=>{this.entities=this.entities.concat(n.page.reduce((i,o)=>[...i,o.data],[])),this.page_info=n.page_info}))}openImage(n,i){this.dialogService.open(this.imageTemplate,{context:{image:n,eventUpdate:i}})}static{this.\u0275fac=function(i){return new(i||e)(t.rXU(g.S0W),t.rXU(ce.d))}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["commudle-entity-updates"]],viewQuery:function(i,o){if(1&i&&t.GBs(le,5),2&i){let r;t.mGM(r=t.lsd())&&(o.imageTemplate=r.first)}},inputs:{entityId:"entityId",entityType:"entityType"},standalone:!1,decls:5,vars:2,consts:[["imageTemplate",""],[1,"event-updates"],["class","event-update",4,"ngFor","ngForOf"],["class","com-cursor-pointer",3,"click",4,"ngIf"],[1,"event-update"],[1,"update-content"],[3,"content","editable"],["class","image-section",4,"ngIf"],[1,"update-footer"],[1,"time"],[3,"icon","votableId","votableType","textAlignment"],[1,"image-section"],["class","images",3,"click",4,"ngFor","ngForOf"],[1,"images",3,"click"],[3,"src"],[1,"com-cursor-pointer",3,"click"],["icon","arrow-ios-downward-outline"],[1,"image-window"],["nbButton","","size","small",3,"click"],["icon","close"],["class","image",4,"ngIf"],[1,"image"],[3,"src","alt"]],template:function(i,o){1&i&&(t.j41(0,"div",1),t.DNE(1,ge,8,8,"div",2),t.k0s(),t.DNE(2,_e,3,0,"div",3)(3,ue,8,1,"ng-template",null,0,t.C5r)),2&i&&(t.R7$(),t.Y8G("ngForOf",o.entities),t.R7$(),t.Y8G("ngIf",null==o.page_info?null:o.page_info.has_next_page))},dependencies:[m.Sq,m.bT,D.G,se.x,g.YP2,g.tHu,g.SrT,g.KH5,g.zJv,ut.J],styles:[".event-updates[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:0px}.event-updates[_ngcontent-%COMP%] .event-update[_ngcontent-%COMP%]{position:relative;margin-bottom:0;border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--color-bright-gray);padding-left:.5rem;padding-right:.5rem;padding-bottom:.5rem}.event-updates[_ngcontent-%COMP%] .event-update[_ngcontent-%COMP%]:last-child{border-bottom-width:0px;padding-bottom:0}.event-updates[_ngcontent-%COMP%] .event-update[_ngcontent-%COMP%] .update-content[_ngcontent-%COMP%]{margin-bottom:6px}.event-updates[_ngcontent-%COMP%] .event-update[_ngcontent-%COMP%] .update-content[_ngcontent-%COMP%] .image-section[_ngcontent-%COMP%]{margin-top:.75rem;display:flex;flex-wrap:nowrap;align-items:center;gap:.75rem;overflow-x:auto;-ms-overflow-style:none;scrollbar-width:none}.event-updates[_ngcontent-%COMP%] .event-update[_ngcontent-%COMP%] .update-content[_ngcontent-%COMP%] .image-section[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}@media (min-width: 768px){.event-updates[_ngcontent-%COMP%] .event-update[_ngcontent-%COMP%] .update-content[_ngcontent-%COMP%] .image-section[_ngcontent-%COMP%]{flex-wrap:wrap;overflow-x:visible}}.event-updates[_ngcontent-%COMP%] .event-update[_ngcontent-%COMP%] .update-content[_ngcontent-%COMP%] .image-section[_ngcontent-%COMP%] .images[_ngcontent-%COMP%]{height:12rem;width:12rem;flex-shrink:0;cursor:pointer;overflow:hidden;border-radius:.5rem;border-width:1px;border-style:solid;border-color:var(--color-bright-gray);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.event-updates[_ngcontent-%COMP%] .event-update[_ngcontent-%COMP%] .update-content[_ngcontent-%COMP%] .image-section[_ngcontent-%COMP%] .images[_ngcontent-%COMP%]:hover{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
1--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.event-updates[_ngcontent-%COMP%] .event-update[_ngcontent-%COMP%] .update-content[_ngcontent-%COMP%] .image-section[_ngcontent-%COMP%] .images[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin:0 auto;height:100%;width:100%;border-radius:.5rem;object-fit:cover}.event-updates[_ngcontent-%COMP%] .event-update[_ngcontent-%COMP%] .update-footer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.event-updates[_ngcontent-%COMP%] .event-update[_ngcontent-%COMP%] .update-footer[_ngcontent-%COMP%] .time[_ngcontent-%COMP%]{margin:0;font-size:10px;font-weight:400;color:var(--color-auro-metal-saurus)}.image-window[_ngcontent-%COMP%]{height:100dvh;width:100dvw}@media (min-width: 768px){.image-window[_ngcontent-%COMP%]{height:80dvh;width:40dvw}}.image-window[_ngcontent-%COMP%] nb-card-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.image-window[_ngcontent-%COMP%] nb-card-body[_ngcontent-%COMP%] .image[_ngcontent-%COMP%]{aspect-ratio:1;height:100%;width:100%;border-radius:.25rem;border-width:1px;border-style:solid;border-color:var(--color-bright-gray);padding:.5rem}.image-window[_ngcontent-%COMP%] nb-card-body[_ngcontent-%COMP%] .image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin:0 auto;height:100%;width:100%;border-radius:.25rem;object-fit:contain}"]})}}return e})();var be=s(86091),Ce=s(45555),v=s(40983),x=s(9405),w=s(47961);const fe=e=>["/communities",e];function Pe(e,a){if(1&e&&(t.j41(0,"div",10)(1,"p",11)(2,"span",12)(3,"strong"),t.EFF(4),t.k0s(),t.EFF(5," communities"),t.k0s(),t.j41(6,"span",13),t.EFF(7,"\xb7"),t.k0s(),t.j41(8,"span",12)(9,"strong"),t.EFF(10),t.nI1(11,"number"),t.k0s(),t.EFF(12," members combined"),t.k0s()()()),2&e){const n=t.XpG(2);t.R7$(4),t.JRh(n.summary.totalCommunities),t.R7$(6),t.JRh(t.bMT(11,2,n.summary.combinedMembers))}}function Me(e,a){if(1&e&&(t.j41(0,"li",14)(1,"a",15)(2,"div",16),t.nrm(3,"img",17),t.k0s(),t.j41(4,"h2",18),t.EFF(5),t.k0s(),t.j41(6,"p",19),t.EFF(7),t.k0s(),t.j41(8,"div",20)(9,"div",21),t.nrm(10,"div",22),t.j41(11,"span",23)(12,"strong"),t.EFF(13),t.nI1(14,"number"),t.k0s(),t.EFF(15," members "),t.k0s()()()()()),2&e){const n=a.$implicit,i=t.XpG(2);t.R7$(),t.xc7("--collaboration-logo-wrap-bg",null==i.logoTints[n.community.id]?null:i.logoTints[n.community.id].wrap)("--collaboration-logo-gradient",null==i.logoTints[n.community.id]?null:i.logoTints[n.community.id].gradient),t.Y8G("routerLink",t.eq3(13,fe,n.community.slug)),t.R7$(2),t.Y8G("alt",n.community.name)("src",(null==n.community.logo_image?null:n.community.logo_image.i64)||(null==n.community.logo_image_path?null:n.community.logo_image_path.i64),t.B4B)("title",n.community.name),t.R7$(2),t.JRh(n.community.name),t.R7$(2),t.SpI(" ",n.community.mini_description," "),t.R7$(6),t.JRh(t.bMT(14,11,n.community.members_count))}}function Oe(e,a){if(1&e&&(t.j41(0,"com-card",1)(1,"com-card-header")(2,"h6",2),t.nrm(3,"nb-icon",3),t.j41(4,"span"),t.EFF(5,"Collaborations"),t.k0s(),t.j41(6,"a",4),t.nrm(7,"fa-icon",5),t.k0s()()(),t.j41(8,"com-card-body",6),t.DNE(9,Pe,13,4,"div",7),t.j41(10,"ul",8),t.DNE(11,Me,16,15,"li",9),t.k0s()()()),2&e){const n=t.XpG();t.R7$(6),t.Y8G("routerLink","."),t.R7$(),t.Y8G("icon",n.faHashtag),t.R7$(2),t.Y8G("ngIf",n.summary.totalCommunities>1),t.R7$(2),t.Y8G("ngForOf",n.collaborationCommunities)}}let ke=(()=>{class e{constructor(n,i,o){this.hackathonCollaborationCommunitiesService=n,this.logoTintService=i,this.cdr=o,this.hasCollaborationCommunities=new t.bkB,this.faHashtag=l.CYF,this.collaborationCommunities=[],this.logoTints={},this.summary={totalCommunities:0,combinedMembers:0}}ngOnInit(){this.getCollaborations()}ngOnChanges(n){n.hackathon?.firstChange||(this.collaborationCommunities=[],this.logoTints={},this.getCollaborations())}getCollaborations(){this.hackathonCollaborationCommunitiesService.pGet(this.hackathon.id).subscribe(n=>{this.collaborationCommunities=n,this.summary.totalCommunities=this.collaborationCommunities.length,this.summary.combinedMembers=this.collaborationCommunities.reduce((i,o)=>i+(o.community.members_count??0),0),this.collaborationCommunities.length>0&&this.hasCollaborationCommunities.emit(!0),this.resolveLogoTints()})}resolveLogoTints(){this.logoTintService.resolveTints(this.collaborationCommunities.map(n=>
1({id:n.community.id,logo:n.community}))).then(n=>{this.logoTints=n,this.cdr.markForCheck()})}static{this.\u0275fac=function(i){return new(i||e)(t.rXU(_.XA),t.rXU(_.GR),t.rXU(t.gRc))}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["commudle-public-hackathon-collaboration-communities"]],inputs:{community:"community",hackathon:"hackathon"},outputs:{hasCollaborationCommunities:"hasCollaborationCommunities"},standalone:!1,features:[t.OA$],decls:1,vars:1,consts:[["id","collaborations","class","collaborations-card",4,"ngIf"],["id","collaborations",1,"collaborations-card"],[1,"title","collaborations-card-heading","section-heading-anchor"],["icon","pricetags-outline","status","warning"],["fragment","collaborations","aria-label","Link to collaborations section",1,"anchor-link",3,"routerLink"],[1,"anchor-icon-small",3,"icon"],[1,"collaborations-card-body"],["class","collaborations-summary","role","status",4,"ngIf"],[1,"collaborations-list"],["class","collaborations-list-item",4,"ngFor","ngForOf"],["role","status",1,"collaborations-summary"],[1,"collaborations-summary-text"],[1,"collaborations-summary-segment"],["aria-hidden","true",1,"collaborations-summary-dot"],[1,"collaborations-list-item"],[1,"collaboration-community-card",3,"routerLink"],[1,"collaboration-community-logo-wrap"],["crossorigin","anonymous","loading","lazy",1,"collaboration-community-logo-image",3,"alt","src","title"],[1,"collaboration-community-title"],[1,"collaboration-community-subtitle"],[1,"collaboration-community-footer"],[1,"collaboration-community-footer-meta"],["aria-hidden","true",1,"collaboration-community-divider"],[1,"collaboration-community-foot-members"]],template:function(i,o){1&i&&t.DNE(0,Oe,12,4,"com-card",0),2&i&&t.Y8G("ngIf",o.collaborationCommunities.length>0)},dependencies:[m.Sq,m.bT,f.Wk,g.tHu,k.aY,v.v,x.W,w.H,D.G,m.QX],styles:['.collaborations-card[_ngcontent-%COMP%]{margin:0;margin-top:1rem}.collaborations-card[_ngcontent-%COMP%] com-card-header[_ngcontent-%COMP%]{border-top-left-radius:.5rem;border-top-right-radius:.5rem;border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--color-bright-gray);padding:.5rem 1rem;background:linear-gradient(135deg,#f7f7f8,#fff,#f7f7f8)}.collaborations-card[_ngcontent-%COMP%] com-card-header[_ngcontent-%COMP%]:is(.com-dark *){background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #080808 var(--tw-gradient-from-position);--tw-gradient-to: rgb(8 8 8 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: rgb(20 20 20 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #141414 var(--tw-gradient-via-position), var(--tw-gradient-to);--tw-gradient-to: #080808 var(--tw-gradient-to-position)}.collaborations-card[_ngcontent-%COMP%] com-card-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.collaborations-card[_ngcontent-%COMP%] .collaborations-card-body[_ngcontent-%COMP%]{padding:1rem}@media (min-width: 768px){.collaborations-card[_ngcontent-%COMP%] .collaborations-card-body[_ngcontent-%COMP%]{padding:1.5rem}}.collaborations-card-heading[_ngcontent-%COMP%]{margin:0;display:inline-flex;flex-wrap:wrap;align-items:center;gap:.5rem;font-size:1rem;line-height:1.5rem;font-weight:600;color:var(--color-yankees-blue)}.collaborations-card-heading[_ngcontent-%COMP%] nb-icon[_ngcontent-%COMP%]{font-size:1.25rem;line-height:1.75rem}.collaborations-summary[_ngcontent-%COMP%]{margin-bottom:1rem;border-radius:1rem;--tw-bg-opacity: 1;background-color:rgb(255 246 235 / var(--tw-bg-opacity, 1));padding:.75rem 1rem}.collaborations-summary-text[_ngcontent-%COMP%]{margin:0;font-size:.875rem;line-height:1.25rem;font-weight:400;color:var(--color-tyankees-blue)}.collaborations-summary-dot[_ngcontent-%COMP%]{margin-left:.5rem;margin-right:.5rem;--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.collaborations-list[_ngcontent-%COMP%]{margin:0;display:grid;list-style-type:none;grid-template-columns:repeat(1,minmax(0,1fr));align-items:stretch;gap:1rem;padding:0}@media (min-width: 768px){.collaborations-list[_ngcontent-%COMP%]{grid-template-columns:repeat(4,minmax(0,1fr))}}.collaborations-list-item[_ngcontent-%COMP%]{margin:0;display:flex;min-height:0px;min-width:0px;padding:0}.collaboration-community-card[_ngcontent-%COMP%]{position:relative;isolation:isolate;display:flex;height:100%;min-height:0px;width:100%;flex:1 1 0%;flex-direction:column;overflow:hidden;border-radius:.75rem;border-width:1px;border-style:solid;border-color:var(--color-bright-gray);background-color:var(--color-white);padding:.75rem;text-decoration-line:none;outline:2px solid transparent;outline-offset:2px}.collaboration-community-card[_ngcontent-%COMP%]:focus{outline:2px solid transparent;outline-offset:2px}.collaboration-community-card[_ngcontent-%COMP%]:focus-visible{outline:2px solid transparent;outline-offset:2px}.collaboration-community-card[_ngcontent-%COMP%]{--tw-shadow: 0 2px 12px rgb(15 23 42/.06);
1--tw-shadow-colored: 0 2px 12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);transform-origin:center;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.7s;will-change:transform;transition-timing-function:cubic-bezier(.16,1,.3,1)}.collaboration-community-card[_ngcontent-%COMP%]:hover{--tw-scale-x: 1.02;--tw-scale-y: 1.02;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));--tw-shadow: 0 8px 24px rgb(15 23 42/.1);--tw-shadow-colored: 0 8px 24px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.collaboration-community-card[_ngcontent-%COMP%]:before{content:"";pointer-events:none;position:absolute;inset:0;z-index:0;border-radius:.5rem;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.7s;transition-timing-function:cubic-bezier(.16,1,.3,1);background:linear-gradient(138deg,transparent 0%,transparent 88%,var(--collaboration-logo-gradient, rgba(255, 246, 235, .16)) 100%)}.collaboration-community-card[_ngcontent-%COMP%]:hover:before{background:linear-gradient(138deg,transparent 0%,transparent 76%,var(--collaboration-logo-gradient, rgba(255, 246, 235, .16)) 100%)}.collaboration-community-card[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{position:relative;z-index:10}.collaboration-community-logo-wrap[_ngcontent-%COMP%]{margin-bottom:.5rem;display:flex;height:3.5rem;width:3.5rem;flex-shrink:0;align-items:flex-start;justify-content:center;border-radius:.75rem;padding:6px;background-color:var(--collaboration-logo-wrap-bg, #FFF6EB)}.collaboration-community-logo-image[_ngcontent-%COMP%]{height:100%;width:100%;object-fit:contain}.collaboration-community-title[_ngcontent-%COMP%]{margin:0;margin-bottom:.25rem;font-size:1rem;line-height:1.5rem;font-weight:600;color:var(--color-gray-900)}.collaboration-community-subtitle[_ngcontent-%COMP%]{margin:0;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:.875rem;line-height:1.25rem;font-weight:400;line-height:1.375;color:var(--color-gray-500)}.collaboration-community-footer[_ngcontent-%COMP%]{margin-top:auto}.collaboration-community-footer-meta[_ngcontent-%COMP%]{display:inline-flex;width:100%;flex-direction:column;align-items:flex-start;gap:.5rem;font-size:.75rem;line-height:1rem;color:var(--color-gray-500)}.collaboration-community-divider[_ngcontent-%COMP%]{width:100%;border-width:0px;border-top-width:1px;border-style:dotted;border-color:var(--color-bright-gray)}']})}}return e})();var ve=s(54499),we=s(93473),Q=s(16042);const ht=()=>["."],q=()=>[],ye=(e,a,n,i,o)=>({"sponsor-tier-strips--cols-1":e,"sponsor-tier-strips--cols-2":a,"sponsor-tier-strips--cols-3":n,"sponsor-tier-strips--cols-4":i,"sponsor-tier-strips--horizontal":o}),xe=e=>({"sponsor-strip--no-link":e}),Re=(e,a,n)=>["/communities",e,"hackathons",a,"fill-form",n],Te=(e,a)=>["/admin","communities",e,"hackathon-dashboard",a];function Fe(e,a){if(1&e&&(t.j41(0,"a",24),t.nI1(1,"completeurl"),t.nrm(2,"app-badge",25),t.k0s()),2&e){const n=t.XpG(2);t.FS9("href",t.i5U(1,6,n.hackathonSocial.facebook,"facebook"),t.B4B),t.R7$(2),t.Y8G("faIcon",n.icons.faFacebook)("fontColor","com-text-primary-500")("fontSize","small")("borderRadius","round")("color","com-bg-blue-50")}}function De(e,a){if(1&e&&(t.j41(0,"a",24),t.nI1(1,"completeurl"),t.nrm(2,"app-badge",25),t.k0s()),2&e){const n=t.XpG(2);t.FS9("href",t.i5U(1,6,n.hackathonSocial.linkedIn,"linkedin"),t.B4B),t.R7$(2),t.Y8G("faIcon",n.icons.faLinkedin)("fontColor","com-text-primary-500")("fontSize","small")("borderRadius","round")("color","com-bg-blue-50")}}function je(e,a){if(1&e&&(t.j41(0,"a",24),t.nI1(1,"completeurl"),t.nrm(2,"app-badge",25),t.k0s()),2&e){const n=t.XpG(2);t.FS9("href",t.i5U(1,6,n.hackathonSocial.instagram,"instagram"),t.B4B),t.R7$(2),t.Y8G("faIcon",n.icons.faInstagram)("fontColor","com-text-primary-500")("fontSize","small")("borderRadius","round")("color","com-bg-blue-50")}}function Ge(e,a){if(1&e&&(t.j41(0,"a",24),t.nI1(1,"completeurl"),t.nrm(2,"app-badge",25),t.k0s()),2&e){const n=t.XpG(2);
1t.FS9("href",t.i5U(1,6,n.hackathonSocial.twitter,"twitter"),t.B4B),t.R7$(2),t.Y8G("faIcon",n.icons.faTwitter)("fontColor","com-text-primary-500")("fontSize","small")("borderRadius","round")("color","com-bg-blue-50")}}function Ee(e,a){if(1&e&&(t.j41(0,"a",24),t.nI1(1,"completeurl"),t.nrm(2,"app-badge",25),t.k0s()),2&e){const n=t.XpG(2);t.FS9("href",t.i5U(1,6,n.hackathonSocial.github,"github"),t.B4B),t.R7$(2),t.Y8G("faIcon",n.icons.faGithub)("fontColor","com-text-primary-500")("fontSize","small")("borderRadius","round")("color","com-bg-blue-50")}}function Se(e,a){if(1&e&&(t.j41(0,"a",24),t.nI1(1,"completeurl"),t.nrm(2,"app-badge",25),t.k0s()),2&e){const n=t.XpG(2);t.FS9("href",t.bMT(1,6,n.hackathonSocial.website),t.B4B),t.R7$(2),t.Y8G("faIcon",n.icons.faGlobe)("fontColor","com-text-primary-500")("fontSize","small")("borderRadius","round")("color","com-bg-blue-50")}}function $e(e,a){if(1&e&&(t.j41(0,"div",22),t.DNE(1,Fe,3,9,"a",23)(2,De,3,9,"a",23)(3,je,3,9,"a",23)(4,Ge,3,9,"a",23)(5,Ee,3,9,"a",23)(6,Se,3,8,"a",23),t.k0s()),2&e){const n=t.XpG();t.R7$(),t.Y8G("ngIf",n.hackathonSocial.facebook),t.R7$(),t.Y8G("ngIf",n.hackathonSocial.linkedIn),t.R7$(),t.Y8G("ngIf",n.hackathonSocial.instagram),t.R7$(),t.Y8G("ngIf",n.hackathonSocial.twitter),t.R7$(),t.Y8G("ngIf",n.hackathonSocial.github),t.R7$(),t.Y8G("ngIf",n.hackathonSocial.website)}}function Ie(e,a){if(1&e&&(t.j41(0,"div",26)(1,"com-card")(2,"com-card-header")(3,"h2",10),t.EFF(4," Updates "),t.j41(5,"a",27),t.nrm(6,"fa-icon",12),t.k0s()()(),t.j41(7,"com-card-body"),t.nrm(8,"commudle-entity-updates",28),t.k0s()()()),2&e){const n=t.XpG();t.R7$(5),t.Y8G("routerLink",t.lJ4(4,ht)),t.R7$(),t.Y8G("icon",n.icons.faHashtag),t.R7$(2),t.Y8G("entityId",n.hackathon.id)("entityType",n.EDbModels.HACKATHON)}}function ze(e,a){if(1&e&&(t.j41(0,"p",49),t.EFF(1),t.k0s()),2&e){const n=t.XpG().$implicit;t.R7$(),t.SpI(" ",n.description," ")}}function He(e,a){if(1&e){const n=t.RV6();t.j41(0,"a",42),t.bIt("mouseenter",function(o){t.eBV(n);const r=t.XpG(3);return t.Njj(r.onSponsorStripGradientEnter(o))})("mousemove",function(o){t.eBV(n);const r=t.XpG(3);return t.Njj(r.onSponsorStripGradientMove(o))})("mouseleave",function(o){t.eBV(n);const r=t.XpG(3);return t.Njj(r.onSponsorStripGradientLeave(o))}),t.nrm(1,"span",43),t.j41(2,"div",44),t.nrm(3,"img",45),t.k0s(),t.j41(4,"div",46)(5,"h3",47),t.EFF(6),t.k0s(),t.DNE(7,ze,2,1,"p",48),t.k0s()()}if(2&e){const n=a.$implicit,i=t.XpG(3);t.xc7("--sponsor-logo-gradient",null==i.sponsorLogoTints[n.id]?null:i.sponsorLogoTints[n.id].gradient),t.AVh("sponsor-strip--tier-1",1===n.tier_priority)("sponsor-strip--tier-2",2===n.tier_priority)("sponsor-strip--tier-3",3===n.tier_priority)("sponsor-strip--tier-4",4===n.tier_priority)("sponsor-strip--tier-5",n.tier_priority>=5),t.Y8G("ngClass",t.eq3(18,xe,!n.sponsor.link)),t.BMQ("href",n.sponsor.link||null,t.B4B),t.R7$(3),t.Y8G("src",n.sponsor.logo.i320||n.sponsor.logo.url,t.B4B)("alt",n.sponsor.name),t.R7$(3),t.JRh(n.sponsor.name),t.R7$(),t.Y8G("ngIf",n.description)}}function Ye(e,a){if(1&e&&(t.j41(0,"div",35)(1,"header",36),t.nrm(2,"span",37),t.j41(3,"span",38),t.EFF(4),t.k0s(),t.j41(5,"span",39),t.EFF(6),t.k0s()(),t.j41(7,"div",40),t.DNE(8,He,8,20,"a",41),t.k0s()()),2&e){const n=a.$implicit;t.R7$(),t.Y8G("ngClass","sponsor-tier-header--priority-"+((null==n.value||null==n.value[0]?null:n.value[0].tier_priority)||1)),t.R7$(3),t.JRh(n.key),t.R7$(2),t.Lme(" ",(n.value||t.lJ4(6,q)).length," ",1===(n.value||t.lJ4(7,q)).length?"partner":"partners"," "),t.R7$(),t.Y8G("ngClass",t.s1E(8,ye,1===(null==n.value||null==n.value[0]?null:n.value[0].tier_priority),2===(null==n.value||null==n.value[0]?null:n.value[0].tier_priority),3===(null==n.value||null==n.value[0]?null:n.value[0].tier_priority),4===(null==n.value||null==n.value[0]?null:n.value[0].tier_priority),(null==n.value||null==n.value[0]?null:n.value[0].tier_priority)>=5)),t.R7$(),t.Y8G("ngForOf",n.value||t.lJ4(14,q))}}function Be(e,a){if(1&e&&(t.j41(0,"div",29)(1,"com-card")(2,"com-card-header")(3,"h6",30),t.nrm(4,"fa-icon",31),t.j41(5,"span"),t.EFF(6,"Sponsors"),t.k0s(),t.j41(7,"a",32),t.nrm(8,"fa-icon",12),t.k0s()()(),t.j41(9,"com-card-body",33),t.DNE(10,Ye,9,15,"div",34),t.nI1(11,"keyvalue"),t.k0s()()()),2&e){const n=t.XpG();t.R7$(4),t.Y8G("icon",n.icons.faSackDollar),t.R7$(3),t.Y8G("routerLink","."),t.R7$(),t.Y8G("icon",n.icons.faHashtag),t.R7$(2),t.Y8G("ngForOf",t.i5U(11,4,n.hackathonSponsorGroupedByTierName,n.tierPri
1orityComparator))}}function Xe(e,a){if(1&e&&(t.j41(0,"button",50),t.nrm(1,"fa-icon",51),t.k0s()),2&e){const n=t.XpG();t.Y8G("nbContextMenu",n.items),t.R7$(),t.Y8G("icon",n.icons.faEllipsisVertical)}}function Ue(e,a){if(1&e&&t.nrm(0,"commudle-discussion",52),2&e){const n=t.XpG();t.Y8G("discussionId",n.discussionChat.id)("discussionOpen",n.discussionChat.open)}}function Ne(e,a){if(1&e&&(t.j41(0,"div",53),t.nrm(1,"commudle-public-faqs",54),t.k0s()),2&e){const n=t.XpG();t.R7$(),t.Y8G("faqs",n.faqs)}}function Le(e,a){if(1&e&&(t.j41(0,"div",59)(1,"div",60),t.EFF(2),t.k0s(),t.j41(3,"div",61),t.EFF(4),t.k0s()()),2&e){const n=t.XpG(2);t.R7$(2),t.JRh(n.userTeamDetails[0].round.name),t.R7$(2),t.JRh(n.moment(n.userTeamDetails[0].round.date).format("DD MMM YYYY"))}}function Ve(e,a){if(1&e&&(t.j41(0,"a",62)(1,"button",63),t.EFF(2,"Edit Registration"),t.k0s()()),2&e){const n=t.XpG(2);t.Y8G("routerLink",t.sMw(2,Re,n.community.slug,n.hackathon.slug,n.hrgId)),t.R7$(),t.Y8G("shape","semi-round")}}function Ae(e,a){if(1&e&&(t.j41(0,"com-card")(1,"com-card-header"),t.EFF(2,"Registration Status"),t.k0s(),t.j41(3,"com-card-body")(4,"div",55)(5,"div",56),t.EFF(6),t.nI1(7,"capitalizeAndRemoveUnderscore"),t.k0s()(),t.DNE(8,Le,5,2,"div",57)(9,Ve,3,6,"a",58),t.k0s()()),2&e){const n=t.XpG();t.R7$(6),t.JRh(t.bMT(7,3,n.userTeamDetails[0].registration_status)),t.R7$(2),t.Y8G("ngIf",n.userTeamDetails[0].round),t.R7$(),t.Y8G("ngIf",n.hackathon.application_start_date&&n.hackathon.application_end_date&&n.isRegistrationOpen)}}function Je(e,a){1&e&&t.nrm(0,"span",71)}function We(e,a){if(1&e&&(t.qex(0),t.EFF(1),t.bVm()),2&e){const n=t.XpG().$implicit,i=t.XpG(2);t.R7$(),t.SpI("- ",i.moment(n.end_date).format("DD MMM YYYY"),"")}}function Qe(e,a){if(1&e&&(t.j41(0,"div",66)(1,"div",67)(2,"span",68),t.EFF(3),t.k0s(),t.DNE(4,Je,1,0,"span",69),t.k0s(),t.j41(5,"div",70)(6,"div",60),t.EFF(7),t.k0s(),t.j41(8,"div",61),t.EFF(9),t.DNE(10,We,2,1,"ng-container",17),t.k0s()()()),2&e){const n=a.$implicit,i=a.index,o=a.last,r=t.XpG(2);t.R7$(3),t.JRh(i+1),t.R7$(),t.Y8G("ngIf",!o),t.R7$(3),t.JRh(n.name),t.R7$(2),t.SpI(" ",r.moment(n.date).format("DD MMM YYYY")," "),t.R7$(),t.Y8G("ngIf",n.end_date)}}function qe(e,a){if(1&e&&(t.j41(0,"com-card")(1,"com-card-header"),t.EFF(2," Rounds "),t.k0s(),t.j41(3,"com-card-body",64),t.DNE(4,Qe,11,5,"div",65),t.k0s()()),2&e){const n=t.XpG();t.R7$(4),t.Y8G("ngForOf",n.rounds)}}function Ke(e,a){if(1&e&&(t.j41(0,"div",78),t.nrm(1,"iframe",79),t.nI1(2,"safe"),t.k0s()),2&e){const n=t.XpG(2);t.R7$(),t.Y8G("src",t.i5U(2,1,n.hackathon.location_map_link+"&output=embed","resourceUrl"),t.f$h)}}function Ze(e,a){if(1&e&&(t.j41(0,"a",80),t.EFF(1," Open in Google Maps "),t.nrm(2,"nb-icon",81),t.k0s()),2&e){const n=t.XpG(2);t.BMQ("href",n.hackathon.location_map_link,t.B4B)}}function to(e,a){if(1&e&&(t.j41(0,"com-card",72)(1,"com-card-body",73),t.DNE(2,Ke,3,4,"div",74),t.j41(3,"div",75)(4,"span",76),t.EFF(5),t.k0s(),t.DNE(6,Ze,3,1,"a",77),t.k0s()()()),2&e){const n=t.XpG();t.R7$(2),t.Y8G("ngIf",n.hackathon.location_map_link),t.R7$(3),t.JRh(n.hackathon.location_address),t.R7$(),t.Y8G("ngIf",n.hackathon.location_map_link)}}function no(e,a){if(1&e&&(t.j41(0,"button",82),t.nrm(1,"fa-icon",51),t.j41(2,"span"),t.EFF(3,"Go To Admin panel"),t.k0s()()),2&e){const n=t.XpG();t.Y8G("shape","semi-round")("routerLink",t.l_i(3,Te,n.community.slug,n.hackathon.slug)),t.R7$(),t.Y8G("icon",n.icons.faPencil)}}let eo=(()=>{class e{constructor(n,i,o,r,c,p,h,M,j,Y,B,et){this.activatedRoute=n,this.hackathonService=i,this.faqService=o,this.discussionsService=r,this.roundService=c,this.authWatchService=p,this.hrgService=h,this.communitiesService=M,this.seoService=j,this.logoTintService=Y,this.discussionService=B,this.menuService=et,this.EDbModels=u.ag,this.sponsorLogoTints={},this.moment=I,this.momentTimezone=ct,this.subscriptions=[],this.EHackathonRegistrationStatus=u.AY,this.isOrganizer=!1,this.isRegistrationOpen=!1,this.commentsMenuInitialized=!1,this.icons={faPencil:l.zLW,faSackDollar:l.iwP,faCircleQuestion:l.APe,faFacebook:P.aUl,faLinkedin:P.IAJ,faInstagram:P.QV6,faTwitter:P.HQ1,faGithub:P.Vz1,faGlobe:l.Bwz,faEllipsisVertical:l.nx5,faHashtag:l.CYF},this.onSponsorStripGradientEnter=_.ci,this.onSponsorStripGradientMove=_.bH,this.onSponsorStripGradientLeave=_.hz,this.tierPri
1orityComparator=(ot,em)=>{const om=ot.value?.[0]?.tier_priority,im=em.value?.[0]?.tier_priority;return om-im},this.destroy$=new y.B}ngOnInit(){this.subscriptions.push(this.activatedRoute.parent.data.subscribe(n=>{this.hackathon=n.hackathon,this.community=n.community,this.setSeoService(),this.calculateHackathonDatesStatus(),this.checkRegistrationOpen(),this.getSponsors(),this.getFaqs(),this.getDiscussionChat(),this.getRounds(),this.isOrganizerCheck(),this.getHackathonSocial()})),this.getHackathonResponseGroup(),this.authWatchService.currentUser$.pipe((0,b.Q)(this.destroy$)).subscribe(n=>{n&&this.getHackathonCurrentRegistrationDetails()}),this.checkFragment()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}checkFragment(){this.activatedRoute.fragment.subscribe(n=>{if(n){this.updateSeoForFragment(n);const i=document.getElementById(n);i&&i.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}else this.setSeoService()})}updateSeoForFragment(n){const i=this.hackathon?.banner_image?.url||"https://commudle.com/assets/images/commudle-logo192.png";switch(n){case"updates":this.seoService.setTags(`Updates | ${this.hackathon.name}`,`Latest updates for ${this.hackathon.name} hackathon by ${this.community.name}`,i);break;case"sponsors":this.seoService.setTags(`Sponsors | ${this.hackathon.name}`,`Sponsors supporting ${this.hackathon.name} hackathon by ${this.community.name}`,i);break;case"faq":this.seoService.setTags(`FAQ | ${this.hackathon.name}`,`Frequently asked questions about ${this.hackathon.name} hackathon by ${this.community.name}`,i);break;case"collaborations":this.seoService.setTags(`Collaborations | ${this.hackathon.name}`,`Community collaborations for ${this.hackathon.name} hackathon by ${this.community.name}`,i);break;case"comments":this.seoService.setTags(`Comments | ${this.hackathon.name}`,`Discussion and comments for ${this.hackathon.name} hackathon by ${this.community.name}`,i);break;default:this.setSeoService()}}getHackathonResponseGroup(){this.hrgService.pShowHackathonResponseGroup(this.hackathon.id).subscribe(n=>{n&&(this.hrgId=n.id)})}getSponsors(){this.subscriptions.push(this.hackathonService.pIndexSponsors(this.hackathon.id).subscribe(n=>{this.hackathonSponsorGroupedByTierName=n,this.resolveSponsorLogoTints()}))}resolveSponsorLogoTints(){const n=Object.values(this.hackathonSponsorGroupedByTierName??{}).flat();n.length&&this.logoTintService.resolveTints(n.map(i=>({id:i.id,logo:{logo_image:i.sponsor.logo}}))).then(i=>{this.sponsorLogoTints=i})}getFaqs(){this.subscriptions.push(this.faqService.pIndexFaqs(this.hackathon.id,u.ag.HACKATHON).subscribe(n=>{this.faqs=n,this.faqs&&this.faqs.length>0&&this.setSchema()}))}getDiscussionChat(){this.subscriptions.push(this.discussionsService.PublicGetOrCreateForHackathon(this.hackathon.id).subscribe(n=>{this.discussionChat=n,this.setupCommentsMenu()}))}getRounds(){this.subscriptions.push(this.roundService.pIndexRounds(this.hackathon.id,u.ag.HACKATHON).subscribe(n=>{this.rounds=n}))}getHackathonCurrentRegistrationDetails(){this.subscriptions.push(this.hackathonService.getHackathonCurrentRegistrationDetails(this.hackathon.id).subscribe(n=>{n&&(this.userTeamDetails=n)}))}isOrganizerCheck(){this.subscriptions.push(this.communitiesService.userManagedCommunities$.subscribe(n=>{this.isOrganizer=void 0!==n.find(i=>i.slug===this.community.slug),this.setupCommentsMenu()}))}setupCommentsMenu(){!this.isOrganizer||!this.discussionChat||(this.updateCommentsMenu(),this.commentsMenuInitialized||(this.commentsMenuInitialized=!0,this.subscriptions.push(this.menuService.onItemClick().pipe((0,pt.T)(({item:n})=>n.title)).subscribe(n=>{("Turn OFF Comments"===n||"Turn ON Comments"===n)&&this.toggleComments()}))))}toggleComments(){this.discussionService.toggleDiscussionOpen(this.discussionChat.id).subscribe(n=>{this.discussionChat.open=n,this.updateCommentsMenu()})}updateCommentsMenu(){this.items=[{title:this.discussionChat.open?"Turn OFF Comments":"Turn ON Comments"}]}getHackathonSocial(){this.subscriptions.push(this.hackathonService.showHackathonContactInfo(this.hackathon.id).subscribe(n=>{this.hackathonSocial=n}))}calculateHackathonDatesStatus(){const n=new Date,i=new Date(this.hackathon.application_start_date),o=new Date(this.hackathon.application_end_date);n<i?this.hackathonStatus="Upcoming":n>=i&&n<=o?this.hackathonStatus="Outgoing":n>o&&(this.hackathonStatus="Closed")}checkRegistrationOpen(){if(this.hackathon.application_start_date&&this.hackathon.application_end_date){const n=new Date,i=new Date(this.hackathon.application_start_date),o=new Date(this.hackathon.application_end_date);this.isRegistrationOpen=n>=i&&n<=o}}setSchema(){const n={"@context":"https://schema.org","@type":"FAQPage",mainEntity:this.faqs.map(i=>
1({"@type":"Question",name:i.question,acceptedAnswer:{"@type":"Answer",text:i.answer}}))};this.seoService.setSchema(n)}setSeoService(){this.seoService.setTags(this.hackathon.name+" by "+this.community.name,(0,_.VE)(this.hackathon.description),"https://commudle.com/assets/images/commudle-logo192.png")}static{this.\u0275fac=function(i){return new(i||e)(t.rXU(C.nX),t.rXU(O.$),t.rXU(_.Uk),t.rXU(ae.T),t.rXU(_.wE),t.rXU(U.E),t.rXU(F.$),t.rXU(ie.d),t.rXU(_.B2),t.rXU(_.GR),t.rXU(_.uA),t.rXU(g.BgA))}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["commudle-public-hackathon-details"]],standalone:!1,decls:27,vars:25,consts:[[1,"two-column-layout","medium","mobile-reverse"],[1,"main-column"],[3,"innerHTML"],["class","community-social-links",4,"ngIf"],["id","updates",4,"ngIf"],["id","sponsors",4,"ngIf"],["id","collaborations",1,"collaboration-communities"],[3,"community","hackathon"],["id","comments",1,"comments"],[1,"comments-header"],[1,"section-heading-anchor","title"],["fragment","comments","aria-label","Link to comments section",1,"anchor-link",3,"routerLink"],[1,"anchor-icon-small",3,"icon"],["nbButton","","ghost","","nbContextMenuTrigger","click",3,"nbContextMenu",4,"ngIf"],["discussionParent","hackathon",3,"discussionId","discussionOpen",4,"ngIf"],["id","faq","class","faq",4,"ngIf"],[1,"right-column"],[4,"ngIf"],[1,"hackathon-details"],[3,"hackathon","hrgId","community","showName","showStatusBadge","showCommunityBadge","showPrizeHeader","showLocation","showApplySection"],["class","map-card",4,"ngIf"],["comButton","","status","danger","class","organizer-btn",3,"shape","routerLink",4,"ngIf"],[1,"community-social-links"],["rel","noreferrer","target","_blank",3,"href",4,"ngIf"],["rel","noreferrer","target","_blank",3,"href"],[3,"faIcon","fontColor","fontSize","borderRadius","color"],["id","updates"],["fragment","updates","aria-label","Link to updates section",1,"anchor-link",3,"routerLink"],[3,"entityId","entityType"],["id","sponsors"],[1,"title","collaborations-card-heading","section-heading-anchor"],[1,"sponsors-card-heading-icon",3,"icon"],["fragment","sponsors","aria-label","Link to sponsors section",1,"anchor-link",3,"routerLink"],[1,"sponsors-cards"],["class","sponsor-tier",4,"ngFor","ngForOf"],[1,"sponsor-tier"],[1,"sponsor-tier-header",3,"ngClass"],["aria-hidden","true",1,"sponsor-tier-dot"],[1,"sponsor-tier-heading"],[1,"sponsor-tier-count"],[1,"sponsor-tier-strips",3,"ngClass"],["target","_blank","class","sponsor-strip",3,"sponsor-strip--tier-1","sponsor-strip--tier-2","sponsor-strip--tier-3","sponsor-strip--tier-4","sponsor-strip--tier-5","ngClass","--sponsor-logo-gradient","mouseenter","mousemove","mouseleave",4,"ngFor","ngForOf"],["target","_blank",1,"sponsor-strip",3,"mouseenter","mousemove","mouseleave","ngClass"],["aria-hidden","true",1,"sponsor-strip-mouse-gradient"],[1,"sponsor-strip-logo-wrap"],["loading","lazy","crossorigin","anonymous",1,"sponsor-strip-logo",3,"src","alt"],[1,"sponsor-strip-text"],[1,"sponsor-strip-name"],["class","sponsor-strip-description",4,"ngIf"],[1,"sponsor-strip-description"],["nbButton","","ghost","","nbContextMenuTrigger","click",3,"nbContextMenu"],[3,"icon"],["discussionParent","hackathon",3,"discussionId","discussionOpen"],["id","faq",1,"faq"],[3,"faqs"],[1,"status-info"],[1,"status-badge"],["class","round-card com-pt-2",4,"ngIf"],["class","edit-link",3,"routerLink",4,"ngIf"],[1,"round-card","com-pt-2"],[1,"name"],[1,"date"],[1,"edit-link",3,"routerLink"],["comButton","","status","primary","size","small","fullWidth","",3,"shape"],[1,"round-card-body"],["class","round-card",4,"ngFor","ngForOf"],[1,"round-card"],[1,"round-indicator"],[1,"round-step"],["class","round-connector",4,"ngIf"],[1,"round-info"],[1,"round-connector"],[1,"map-card"],[1,"map-card-body"],["class","map-embed",4,"ngIf"],[1,"map-info"],[1,"map-address"],["target","_blank","class","map-link",4,"ngIf"],[1,"map-embed"],["width","100%","height","180","frameborder","0","allowfullscreen","","loading","lazy","referrerpolicy","no-referrer-when-downgrade",3,"src"],["target","_blank",1,"map-link"],["icon","external-link-outline"],["comButton","","status","danger",1,"organizer-btn",3,"shape","routerLink"]],template:function(i,o){1&i&&(t.j41(0,"div",0)(1,"div",1)(2,"com-card")(3,"com-card-body"),t.nrm(4,"div",2),t.DNE(5,$e,7,6,"div",3),t.k0s()(),t.DNE(6,Ie,9,5,"div",4)(7,Be,12,7,"div",5),t.j41(8,"div",6),t.nrm(9,"commudle-public-hackathon-collaboration-communities",7),t.k0s(),t.j41(10,"com-card",8)(11,"com-card-header",9)(12,"h2",10),t.EFF(13," C
1omments "),t.j41(14,"a",11),t.nrm(15,"fa-icon",12),t.k0s()(),t.DNE(16,Xe,2,2,"button",13),t.k0s(),t.j41(17,"com-card-body"),t.DNE(18,Ue,1,2,"commudle-discussion",14),t.k0s()(),t.DNE(19,Ne,2,1,"div",15),t.k0s(),t.j41(20,"div",16),t.DNE(21,Ae,10,5,"com-card",17),t.j41(22,"div",18),t.nrm(23,"commudle-public-hackathon-details-mini-card",19),t.k0s(),t.DNE(24,qe,5,1,"com-card",17)(25,to,7,3,"com-card",20)(26,no,4,6,"button",21),t.k0s()()),2&i&&(t.R7$(4),t.Y8G("innerHTML",o.hackathon.description,t.npT),t.R7$(),t.Y8G("ngIf",o.hackathonSocial&&(o.hackathonSocial.facebook||o.hackathonSocial.linkedIn||o.hackathonSocial.instagram||o.hackathonSocial.twitter||o.hackathonSocial.github||o.hackathonSocial.website||o.hackathonSocial.discord)),t.R7$(),t.Y8G("ngIf",o.hackathon.updates_count>0),t.R7$(),t.Y8G("ngIf",o.hackathon.sponsors_count>0&&o.hackathonSponsorGroupedByTierName),t.R7$(2),t.Y8G("community",o.community)("hackathon",o.hackathon),t.R7$(5),t.Y8G("routerLink",t.lJ4(24,ht)),t.R7$(),t.Y8G("icon",o.icons.faHashtag),t.R7$(),t.Y8G("ngIf",o.isOrganizer&&o.discussionChat&&o.items),t.R7$(2),t.Y8G("ngIf",o.discussionChat),t.R7$(),t.Y8G("ngIf",o.hackathon.faqs_count>0),t.R7$(2),t.Y8G("ngIf",o.userTeamDetails&&o.userTeamDetails.length>0),t.R7$(2),t.Y8G("hackathon",o.hackathon)("hrgId",o.hrgId)("community",o.community)("showName",!1)("showStatusBadge",!1)("showCommunityBadge",!1)("showPrizeHeader",!0)("showLocation",!1)("showApplySection",!1),t.R7$(),t.Y8G("ngIf",o.rounds&&o.rounds.length>0),t.R7$(),t.Y8G("ngIf",o.hackathon.location_address||o.hackathon.location_map_link),t.R7$(),t.Y8G("ngIf",o.isOrganizer))},dependencies:[m.YU,m.Sq,m.bT,f.Wk,g.YP2,g.tHu,g.yUn,k.aY,re.n,he,be.Y,Ce.S,$.L,v.v,x.W,w.H,D.G,z,ke,m.lG,ve.r,we.m,Q.I],styles:['.two-column-layout[_ngcontent-%COMP%]{margin-top:1rem}.main-column[_ngcontent-%COMP%]{margin:0;margin-bottom:5rem}@media (min-width: 768px){.main-column[_ngcontent-%COMP%]{margin-right:1.5rem}}.main-column[_ngcontent-%COMP%] com-card[_ngcontent-%COMP%]{margin:0;margin-bottom:1rem}.main-column[_ngcontent-%COMP%] com-card[_ngcontent-%COMP%] com-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;border-top-left-radius:.5rem;border-top-right-radius:.5rem;border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--color-bright-gray);padding:.5rem 1rem;background:linear-gradient(135deg,#f7f7f8,#fff,#f7f7f8)}.main-column[_ngcontent-%COMP%] com-card[_ngcontent-%COMP%] com-card-header[_ngcontent-%COMP%]:is(.com-dark *){background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #080808 var(--tw-gradient-from-position);--tw-gradient-to: rgb(8 8 8 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: rgb(20 20 20 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #141414 var(--tw-gradient-via-position), var(--tw-gradient-to);--tw-gradient-to: #080808 var(--tw-gradient-to-position)}.main-column[_ngcontent-%COMP%] com-card[_ngcontent-%COMP%] com-card-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:1rem;line-height:1.5rem;font-weight:600;color:var(--color-yankees-blue);color:inherit;text-decoration-line:none}.main-column[_ngcontent-%COMP%] com-card[_ngcontent-%COMP%] com-card-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;align-items:center}.main-column[_ngcontent-%COMP%] com-card[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%]{padding:1rem}.main-column[_ngcontent-%COMP%] .collaborations-card-heading[_ngcontent-%COMP%]{margin:0;display:inline-flex;flex-wrap:wrap;align-items:center;gap:.5rem;font-weight:600;color:var(--color-yankees-blue)}.main-column[_ngcontent-%COMP%] .sponsors-card-heading-icon[_ngcontent-%COMP%]{display:flex;height:1.25rem;width:1.25rem;align-items:center;justify-content:center;--tw-text-opacity: 1;color:rgb(0 149 255 / var(--tw-text-opacity, 1))}.main-column[_ngcontent-%COMP%] .sponsors-cards[_ngcontent-%COMP%]{padding:1rem}@media (min-width: 768px){.main-column[_ngcontent-%COMP%] .sponsors-cards[_ngcontent-%COMP%]{padding:1.5rem}}.main-column[_ngcontent-%COMP%] .sponsor-tier[_ngcontent-%COMP%]{margin-bottom:1.5rem;min-width:0px}.main-column[_ngcontent-%COMP%] .sponsor-tier[_ngcontent-%COMP%]:last-child{margin-bottom:0}.main-column[_ngcontent-%COMP%] .sponsor-tier-header[_ngcontent-%COMP%]{margin-bottom:.5rem;display:flex;width:100%;align-items:center;gap:.5rem}
1.main-column[_ngcontent-%COMP%] .sponsor-tier-dot[_ngcontent-%COMP%]{height:.5rem;width:.5rem;flex-shrink:0;border-radius:9999px}.main-column[_ngcontent-%COMP%] .sponsor-tier-heading[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem;font-weight:600;text-transform:uppercase}.main-column[_ngcontent-%COMP%] .sponsor-tier-count[_ngcontent-%COMP%]{margin-left:auto;font-size:.875rem;line-height:1.25rem;font-weight:400;text-transform:lowercase;color:var(--color-gray-500)}.main-column[_ngcontent-%COMP%] .sponsor-tier-header--priority-1[_ngcontent-%COMP%] .sponsor-tier-dot[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(51 102 255 / var(--tw-bg-opacity, 1))}.main-column[_ngcontent-%COMP%] .sponsor-tier-header--priority-1[_ngcontent-%COMP%] .sponsor-tier-heading[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(51 102 255 / var(--tw-text-opacity, 1))}.main-column[_ngcontent-%COMP%] .sponsor-tier-header--priority-2[_ngcontent-%COMP%] .sponsor-tier-dot[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(255 170 0 / var(--tw-bg-opacity, 1))}.main-column[_ngcontent-%COMP%] .sponsor-tier-header--priority-2[_ngcontent-%COMP%] .sponsor-tier-heading[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(255 170 0 / var(--tw-text-opacity, 1))}.main-column[_ngcontent-%COMP%] .sponsor-tier-header--priority-3[_ngcontent-%COMP%] .sponsor-tier-dot[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(102 112 133 / var(--tw-bg-opacity, 1))}.main-column[_ngcontent-%COMP%] .sponsor-tier-header--priority-3[_ngcontent-%COMP%] .sponsor-tier-heading[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(102 112 133 / var(--tw-text-opacity, 1))}.main-column[_ngcontent-%COMP%] .sponsor-tier-header--priority-4[_ngcontent-%COMP%] .sponsor-tier-dot[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(172 125 71 / var(--tw-bg-opacity, 1))}.main-column[_ngcontent-%COMP%] .sponsor-tier-header--priority-4[_ngcontent-%COMP%] .sponsor-tier-heading[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(172 125 71 / var(--tw-text-opacity, 1))}.main-column[_ngcontent-%COMP%] .sponsor-tier-header--priority-5[_ngcontent-%COMP%] .sponsor-tier-dot[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(27 159 104 / var(--tw-bg-opacity, 1))}.main-column[_ngcontent-%COMP%] .sponsor-tier-header--priority-5[_ngcontent-%COMP%] .sponsor-tier-heading[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(27 159 104 / var(--tw-text-opacity, 1))}.main-column[_ngcontent-%COMP%] .sponsor-tier-strips[_ngcontent-%COMP%]{display:grid;gap:.75rem}.main-column[_ngcontent-%COMP%] .sponsor-tier-strips--cols-1[_ngcontent-%COMP%], .main-column[_ngcontent-%COMP%] .sponsor-tier-strips--cols-2[_ngcontent-%COMP%]{grid-template-columns:repeat(1,minmax(0,1fr))}@media (min-width: 768px){.main-column[_ngcontent-%COMP%] .sponsor-tier-strips--cols-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}}.main-column[_ngcontent-%COMP%] .sponsor-tier-strips--cols-3[_ngcontent-%COMP%]{grid-template-columns:repeat(1,minmax(0,1fr))}@media (min-width: 768px){.main-column[_ngcontent-%COMP%] .sponsor-tier-strips--cols-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}}.main-column[_ngcontent-%COMP%] .sponsor-tier-strips--cols-4[_ngcontent-%COMP%]{grid-template-columns:repeat(1,minmax(0,1fr))}@media (min-width: 768px){.main-column[_ngcontent-%COMP%] .sponsor-tier-strips--cols-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,minmax(0,1fr))}}.main-column[_ngcontent-%COMP%] .sponsor-tier-strips--horizontal[_ngcontent-%COMP%]{display:flex;width:100%;flex-direction:row;flex-wrap:wrap;gap:.75rem}.main-column[_ngcontent-%COMP%] .sponsor-strip[_ngcontent-%COMP%]{position:relative;isolation:isolate;display:flex;gap:1rem;overflow:hidden;border-radius:.75rem;border-width:1px;border-style:solid;border-color:var(--color-bright-gray);background-color:var(--color-white);padding:.75rem;text-decoration-line:none;--tw-shadow: 0 2px 12px rgb(15 23 42/.06);
1--tw-shadow-colored: 0 2px 12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);transform-origin:center;transition-duration:.2s;transition-timing-function:cubic-bezier(0,0,.2,1)}.main-column[_ngcontent-%COMP%] .sponsor-strip[_ngcontent-%COMP%]:hover{--tw-scale-x: 1.01;--tw-scale-y: 1.01;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));--tw-shadow: 0 4px 16px rgb(15 23 42/.08);--tw-shadow-colored: 0 4px 16px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.main-column[_ngcontent-%COMP%] .sponsor-strip[_ngcontent-%COMP%]{outline:2px solid transparent;outline-offset:2px}.main-column[_ngcontent-%COMP%] .sponsor-strip[_ngcontent-%COMP%]:focus{outline:2px solid transparent;outline-offset:2px}.main-column[_ngcontent-%COMP%] .sponsor-strip[_ngcontent-%COMP%]:focus-visible{outline:2px solid transparent;outline-offset:2px}.main-column[_ngcontent-%COMP%] .sponsor-strip[_ngcontent-%COMP%] .sponsor-strip-mouse-gradient[_ngcontent-%COMP%]{pointer-events:none;position:absolute;inset:0;z-index:1;opacity:0;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s;transition-timing-function:cubic-bezier(0,0,.2,1);background:radial-gradient(ellipse 140px 100px at var(--sponsor-gradient-x, 50%) var(--sponsor-gradient-y, 50%),var(--sponsor-logo-gradient, rgba(51, 102, 255, .01)) 0%,transparent 80%);filter:blur(30px)}.main-column[_ngcontent-%COMP%] .sponsor-strip.sponsor-strip--gradient-active[_ngcontent-%COMP%] .sponsor-strip-mouse-gradient[_ngcontent-%COMP%]{opacity:.6;filter:blur(30px);background:radial-gradient(ellipse 160px 110px at var(--sponsor-gradient-x, 50%) var(--sponsor-gradient-y, 50%),var(--sponsor-logo-gradient, rgba(51, 102, 255, .015)) 0%,transparent 65%)}.main-column[_ngcontent-%COMP%] .sponsor-strip--no-link[_ngcontent-%COMP%]{cursor:default}.main-column[_ngcontent-%COMP%] .sponsor-strip--tier-1[_ngcontent-%COMP%]{padding:1rem}@media (min-width: 768px){.main-column[_ngcontent-%COMP%] .sponsor-strip--tier-1[_ngcontent-%COMP%]{padding:1.25rem}}.main-column[_ngcontent-%COMP%] .sponsor-strip--tier-1[_ngcontent-%COMP%]:before, .main-column[_ngcontent-%COMP%] .sponsor-strip--tier-1[_ngcontent-%COMP%]:after{content:"";pointer-events:none;position:absolute;z-index:0;border-radius:9999px;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.5s;transition-timing-function:cubic-bezier(0,0,.2,1);filter:blur(6px);opacity:.5}.main-column[_ngcontent-%COMP%] .sponsor-strip--tier-1[_ngcontent-%COMP%]:before{width:200px;height:200px;top:-100px;left:-80px;background:radial-gradient(circle,var(--sponsor-logo-gradient, rgba(52, 211, 153, .14)) 0%,transparent 68%)}.main-column[_ngcontent-%COMP%] .sponsor-strip--tier-1[_ngcontent-%COMP%]:after{width:160px;height:160px;bottom:-55px;right:-45px;background:radial-gradient(circle,var(--sponsor-logo-gradient, rgba(59, 130, 246, .14)) 0%,transparent 68%)}.main-column[_ngcontent-%COMP%] .sponsor-strip[_ngcontent-%COMP%] .sponsor-strip-logo-wrap[_ngcontent-%COMP%], .main-column[_ngcontent-%COMP%] .sponsor-strip[_ngcontent-%COMP%] .sponsor-strip-text[_ngcontent-%COMP%]{position:relative;z-index:10}.main-column[_ngcontent-%COMP%] .sponsor-strip-logo-wrap[_ngcontent-%COMP%]{display:flex;aspect-ratio:1/1;flex-shrink:0;align-items:center;justify-content:center;border-radius:.5rem;border-width:1px;border-style:solid;border-color:var(--color-bright-gray);background-color:var(--color-twhite);padding:.5rem}.main-column[_ngcontent-%COMP%] .sponsor-strip-logo[_ngcontent-%COMP%]{height:100%;width:100%;object-fit:contain}.main-column[_ngcontent-%COMP%] .sponsor-strip-text[_ngcontent-%COMP%]{display:flex;min-width:0px;flex:1 1 0%;flex-direction:column;gap:.125rem}
1.main-column[_ngcontent-%COMP%] .sponsor-strip-name[_ngcontent-%COMP%]{margin:0;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;width:100%;color:var(--color-yankees-blue);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s;transition-timing-function:cubic-bezier(0,0,.2,1)}.main-column[_ngcontent-%COMP%] .sponsor-strip-name[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(41 82 204 / var(--tw-text-opacity, 1));text-shadow:0 0 8px rgba(51,102,255,.3)}.main-column[_ngcontent-%COMP%] .sponsor-strip--tier-1[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;gap:1rem;padding:1rem}.main-column[_ngcontent-%COMP%] .sponsor-strip--tier-1[_ngcontent-%COMP%] .sponsor-strip-logo-wrap[_ngcontent-%COMP%]{height:100px;width:100px;border-radius:.5rem;padding:6px}.main-column[_ngcontent-%COMP%] .sponsor-strip--tier-1[_ngcontent-%COMP%] .sponsor-strip-name[_ngcontent-%COMP%]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;width:100%;font-size:1.25rem;line-height:1.75rem;font-weight:500}.main-column[_ngcontent-%COMP%] .sponsor-strip--tier-1[_ngcontent-%COMP%] .sponsor-strip-description[_ngcontent-%COMP%]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;font-size:1rem;line-height:1.5rem}.main-column[_ngcontent-%COMP%] .sponsor-strip--tier-2[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;gap:.75rem;padding:1rem}.main-column[_ngcontent-%COMP%] .sponsor-strip--tier-2[_ngcontent-%COMP%] .sponsor-strip-logo-wrap[_ngcontent-%COMP%]{height:5rem;width:5rem;border-radius:.5rem;padding:6px}.main-column[_ngcontent-%COMP%] .sponsor-strip--tier-2[_ngcontent-%COMP%] .sponsor-strip-name[_ngcontent-%COMP%]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;width:100%;font-size:1.125rem;line-height:1.75rem;font-weight:500}.main-column[_ngcontent-%COMP%] .sponsor-strip--tier-2[_ngcontent-%COMP%] .sponsor-strip-description[_ngcontent-%COMP%]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;font-size:.875rem;line-height:1.25rem}.main-column[_ngcontent-%COMP%] .sponsor-strip--tier-3[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;gap:.75rem;padding:1rem}@media (min-width: 768px){.main-column[_ngcontent-%COMP%] .sponsor-strip--tier-3[_ngcontent-%COMP%]{flex-direction:column}}.main-column[_ngcontent-%COMP%] .sponsor-strip--tier-3[_ngcontent-%COMP%] .sponsor-strip-logo-wrap[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto;height:60px;width:60px;border-radius:.5rem;padding:6px}.main-column[_ngcontent-%COMP%] .sponsor-strip--tier-3[_ngcontent-%COMP%] .sponsor-strip-text[_ngcontent-%COMP%]{align-items:flex-start}@media (min-width: 768px){.main-column[_ngcontent-%COMP%] .sponsor-strip--tier-3[_ngcontent-%COMP%] .sponsor-strip-text[_ngcontent-%COMP%]{align-items:center}}.main-column[_ngcontent-%COMP%] .sponsor-strip--tier-3[_ngcontent-%COMP%] .sponsor-strip-name[_ngcontent-%COMP%]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;width:100%;font-size:1rem;line-height:1.5rem;font-weight:500}.main-column[_ngcontent-%COMP%] .sponsor-strip--tier-3[_ngcontent-%COMP%] .sponsor-strip-description[_ngcontent-%COMP%]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;font-size:.75rem;line-height:1rem}.main-column[_ngcontent-%COMP%] .sponsor-strip--tier-4[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;gap:.5rem;padding:1rem}@media (min-width: 768px){.main-column[_ngcontent-%COMP%] .sponsor-strip--tier-4[_ngcontent-%COMP%]{flex-direction:column}}.main-column[_ngcontent-%COMP%] .sponsor-strip--tier-4[_ngcontent-%COMP%] .sponsor-strip-logo-wrap[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto;height:2.5rem;width:2.5rem;border-radius:.5rem;padding:6px}.main-column[_ngcontent-%COMP%] .sponsor-strip--tier-4[_ngcontent-%COMP%] .sponsor-strip-name[_ng
1content-%COMP%]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;width:100%;font-size:.875rem;line-height:1.25rem;font-weight:500}.main-column[_ngcontent-%COMP%] .sponsor-strip--tier-4[_ngcontent-%COMP%] .sponsor-strip-text[_ngcontent-%COMP%]{align-items:flex-start}@media (min-width: 768px){.main-column[_ngcontent-%COMP%] .sponsor-strip--tier-4[_ngcontent-%COMP%] .sponsor-strip-text[_ngcontent-%COMP%]{align-items:center}}.main-column[_ngcontent-%COMP%] .sponsor-strip--tier-4[_ngcontent-%COMP%] .sponsor-strip-description[_ngcontent-%COMP%]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;font-size:.75rem;line-height:1rem}.main-column[_ngcontent-%COMP%] .sponsor-strip--tier-5[_ngcontent-%COMP%]{display:flex;width:100%;flex-direction:row;align-items:center;gap:.5rem;border-radius:.5rem;padding:1rem}.main-column[_ngcontent-%COMP%] .sponsor-strip--tier-5[_ngcontent-%COMP%] .sponsor-strip-logo-wrap[_ngcontent-%COMP%]{height:2rem;width:2rem;flex-shrink:0;border-radius:.5rem;padding:6px}.main-column[_ngcontent-%COMP%] .sponsor-strip--tier-5[_ngcontent-%COMP%] .sponsor-strip-text[_ngcontent-%COMP%]{align-items:flex-start}.main-column[_ngcontent-%COMP%] .sponsor-strip--tier-5[_ngcontent-%COMP%] .sponsor-strip-name[_ngcontent-%COMP%]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;width:100%;font-size:.75rem;line-height:1rem;font-weight:500}.main-column[_ngcontent-%COMP%] .sponsor-strip--tier-5[_ngcontent-%COMP%] .sponsor-strip-description[_ngcontent-%COMP%]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;font-size:.75rem;line-height:1rem}.main-column[_ngcontent-%COMP%] .sponsor-strip-description[_ngcontent-%COMP%]{margin:0;font-weight:400;color:var(--color-gray-500)}.main-column[_ngcontent-%COMP%] commudle-discussion[_ngcontent-%COMP%]{height:24rem}.main-column[_ngcontent-%COMP%] .collaboration-communities[_ngcontent-%COMP%], .main-column[_ngcontent-%COMP%] .comments[_ngcontent-%COMP%], .main-column[_ngcontent-%COMP%] .faq[_ngcontent-%COMP%]{margin:0;margin-bottom:1rem}.main-column[_ngcontent-%COMP%] .comments[_ngcontent-%COMP%] .comments-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.right-column[_ngcontent-%COMP%] com-card[_ngcontent-%COMP%]{margin-right:0;margin-bottom:1rem}.right-column[_ngcontent-%COMP%] com-card[_ngcontent-%COMP%] com-card-header[_ngcontent-%COMP%]{border-top-left-radius:.5rem;border-top-right-radius:.5rem;border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--color-bright-gray);padding:.5rem 1rem;font-size:1rem;line-height:1.5rem;font-weight:600;color:var(--color-yankees-blue);background:linear-gradient(135deg,#f7f7f8,#fff,#f7f7f8)}.right-column[_ngcontent-%COMP%] com-card[_ngcontent-%COMP%] com-card-header[_ngcontent-%COMP%]:is(.com-dark *){background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #080808 var(--tw-gradient-from-position);--tw-gradient-to: rgb(8 8 8 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: rgb(20 20 20 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #141414 var(--tw-gradient-via-position), var(--tw-gradient-to);--tw-gradient-to: #080808 var(--tw-gradient-to-position)}.right-column[_ngcontent-%COMP%] com-card[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%]{padding:1rem}.right-column[_ngcontent-%COMP%] .organizer-btn[_ngcontent-%COMP%]{margin:0;margin-left:1rem;margin-right:1rem;margin-bottom:1rem}@media (min-width: 768px){.right-column[_ngcontent-%COMP%] .organizer-btn[_ngcontent-%COMP%]{margin-left:0;margin-right:0}}.right-column[_ngcontent-%COMP%] .round-card-body[_ngcontent-%COMP%]{padding:.5rem 1rem}.right-column[_ngcontent-%COMP%] .round-card[_ngcontent-%COMP%]{display:flex;gap:.75rem;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.right-column[_ngcontent-%COMP%] .round-card[_ngcontent-%COMP%]:hover .round-info[_ngcontent-%COMP%]{background-color:var(--color-gray-50)}.right-column[_ngcontent-%COMP%] .round-card[_ngcontent-%COMP%] .round-indicator[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.right-column[_ngcontent-%COMP%] .round-card[_ngcontent-%COMP%] .round-indicator[_ngcontent-%COMP%] .round-step[_ngcontent-%COMP%]{display:flex;height:1.5rem;width:1.5rem;flex-shrink:0;align-items:center;justify-content:center;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1));font-size:.75rem;line-height:1rem;font-weight:500;color:var(--color-white)}.right-column[_ngcontent-%COMP%] .round-card[_ngcontent-%COMP%] .round-indicator[_ngcontent-%COMP%] .round-connector[_ngcontent-%COMP%]{margin-top:.25rem;width:1px;flex:1 1 0%;background-color:var(--color-bright-gray)}.right-column[_ngcontent-%COMP%] .round-card[_ngcontent-%COMP%] .round-info[_ngcontent-%COMP%]{display:flex;flex:1 1 0%;flex-direction:column;gap:.25rem;border-radius:.5rem;padding:0;padding-bottom:1rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.right-column[_ngcontent-%COMP%] .round-card[_ngcontent-%COMP%] .round-info[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem;font-weight:500;color:var(--color-yankees-blue)}.right-column[_ngcontent-%COMP%] .round-card[_ngcontent-%COMP%] .round-info[_ngcontent-%COMP%] .date[_ngcontent-%COMP%]{flex-shrink:0;font-size:.875rem;line-height:1.25rem;color:var(--color-gray-500)}.right-column[_ngcontent-%COMP%] .edit-link[_ngcontent-%COMP%]{margin-top:.75rem;display:block;text-decoration-line:none}.right-column[_ngcontent-%COMP%] .map-card[_ngcontent-%COMP%] .map-card-body[_ngcontent-%COMP%]{padding:0}.right-column[_ngcontent-%COMP%] .map-card[_ngcontent-%COMP%] .map-embed[_ngcontent-%COMP%]{width:100%;overflow:hidden;border-top-left-radius:0;border-top-right-radius:0}.right-column[_ngcontent-%COMP%] .map-card[_ngcontent-%COMP%] .map-embed[_ngcontent-%COMP%] iframe[_ngcontent-%COMP%]{display:block;width:100%;height:180px}.right-column[_ngcontent-%COMP%] .map-card[_ngcontent-%COMP%] .map-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.375rem;padding:.75rem}.right-column[_ngcontent-%COMP%] .map-card[_ngcontent-%COMP%] .map-info[_ngcontent-%COMP%] .map-address[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem;font-weight:500;color:var(--color-yankees-blue)}.right-column[_ngcontent-%COMP%] .map-card[_ngcontent-%COMP%] .map-info[_ngcontent-%COMP%] .map-link[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.25rem;font-size:.75rem;line-height:1rem;font-weight:500;--tw-text-opacity: 1;color:rgb(51 102 255 / var(--tw-text-opacity, 1));text-decoration-line:none}.right-column[_ngcontent-%COMP%] .map-card[_ngcontent-%COMP%] .map-info[_ngcontent-%COMP%] .map-link[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(31 61 153 / var(--tw-text-opacity, 1))}.right-column[_ngcontent-%COMP%] .map-card[_ngcontent-%COMP%] .map-info[_ngcontent-%COMP%] .map-link[_ngcontent-%COMP%] nb-icon[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem}
1.right-column[_ngcontent-%COMP%] .hackathon-details[_ngcontent-%COMP%]{margin-bottom:1rem;border-radius:.5rem;border-width:1px;border-style:solid;border-color:var(--color-bright-gray);background-color:var(--color-white)}.registration-status-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem}.status-info[_ngcontent-%COMP%]{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--color-bright-gray);padding-bottom:.75rem}.status-info[_ngcontent-%COMP%] .status-badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.25rem;border-radius:9999px;background-color:var(--color-blue-50);padding:.25rem .75rem;font-size:.75rem;line-height:1rem;font-weight:500;--tw-text-opacity: 1;color:rgb(51 102 255 / var(--tw-text-opacity, 1))}.community-social-links[_ngcontent-%COMP%]{margin-top:.75rem;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:.75rem}.community-social-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration-line:none}']})}}return e})(),oo=(()=>{class e{constructor(){}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["commudle-public-hackathon-schedule"]],standalone:!1,decls:2,vars:0,template:function(i,o){1&i&&(t.j41(0,"p"),t.EFF(1,"public-hackathon-schedule works!"),t.k0s())},encapsulation:2})}}return e})();var bt=s(35851);function io(e,a){1&e&&(t.j41(0,"div",6),t.nrm(1,"commudle-loading-spinner"),t.k0s())}function ao(e,a){if(1&e&&(t.j41(0,"div",11)(1,"span",12),t.EFF(2),t.k0s(),t.j41(3,"span",13),t.EFF(4,"Judges"),t.k0s()()),2&e){const n=t.XpG(2);t.R7$(2),t.JRh(n.judges.length)}}function ro(e,a){if(1&e&&(t.j41(0,"div",11)(1,"span",12),t.EFF(2),t.k0s(),t.j41(3,"span",13),t.EFF(4,"Mentors"),t.k0s()()),2&e){const n=t.XpG(2);t.R7$(2),t.JRh(n.mentors.length)}}function co(e,a){1&e&&t.nrm(0,"app-speaker-card",18),2&e&&t.Y8G("speaker",a.$implicit)}function so(e,a){if(1&e&&(t.j41(0,"com-card",14)(1,"com-card-header")(2,"h3",15),t.EFF(3,"Judges"),t.k0s()(),t.j41(4,"com-card-body")(5,"div",16),t.DNE(6,co,1,1,"app-speaker-card",17),t.k0s()()()),2&e){const n=t.XpG(2);t.R7$(6),t.Y8G("ngForOf",n.judges)}}function lo(e,a){1&e&&t.nrm(0,"app-speaker-card",18),2&e&&t.Y8G("speaker",a.$implicit)}function mo(e,a){if(1&e&&(t.j41(0,"com-card",14)(1,"com-card-header")(2,"h3",15),t.EFF(3,"Mentors"),t.k0s()(),t.j41(4,"com-card-body")(5,"div",16),t.DNE(6,lo,1,1,"app-speaker-card",17),t.k0s()()()),2&e){const n=t.XpG(2);t.R7$(6),t.Y8G("ngForOf",n.mentors)}}function go(e,a){if(1&e&&(t.qex(0),t.j41(1,"div",7)(2,"div",8),t.DNE(3,ao,5,1,"div",9)(4,ro,5,1,"div",9),t.k0s()(),t.DNE(5,so,7,1,"com-card",10)(6,mo,7,1,"com-card",10),t.bVm()),2&e){const n=t.XpG();t.R7$(3),t.Y8G("ngIf",n.judges.length>0),t.R7$(),t.Y8G("ngIf",n.mentors.length>0),t.R7$(),t.Y8G("ngIf",n.judges.length>0),t.R7$(),t.Y8G("ngIf",n.mentors.length>0)}}let _o=(()=>{class e{constructor(n,i,o,r){this.activatedRoute=n,this.hackathonService=i,this.hrgService=o,this.seoService=r,this.subscriptions=[],this.judges=[],this.mentors=[],this.isLoading=!0,this.icons={faLinkedinIn:P.B_4,faGlobe:l.Bwz,faTwitter:P.HQ1}}ngOnInit(){this.subscriptions.push(this.activatedRoute.parent.data.subscribe(n=>{this.hackathon=n.hackathon,this.community=n.community,this.setSeo(),this.getJudges(),this.getHackathonResponseGroup()}))}getHackathonResponseGroup(){this.hrgService.pShowHackathonResponseGroup(this.hackathon.id).subscribe(n=>{n&&(this.hrgId=n.id)})}setSeo(){this.seoService.setTags(`Mentors & Judges | ${this.hackathon.name}`,`Meet the judges & mentors for ${this.hackathon.name} hackathon`,this.hackathon?.banner_image?.url||"https://commudle.com/assets/images/commudle-logo192.png")}getJudges(){this.subscriptions.push(this.hackathonService.pIndexJudge(this.hackathon.id).subscribe(n=>{this.hackathonJudges=n,this.judges=n.filter(i=>"judge"===i.judge_type),this.mentors=n.filter(i=>"mentor"===i.judge_type),this.isLoading=!1}))}static{this.\u0275fac=function(i){return new(i||e)(t.rXU(C.nX),t.rXU(O.$),t.rXU(F.$),t.rXU(_.B2))}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["commudle-public-hackathon-judges"]],standalone:!1,decls:6,vars:11,consts:[[1,"two-column-layout","medium","mobile-reverse"],[1,"main-column"],["class","loading",4,"ngIf"],[4,"ngIf"],[1,"right-column"],[3,"hackathon","hrgId","community","showName","showStatusBadge","showCommunityBadge","showPrizeHeader","showLocation","showApplySection"],[1,"loading"],[1,"page-header"],[1,"stats-row"],["class","stat-item",4,"ngIf"],["class","section-card",4,"ngIf"],[1,"stat-item"],[1,"stat-number"],[1,"stat-label"],[1,"section-card"],[1,"section-title"],[1,"people-grid"],[3,"speaker",4,"ngFor","ngForOf"],[3,"speaker"]],template:function(i,o){1&i&&(t.j41(0,"div",0)(1,"div",1),t.DNE(2,io,2,0,"div",2)(3,go,7,4,"ng-container",3),t.k0s(),t.j41(4,"div",4),t.nrm(5,"commudle-public-hackathon-detail
1s-mini-card",5),t.k0s()()),2&i&&(t.R7$(2),t.Y8G("ngIf",o.isLoading),t.R7$(),t.Y8G("ngIf",!o.isLoading),t.R7$(2),t.Y8G("hackathon",o.hackathon)("hrgId",o.hrgId)("community",o.community)("showName",!1)("showStatusBadge",!1)("showCommunityBadge",!1)("showPrizeHeader",!1)("showLocation",!1)("showApplySection",!1))},dependencies:[m.Sq,m.bT,R.N,v.v,x.W,w.H,bt.J,z],styles:[".two-column-layout[_ngcontent-%COMP%]{margin-top:1rem}.loading[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding-top:4rem;padding-bottom:4rem}@media (min-width: 768px){.main-column[_ngcontent-%COMP%]{margin-right:1.5rem}}.page-header[_ngcontent-%COMP%]{margin-bottom:1.25rem}.page-header[_ngcontent-%COMP%] .page-title[_ngcontent-%COMP%]{margin:0;font-size:1rem;line-height:1.5rem;font-weight:600;color:var(--color-yankees-blue)}.page-header[_ngcontent-%COMP%] .page-subtitle[_ngcontent-%COMP%]{margin:0;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(143 155 179 / var(--tw-text-opacity, 1))}.page-header[_ngcontent-%COMP%] .stats-row[_ngcontent-%COMP%]{margin-left:1rem;margin-right:1rem;margin-top:0;display:flex;flex-wrap:wrap;gap:.75rem}@media (min-width: 768px){.page-header[_ngcontent-%COMP%] .stats-row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}}.page-header[_ngcontent-%COMP%] .stats-row[_ngcontent-%COMP%] .stat-item[_ngcontent-%COMP%]{display:flex;flex:1 1 0%;flex-direction:column;align-items:center;border-radius:.75rem;border-width:1px;border-style:solid;border-color:var(--color-bright-gray);background-color:var(--color-white);padding:1rem .75rem}.page-header[_ngcontent-%COMP%] .stats-row[_ngcontent-%COMP%] .stat-item[_ngcontent-%COMP%] .stat-number[_ngcontent-%COMP%]{font-size:1.5rem;line-height:2rem;font-weight:600;color:var(--color-yankees-blue)}.page-header[_ngcontent-%COMP%] .stats-row[_ngcontent-%COMP%] .stat-item[_ngcontent-%COMP%] .stat-label[_ngcontent-%COMP%]{margin-top:.25rem;font-size:.75rem;line-height:1rem;font-weight:500;--tw-text-opacity: 1;color:rgb(143 155 179 / var(--tw-text-opacity, 1))}.section-card[_ngcontent-%COMP%]{margin:0;margin-bottom:1rem}.section-card[_ngcontent-%COMP%] com-card-header[_ngcontent-%COMP%]{border-top-left-radius:.5rem;border-top-right-radius:.5rem;border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--color-bright-gray);padding:.5rem 1rem;background:linear-gradient(135deg,#f7f7f8,#fff,#f7f7f8)}.section-card[_ngcontent-%COMP%] com-card-header[_ngcontent-%COMP%]:is(.com-dark *){background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #080808 var(--tw-gradient-from-position);--tw-gradient-to: rgb(8 8 8 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: rgb(20 20 20 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #141414 var(--tw-gradient-via-position), var(--tw-gradient-to);--tw-gradient-to: #080808 var(--tw-gradient-to-position) }.section-card[_ngcontent-%COMP%] com-card-header[_ngcontent-%COMP%] .section-title[_ngcontent-%COMP%]{margin:0;font-size:1rem;line-height:1.5rem;font-weight:600;color:var(--color-yankees-blue)}.section-card[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%]{padding:1rem}.people-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(1,minmax(0,1fr));gap:1rem}@media (min-width: 640px){.people-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width: 1024px){.people-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}}.person-card[_ngcontent-%COMP%]{overflow:hidden;border-radius:.75rem;border-width:1px;border-style:solid;border-color:var(--color-bright-gray);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.person-card[_ngcontent-%COMP%]:hover{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
1--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);transform:scale(1.01)}.person-card.disabled[_ngcontent-%COMP%]{cursor:default;opacity:.7}.person-card[_ngcontent-%COMP%] .person-link[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;padding:1rem;text-align:center;text-decoration-line:none}.person-card[_ngcontent-%COMP%] .person-avatar[_ngcontent-%COMP%]{margin-bottom:.75rem;height:5rem;width:5rem;overflow:hidden;border-radius:9999px;border-width:2px;border-style:solid;border-color:var(--color-bright-gray)}.person-card[_ngcontent-%COMP%] .person-avatar[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:100%;width:100%;object-fit:cover}.person-card[_ngcontent-%COMP%] .person-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:0px}.person-card[_ngcontent-%COMP%] .person-info[_ngcontent-%COMP%] .person-name[_ngcontent-%COMP%]{margin:0;font-size:.875rem;line-height:1.25rem;font-weight:600;color:var(--color-yankees-blue)}.person-card[_ngcontent-%COMP%] .person-info[_ngcontent-%COMP%] .person-username[_ngcontent-%COMP%]{margin:0;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(143 155 179 / var(--tw-text-opacity, 1))}.person-card[_ngcontent-%COMP%] .person-info[_ngcontent-%COMP%] .person-designation[_ngcontent-%COMP%]{margin:0;margin-top:.25rem;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(143 155 179 / var(--tw-text-opacity, 1))}.person-card[_ngcontent-%COMP%] .person-social[_ngcontent-%COMP%]{margin-top:.75rem;display:flex;gap:.75rem}.person-card[_ngcontent-%COMP%] .person-social[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(143 155 179 / var(--tw-text-opacity, 1));text-decoration-line:none}.person-card[_ngcontent-%COMP%] .person-social[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(51 102 255 / var(--tw-text-opacity, 1))}.right-column[_ngcontent-%COMP%]{margin-bottom:1rem}@media (min-width: 768px){.right-column[_ngcontent-%COMP%]{margin-bottom:0}}"]})}}return e})();var K=s(15592);const po=()=>["../winners"];function uo(e,a){1&e&&(t.j41(0,"div",6),t.nrm(1,"commudle-loading-spinner"),t.k0s())}function ho(e,a){if(1&e&&t.nrm(0,"img",31),2&e){const n=t.XpG(3);t.Y8G("src",n.staticAssets.hackathon_trophy_winner,t.B4B)}}function bo(e,a){if(1&e&&t.nrm(0,"img",32),2&e){const n=t.XpG(3);t.Y8G("src",n.staticAssets.hackathon_trophy_silver,t.B4B)}}function Co(e,a){if(1&e&&t.nrm(0,"img",33),2&e){const n=t.XpG(3);t.Y8G("src",n.staticAssets.hackathon_trophy_bronze,t.B4B)}}function fo(e,a){if(1&e&&t.nrm(0,"img",34),2&e){const n=t.XpG(3);t.Y8G("src",n.staticAssets.hacakthon_trophy_winner_state,t.B4B)}}function Po(e,a){if(1&e&&(t.j41(0,"div",35),t.EFF(1),t.nI1(2,"number"),t.k0s()),2&e){const n=t.XpG().$implicit;t.R7$(),t.Lme(" ",n.currency_symbol," ",t.bMT(2,2,n.prize_amount)," ")}}function Mo(e,a){if(1&e&&t.nrm(0,"div",36),2&e){const n=t.XpG().$implicit;t.Y8G("innerHTML",n.description,t.npT)}}function Oo(e,a){if(1&e&&(t.j41(0,"div",37),t.nrm(1,"fa-icon",30),t.j41(2,"span"),t.EFF(3),t.k0s()()),2&e){const n=t.XpG().$implicit,i=t.XpG(2);t.R7$(),t.Y8G("icon",i.icons.faLayerGroup),t.R7$(2),t.JRh(n.hackathon_track.name)}}function ko(e,a){if(1&e&&(t.j41(0,"div",38),t.nrm(1,"fa-icon",30),t.j41(2,"span"),t.EFF(3),t.k0s()()),2&e){const n=t.XpG().$implicit,i=t.XpG(2);t.R7$(),t.Y8G("icon",i.icons.faUsers),t.R7$(2),t.Lme("",n.no_of_winners," ",1===n.no_of_winners?"Winner":"Winners","")}}function vo(e,a){if(1&e&&(t.j41(0,"div",13)(1,"div",14)(2,"div",15),t.DNE(3,ho,1,1,"img",16)(4,bo,1,1,"img",17)(5,Co,1,1,"img",18)(6,fo,1,1,"img",19),t.k0s(),t.j41(7,"div",20)(8,"div",21)(9,"div",22),t.nrm(10,"fa-icon",23),t.j41(11,"span"),t.EFF(12),t.k0s()(),t.DNE(13,Po,3,4,"div",24)(14,Mo,1,1,"div",25)(15,Oo,4,2,"div",26),t.k0s(),t.j41(16,"div",27),t.DNE(17,ko,4,3,"div",28),t.j41(18,"a",29),t.nrm(19,"fa-icon",30),t.k0s()()()()()),2&e){const n=a.$implicit,i=t.XpG(2);t.Y8G("ngClass","prize-rank-"+n.order),t.R7$(3),t.Y8G("ngIf",1===n.order),t.R7$(),t.Y8G("ngIf",2===n.order),t.R7$(),t.Y8G("ngIf",3===n.order),t.R7$(),t.Y8G("ngIf",n.order>3),t.R7$(4),t.Y8G("icon",i.icons.faMedal),t.R7$(2),t.JRh(n.name),t.R7$(),t.Y8G("ngIf",n.prize_amount),t.R7$(),t.Y8G("ngIf",n.description),t.R7$(),t.Y8G("ngIf",null==n.hackathon_track?null:n.hackathon_track.name),t.R7$(2),t.Y8G("ngIf",n.no_of_winners),t.R7$(),t.Y8G("routerLink",t.lJ4(13,po)),t.R7$(),t.Y8G("icon",i.icons.faAngleRight)}}function wo(e,a){if(1&e&&(t.j41(0,"div",7),t.nrm(1,"fa-icon",8),t.j41(2,"div")(3,"h2",9),t.EFF(4,"Prizes & Rewards"),t.k0s(),t.j41(5,"p",10),t.EFF(6,"Recognition and rewards for the most innovative solutions."),t.k0s()()(),t.j41(7,"div",11),t.DNE(8,vo,20,14,"div",12),t.k0s()),2&e){const n=t.XpG();t.R7$(),t.Y8G("icon",n.icons.faStar),t.R7$(7),t.Y8G("ngForOf",n.hackathonPrizes)}}let yo=(()=>{class e{constructor(n,i,o,r,c){this.activatedRoute=n,this.hackathonService=i,this.hrgService=o,this.authService=r,this.seoService=c,this.isLoading=!0,this.icons={faTrophy:l.iHh,faLayerGroup:l.qIE,faUsers:l.gdJ,faAngleRight:l.vmR,faStar:l.yy,faMedal:l.B9e},this.staticAssets=K.e,this.subscriptions=[],this.destroy$=new y.B}ngOnInit(){this.subscriptions.push(this.activatedRoute.parent.data.subscribe(n=>{this.hackathon=n.hackathon,this.community=n.community,this.setSeo(),this.getPrizes()})),this.hrgService.pShowHackathonResponseGroup(this.hackathon.id).subscribe(n=>{n&&(this.hrgId=n.id)}),this.authService.currentUser$.pipe((0,b.Q)(this.destroy$)).subscribe(n=>
1{n&&this.getHackathonCurrentRegistrationDetails()})}ngOnDestroy(){this.subscriptions.forEach(n=>n.unsubscribe()),this.destroy$.next(),this.destroy$.complete()}setSeo(){this.seoService.setTags(`Prizes | ${this.hackathon.name}`,`Explore prizes for ${this.hackathon.name} hackathon`,this.hackathon?.banner_image?.url||"https://commudle.com/assets/images/commudle-logo192.png")}getPrizes(){this.subscriptions.push(this.hackathonService.pIndexPrizes(this.hackathon.id).subscribe(n=>{this.hackathonPrizes=n,this.hackathonPrizes.forEach(i=>{const o=_.aE.find(r=>r.currency===i.currency_type)||{symbol:i.currency_type};i.currency_symbol=o?.symbol||i.currency_type}),this.isLoading=!1}))}getHackathonCurrentRegistrationDetails(){this.subscriptions.push(this.hackathonService.getHackathonCurrentRegistrationDetails(this.hackathon.id).subscribe(n=>{n&&(this.userTeamDetails=n)}))}static{this.\u0275fac=function(i){return new(i||e)(t.rXU(C.nX),t.rXU(O.$),t.rXU(F.$),t.rXU(_.uR),t.rXU(_.B2))}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["commudle-public-hackathon-prizes"]],standalone:!1,decls:7,vars:11,consts:[["prizesCards",""],[1,"two-column-layout","medium","mobile-reverse"],[1,"main-column","com-mb-20"],["class","loading",4,"ngIf","ngIfElse"],[1,"right-column"],[3,"hackathon","hrgId","community","showName","showStatusBadge","showCommunityBadge","showPrizeHeader","showLocation","showApplySection"],[1,"loading"],[1,"prizes-header"],[1,"prizes-header-icon",3,"icon"],[1,"prizes-title"],[1,"prizes-subtitle"],[1,"prizes-list"],["class","prize-card",3,"ngClass",4,"ngFor","ngForOf"],[1,"prize-card",3,"ngClass"],[1,"prize-card-content"],[1,"prize-trophy"],["alt","Winner Trophy",3,"src",4,"ngIf"],["alt","Silver Trophy",3,"src",4,"ngIf"],["alt","Bronze Trophy",3,"src",4,"ngIf"],["alt","Trophy",3,"src",4,"ngIf"],[1,"prize-details"],[1,"prize-info"],[1,"prize-badge"],[1,"badge-icon",3,"icon"],["class","prize-amount",4,"ngIf"],["class","prize-description",3,"innerHTML",4,"ngIf"],["class","prize-track",4,"ngIf"],[1,"prize-right"],["class","winners-count",4,"ngIf"],[1,"arrow-btn",3,"routerLink"],[3,"icon"],["alt","Winner Trophy",3,"src"],["alt","Silver Trophy",3,"src"],["alt","Bronze Trophy",3,"src"],["alt","Trophy",3,"src"],[1,"prize-amount"],[1,"prize-description",3,"innerHTML"],[1,"prize-track"],[1,"winners-count"]],template:function(i,o){if(1&i&&(t.j41(0,"div",1)(1,"div",2),t.DNE(2,uo,2,0,"div",3)(3,wo,9,2,"ng-template",null,0,t.C5r),t.k0s(),t.j41(5,"div",4),t.nrm(6,"commudle-public-hackathon-details-mini-card",5),t.k0s()()),2&i){const r=t.sdS(4);t.R7$(2),t.Y8G("ngIf",o.isLoading)("ngIfElse",r),t.R7$(4),t.Y8G("hackathon",o.hackathon)("hrgId",o.hrgId)("community",o.community)("showName",!1)("showStatusBadge",!1)("showCommunityBadge",!1)("showPrizeHeader",!1)("showLocation",!1)("showApplySection",!1)}},dependencies:[m.YU,m.Sq,m.bT,f.Wk,k.aY,R.N,D.G,z,m.QX],styles:[".two-column-layout[_ngcontent-%COMP%]{margin-top:1rem}.main-column[_ngcontent-%COMP%]{border-radius:.75rem;border-width:1px;border-style:solid;border-color:var(--color-bright-gray);background-color:var(--color-white);padding:1.25rem}@media (min-width: 768px){.main-column[_ngcontent-%COMP%]{margin-right:1.5rem}}.main-column[_ngcontent-%COMP%] .loading[_ngcontent-%COMP%]{display:flex;min-height:50vh;width:100%;align-items:center;justify-content:center}.main-column[_ngcontent-%COMP%] .prizes-header[_ngcontent-%COMP%]{margin-bottom:1.25rem;display:flex;align-items:flex-start;gap:.5rem;border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--color-bright-gray);padding-bottom:1rem}.main-column[_ngcontent-%COMP%] .prizes-header[_ngcontent-%COMP%] .prizes-header-icon[_ngcontent-%COMP%]{font-size:1rem;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(51 102 255 / var(--tw-text-opacity, 1))}.main-column[_ngcontent-%COMP%] .prizes-header[_ngcontent-%COMP%] .prizes-title[_ngcontent-%COMP%]{margin:0;font-size:1rem;line-height:1.5rem;font-weight:600;color:var(--color-yankees-blue)}.main-column[_ngcontent-%COMP%] .prizes-header[_ngcontent-%COMP%] .prizes-subtitle[_ngcontent-%COMP%]{margin:0;margin-top:.25rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(143 155 179 / var(--tw-text-opacity, 1))}.main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card[_ngcontent-%COMP%]{overflow:hidden;border-radius:.75rem;border-width:1px;border-style:solid;border-color:var(--color-bright-gray);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card[_ngcontent-%COMP%]:hover{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
1--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);transform:scale(1.01)}.main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-1[_ngcontent-%COMP%]{background:linear-gradient(135deg,#faf5ff,#fff 60%);border-color:#e9d5ff}.main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-1[_ngcontent-%COMP%]:is(.com-dark *){--tw-border-opacity: 1;border-color:rgb(107 33 168 / var(--tw-border-opacity, 1));background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #1e1033 var(--tw-gradient-from-position);--tw-gradient-to: rgb(30 16 51 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #0f172a var(--tw-gradient-to-position)}.main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-2[_ngcontent-%COMP%]{background:linear-gradient(135deg,#eff6ff,#fff 60%);border-color:#bfdbfe}.main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-2[_ngcontent-%COMP%]:is(.com-dark *){--tw-border-opacity: 1;border-color:rgb(30 64 175 / var(--tw-border-opacity, 1));background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #0c1a33 var(--tw-gradient-from-position);--tw-gradient-to: rgb(12 26 51 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #0f172a var(--tw-gradient-to-position)}.main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-3[_ngcontent-%COMP%]{background:linear-gradient(135deg,#fff7ed,#fff 60%);border-color:#fed7aa}.main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-3[_ngcontent-%COMP%]:is(.com-dark *){--tw-border-opacity: 1;border-color:rgb(154 52 18 / var(--tw-border-opacity, 1));background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #1f1408 var(--tw-gradient-from-position);--tw-gradient-to: rgb(31 20 8 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #0f172a var(--tw-gradient-to-position)}.main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-4[_ngcontent-%COMP%], .main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-5[_ngcontent-%COMP%], .main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-6[_ngcontent-%COMP%], .main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-7[_ngcontent-%COMP%], .main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-8[_ngcontent-%COMP%], .main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-9[_ngcontent-%COMP%], .main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-10[_ngcontent-%COMP%]{background:linear-gradient(135deg,#f8fafc,#fff 60%);border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-4[_ngcontent-%COMP%]:is(.com-dark *), .main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-5[_ngcontent-%COMP%]:is(.com-dark *), .main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-6[_ngcontent-%COMP%]:is(.com-dark *), .main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-7[_ngcontent-%COMP%]:is(.com-dark *), .main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-8[_ngcontent-%COMP%]:is(.com-dark *), .main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-9[_ngcontent-%COMP%]:is(.com-dark *), .main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-10[_ngcontent-%COMP%]:is(.com-dark *){border-color:var(--color-gray-700);background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #0f172a var(--tw-gradient-from-position);--tw-gradient-to: rgb(15 23 42 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #0f172a var(--tw-gradient-to-position)}.main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card[_ngcontent-%COMP%] .prize-card-content[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;gap:.75rem;padding:.75rem}@media (min-width: 768px){.main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card[_ngcontent-%COMP%] .prize-card-content[_ngcontent-%COMP%]{gap:1.25rem}}.main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card[_ngcontent-%COMP%] .prize-card-content[_ngcontent-%COMP%] .prize-trophy[_ngcontent-%COMP%]{display:flex;width:7rem;flex-shrink:0;align-items:center;justify-content:center;overflow:hidden;border-radius:.75rem;aspect-ratio:1/1}.main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card[_ngcontent-%COMP%] .prize-card-content[_ngcontent-%COMP%] .prize-trophy[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:100%;width:100%;object-fit:cover}.main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card[_ngcontent-%COMP%] .prize-card-content[_ngcontent-%COMP%] .prize-trophy[_ngcontent-%COMP%] .default-trophy-icon[_ngcontent-%COMP%]{font-size:3rem;line-height:1;--tw-text-opacity: 1;color:rgb(92 133 255 / var(--tw-text-opacity, 1))}.main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card[_ngcontent-%COMP%] .prize-card-content[_ngcontent-%COMP%] .prize-details[_ngcontent-%COMP%]{display:flex;flex:1 1 0%;flex-direction:column;gap:.75rem}@media (min-width: 768px){.main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card[_ngcontent-%COMP%] .prize-card-content[_ngcontent-%COMP%] .prize-details[_ngcontent-%COMP%]{flex-direction:row;align-items:center;justify-content:space-between}}.main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card[_ngcontent-%COMP%] .prize-card-content[_ngcontent-%COMP%] .prize-info[_ngcontent-%COMP%]{display:flex;flex:1 1 0%;flex-direction:column;gap:.5rem}.main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card[_ngcontent-%COMP%] .prize-card-content[_ngcontent-%COMP%] .prize-info[_ngcontent-%COMP%] .prize-badge[_ngcontent-%COMP%]{display:inline-flex;width:fit-content;align-items:center;gap:.25rem;border-radius:9999px;padding:.25rem .75rem;font-size:.75rem;line-height:1rem;font-weight:400;background-color:#6366f114}.main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card[_ngcontent-%COMP%] .prize-card-content[_ngcontent-%COMP%] .prize-info[_ngcontent-%COMP%] .prize-badge[_ngcontent-%COMP%] .badge-icon[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem}.main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card[_ngcontent-%COMP%] .prize-card-content[_ngcontent-%COMP%] .prize-info[_ngcontent-%COMP%] .prize-amount[_ng
1content-%COMP%]{margin-top:.25rem;font-size:1.5rem;line-height:2rem;font-weight:600}.main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card[_ngcontent-%COMP%] .prize-card-content[_ngcontent-%COMP%] .prize-info[_ngcontent-%COMP%] .prize-description[_ngcontent-%COMP%]{margin-top:.25rem;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(143 155 179 / var(--tw-text-opacity, 1))}.main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card[_ngcontent-%COMP%] .prize-card-content[_ngcontent-%COMP%] .prize-info[_ngcontent-%COMP%] .prize-description[_ngcontent-%COMP%] p{margin:0;font-size:.75rem;line-height:1rem}.main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card[_ngcontent-%COMP%] .prize-card-content[_ngcontent-%COMP%] .prize-info[_ngcontent-%COMP%] .prize-track[_ngcontent-%COMP%]{margin-top:.25rem;display:flex;align-items:center;gap:.25rem;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(143 155 179 / var(--tw-text-opacity, 1))}.main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card[_ngcontent-%COMP%] .prize-card-content[_ngcontent-%COMP%] .prize-right[_ngcontent-%COMP%]{display:flex;flex-shrink:0;align-items:center;justify-content:space-between}@media (min-width: 768px){.main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card[_ngcontent-%COMP%] .prize-card-content[_ngcontent-%COMP%] .prize-right[_ngcontent-%COMP%]{gap:.75rem}}.main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card[_ngcontent-%COMP%] .prize-card-content[_ngcontent-%COMP%] .prize-right[_ngcontent-%COMP%] .winners-count[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(143 155 179 / var(--tw-text-opacity, 1))}.main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card[_ngcontent-%COMP%] .prize-card-content[_ngcontent-%COMP%] .prize-right[_ngcontent-%COMP%] .winners-count[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(143 155 179 / var(--tw-text-opacity, 1))}.main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card[_ngcontent-%COMP%] .prize-card-content[_ngcontent-%COMP%] .prize-right[_ngcontent-%COMP%] .arrow-btn[_ngcontent-%COMP%]{display:flex;height:2.25rem;width:2.25rem;align-items:center;justify-content:center;border-radius:9999px;color:var(--color-white);text-decoration-line:none;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card[_ngcontent-%COMP%] .prize-card-content[_ngcontent-%COMP%] .prize-right[_ngcontent-%COMP%] .arrow-btn[_ngcontent-%COMP%]:hover{transform:scale(1.1)}.main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-1[_ngcontent-%COMP%] .prize-badge[_ngcontent-%COMP%], .main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-1[_ngcontent-%COMP%] .prize-amount[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(168 85 247 / var(--tw-text-opacity, 1))}.main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-1[_ngcontent-%COMP%] .arrow-btn[_ngcontent-%COMP%]{background:#7c3aed}.main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-2[_ngcontent-%COMP%] .prize-badge[_ngcontent-%COMP%], .main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-2[_ngcontent-%COMP%] .prize-amount[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-2[_ngcontent-%COMP%] .arrow-btn[_ngcontent-%COMP%]{background:#3b82f6}.main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-3[_ngcontent-%COMP%] .prize-badge[_ngcontent-%COMP%], .main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-3[_ngcontent-%COMP%] .prize-amount[_ng
1content-%COMP%]{--tw-text-opacity: 1;color:rgb(249 115 22 / var(--tw-text-opacity, 1))}.main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-3[_ngcontent-%COMP%] .arrow-btn[_ngcontent-%COMP%]{background:#f97316}.main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-4[_ngcontent-%COMP%] .prize-badge[_ngcontent-%COMP%], .main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-5[_ngcontent-%COMP%] .prize-badge[_ngcontent-%COMP%], .main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-6[_ngcontent-%COMP%] .prize-badge[_ngcontent-%COMP%], .main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-7[_ngcontent-%COMP%] .prize-badge[_ngcontent-%COMP%], .main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-8[_ngcontent-%COMP%] .prize-badge[_ngcontent-%COMP%], .main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-9[_ngcontent-%COMP%] .prize-badge[_ngcontent-%COMP%], .main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-10[_ngcontent-%COMP%] .prize-badge[_ngcontent-%COMP%], .main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-4[_ngcontent-%COMP%] .prize-amount[_ngcontent-%COMP%], .main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-5[_ngcontent-%COMP%] .prize-amount[_ngcontent-%COMP%], .main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-6[_ngcontent-%COMP%] .prize-amount[_ngcontent-%COMP%], .main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-7[_ngcontent-%COMP%] .prize-amount[_ngcontent-%COMP%], .main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-8[_ngcontent-%COMP%] .prize-amount[_ngcontent-%COMP%], .main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-9[_ngcontent-%COMP%] .prize-amount[_ngcontent-%COMP%], .main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-10[_ngcontent-%COMP%] .prize-amount[_ngcontent-%COMP%]{color:var(--color-gray-500)}.main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-4[_ngcontent-%COMP%] .arrow-btn[_ngcontent-%COMP%], .main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-5[_ngcontent-%COMP%] .arrow-btn[_ngcontent-%COMP%], .main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-6[_ngcontent-%COMP%] .arrow-btn[_ngcontent-%COMP%], .main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-7[_ngcontent-%COMP%] .arrow-btn[_ngcontent-%COMP%], .main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-8[_ngcontent-%COMP%] .arrow-btn[_ngcontent-%COMP%], .main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-9[_ngcontent-%COMP%] .arrow-btn[_ngcontent-%COMP%], .main-column[_ngcontent-%COMP%] .prizes-list[_ngcontent-%COMP%] .prize-card.prize-rank-10[_ngcontent-%COMP%] .arrow-btn[_ngcontent-%COMP%]{background:#9ca3af}.right-column[_ngcontent-%COMP%]{margin-bottom:1rem;border-width:1px;border-style:solid;border-color:var(--color-bright-gray)}@media (min-width: 768px){.right-column[_ngcontent-%COMP%]{margin-bottom:0}}.right-column[_ngcontent-%COMP%] com-card[_ngcontent-%COMP%]{margin-right:0}"]})}}return e})();var N=s(37805);const xo=e=>["/builds",e];function Ro(e,a){1&e&&(t.j41(0,"div",2),t.nrm(1,"commudle-loading-spinner"),t.k0s())}function To(e,a){1&e&&(t.j41(0,"div",7)(1,"div",8),t.nrm(2,"span",9)(3,"span",10)(4,"span",11)(5,"span",12)(6,"span",13)(7,"span",14),t.k0s(),t.j41(8,"div",15)(9,"span"),t.EFF(10,"?"),t.k0s()(),t.j41(11,"div",16)(12,"div",17)(13,"span",18),t.EFF(14,"2"),t.k0s()(),t.j41(15,"div",19)(16,"span",18),t.EFF(17,"1"),t.k0s()(),t.j41(18,"div",20)(19,"span",18),t.EFF(20,"3"),t.k0s()()(),t.j41(21,"h3",21),t.EFF(22,"The podium is still empty"),t.k0s(),t.j41(23,"p",22),t.EFF(24," Winners will be announced here once judging wraps up. Follow the hackathon to get notified the moment results drop. "),t.k0s()())}function Fo(e,a){if(1&e&&(t.j41(0,"div",23),t.nrm(1,"fa-icon",24),t.j41(2,"div")(3,"h2",25),t.EFF(4,"Winners"),t.k0s(),t.j41(5,"p",26),t.EFF(6,"Congratulations to all the winning teams!"),t.k0s()()()),2&e){const n=t.XpG(2);t.R7$(),t.Y8G("icon",n.icons.faTrophy)}}function Do(e,a){if(1&e&&t.nrm(0,"img",44),2&e){const n=t.XpG(4);t.Y8G("src",n.staticAssets.hackathon_trophy_winner,t.B4B)}}function jo(e,a){if(1&e&&t.nrm(0,"img",45),2&e){const n=t.XpG(4);t.Y8G("src",n.staticAssets.hackathon_trophy_silver,t.B4B)}}function Go(e,a){if(1&e&&t.nrm(0,"img",46),2&e){const n=t.XpG(4);t.Y8G("src",n.staticAssets.hackathon_trophy_bronze,t.B4B)}}function Eo(e,a){if(1&e&&t.nrm(0,"img",47),2&e){const n=t.XpG(4);t.Y8G("src",n.staticAssets.hacakthon_trophy_winner_state,t.B4B)}}function So(e,a){if(1&e&&(t.j41(0,"div",48),t.EFF(1),t.nI1(2,"number"),t.k0s()),2&e){const n=t.XpG().$implicit;t.R7$(),t.Lme(" ",n.prize.currency_symbol," ",t.bMT(2,2,n.prize.prize_amount)," ")}}function $o(e,a){if(1&e&&t.nrm(0,"div",49),2&e){const n=t.XpG().$implicit;t.Y8G("innerHTML",n.prize.description,t.npT)}}function Io(e,a){if(1&e&&(t.j41(0,"div",50),t.nrm(1,"fa-icon",51),t.j41(2,"span"),t.EFF(3),t.k0s()()),2&e){const n=t.XpG().$implicit,i=t.XpG(3);t.R7$(),t.Y8G("icon",i.icons.faLayerGroup),t.R7$(2),t.JRh(n.prize.hackathon_track.name)}}function zo(e,a){if(1&e&&(t.j41(0,"a",56),t.nrm(1,"fa-icon",51),t.j41(2,"span"),t.EFF(3,"Project"),t.k0s()()),2&e){const n=t.XpG().$implicit,i=t.XpG(4);t.Y8G("routerLink",t.eq3(2,xo,n.community_build.slug)),t.R7$(),t.Y8G("icon",i.icons.faLaptopCode)}}function Ho(e,a){1&e&&t.nrm(0,"app-user-profile-card-small",59),2&e&&t.Y8G("user",a.$implicit)}function Yo(e,a){if(1&e&&(t.j41(0,"div",57),t.DNE(1,Ho,1,1,"app-user-profile-card-small",58),t.k0s()),2&e){const n=t.XpG().$implicit;t.R7$(),t.Y8G("ngForOf",n.members)}}function Bo(e,a){if(1&e&&(t.j41(0,"div",52)(1,"div",53),t.EFF(2),t.DNE(3,zo,4,4,"a",54),t.k0s(),t.DNE(4,Yo,2,1,"div",55),t.k0s()),2&e){const n=a.$implicit;t.R7$(2),t.SpI(" ",n.name," "),t.R7$(),t.Y8G("ngIf",n.community_build),t.R7$(),t.Y8G("ngIf",null==n.members?null:n.members.length)}}function Xo(e,a){if(1&e&&(t.j41(0,"div",29)(1,"div",30)(2,"div",31),t.DNE(3,Do,1,1,"img",32)(4,jo,1,1,"img",33)(5,Go,1,1,"img",34)(6,Eo,1,1,"img",35),t.k0s(),t.j41(7,"div",36)(8,"div",37),t.nrm(9,"fa-icon",38),t.j41(10,"span"),t.EFF(11),t.k0s()(),t.DNE(12,So,3,4,"div",39)(13,$o,1,1,"div",40),t.k0s(),t.DNE(14,Io,4,2,"div",41),t.k0s(),t.j41(15,"div",42),t.DNE(16,Bo,5,3,"div",43),t.k0s()()),2&e){const n=a.$implicit,i=t.XpG(3);t.Y8G("ngClass",i.getPrizeRankClass(n.prize.order)),t.R7$(3),t.Y8G("ngIf",1===n.prize.order),t.R7$(),t.Y8G("ngIf",2===n.prize.order),t.R7$(),t.Y8G("ngIf",3===n.prize.order),t.R7$(),t.Y8G("ngIf",n.prize.order>3),t.R7$(3),t.Y8G("icon",i.icons.faTrophy),t.R7$(2),t.JRh(n.prize.name),t.R7$(),t.Y8G("ngIf",n.prize.prize_amount),t.R7$(),t.Y8G("ngIf",n.prize.description),t.R7$(),t.Y8G("ngIf",n.prize.hackathon_track),t.R7$(2),t.Y8G("ngForOf",n.winning_teams)}}function Uo(e,a){if(1&e&&(t.j41(0,"div",27),t.DNE(1,Xo,17,11,"div",28),t.k0s()),2&e){const n=t.XpG(2);t.R7$(),t.Y8G("ngForOf",n.winnersByPrize)}}function No(e,a){if(1&e&&(t.j41(0,"div",3),t.DNE(1,To,25,0,"div",4)(2,Fo,7,1,"div",5)(3,Uo,2,1,"div",6),t.k0s()),2&e){const n=t.XpG();t.R7$(),t.Y8G("ngIf",0===n.winnersByPrize.length),t.R7$(),t.Y8G("ngIf",n.winnersByPrize.length>0),t.R7$(),t.Y8G("ngIf",n.winnersByPrize.length>0)}}let Lo=(()=>{class e{constructor(n,i,o){this.activatedRoute=n,this.hackathonService=i,this.seoService=o,this.winnersByPrize=[],this.isLoading=!0,this.icons={faTrophy:l.iHh,faLayerGroup:l.qIE,faLaptopCode:l.fPr},this.staticAssets=K.e,this.subscriptions=[]}ngOnInit(){this.subscriptions.push(this.activatedRoute.parent.data.subscribe(n=>{this.hackathon=n.hackathon,this.community=n.community,this.setSeo(),this.getWinners()}))}ngOnDestroy(){this.subscriptions.forEach(n=>n.unsubscribe())}setSeo(){this.seoService.setTags(`Winners | ${this.hackathon.name}`,`Check out the winners of ${this.hackathon.name} hackathon`,this.hackathon?.banner_image?.url||"https://commudle.com/assets/images/commudle-logo192.png")}getWinners(){this.subscriptions.push(this.hackathonService.pIndexWinners(this.hackathon.id).subscribe(n=>{this.winnersByPrize=n,this.winnersByPrize.forEach(i=>
1{const o=_.aE.find(r=>r.currency===i.prize.currency_type)||{symbol:i.prize.currency_type};i.prize.currency_symbol=o?.symbol||i.prize.currency_type}),this.isLoading=!1}))}getPrizeRankClass(n){switch(n){case 1:return"rank-first";case 2:return"rank-second";case 3:return"rank-third";default:return"rank-default"}}static{this.\u0275fac=function(i){return new(i||e)(t.rXU(C.nX),t.rXU(O.$),t.rXU(_.B2))}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["commudle-public-hackathon-winners"]],standalone:!1,decls:2,vars:2,consts:[["class","loading",4,"ngIf"],["class","winners-main",4,"ngIf"],[1,"loading"],[1,"winners-main"],["class","empty-state",4,"ngIf"],["class","winners-header",4,"ngIf"],["class","winners-list",4,"ngIf"],[1,"empty-state"],[1,"particles"],[1,"particle","particle-1"],[1,"particle","particle-2"],[1,"particle","particle-3"],[1,"particle","particle-4"],[1,"particle","particle-5"],[1,"particle","particle-6"],[1,"mystery-badge"],[1,"podium-illustration"],[1,"podium-block","podium-silver"],[1,"podium-rank"],[1,"podium-block","podium-gold"],[1,"podium-block","podium-bronze"],[1,"empty-title"],[1,"empty-desc"],[1,"winners-header"],[1,"winners-header-icon",3,"icon"],[1,"winners-title"],[1,"winners-subtitle"],[1,"winners-list"],["class","winner-card",3,"ngClass",4,"ngFor","ngForOf"],[1,"winner-card",3,"ngClass"],[1,"winner-card-header"],[1,"winner-trophy"],["alt","Winner Trophy",3,"src",4,"ngIf"],["alt","Silver Trophy",3,"src",4,"ngIf"],["alt","Bronze Trophy",3,"src",4,"ngIf"],["alt","Trophy",3,"src",4,"ngIf"],[1,"winner-prize-info"],[1,"prize-badge"],[1,"badge-icon",3,"icon"],["class","prize-amount",4,"ngIf"],["class","prize-description",3,"innerHTML",4,"ngIf"],["class","prize-track-chip",4,"ngIf"],[1,"winning-teams"],["class","team-card",4,"ngFor","ngForOf"],["alt","Winner Trophy",3,"src"],["alt","Silver Trophy",3,"src"],["alt","Bronze Trophy",3,"src"],["alt","Trophy",3,"src"],[1,"prize-amount"],[1,"prize-description",3,"innerHTML"],[1,"prize-track-chip"],[3,"icon"],[1,"team-card"],[1,"team-name"],["target","_blank","class","build-chip",3,"routerLink",4,"ngIf"],["class","team-members",4,"ngIf"],["target","_blank",1,"build-chip",3,"routerLink"],[1,"team-members"],[3,"user",4,"ngFor","ngForOf"],[3,"user"]],template:function(i,o){1&i&&t.DNE(0,Ro,2,0,"div",0)(1,No,4,3,"div",1),2&i&&(t.Y8G("ngIf",o.isLoading),t.R7$(),t.Y8G("ngIf",!o.isLoading))},dependencies:[m.YU,m.Sq,m.bT,f.Wk,k.aY,R.N,N.J,D.G,m.QX],styles:[".loading[_ngcontent-%COMP%]{display:flex;min-height:50vh;width:100%;align-items:center;justify-content:center}.empty-state[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;padding:4rem 1.5rem;text-align:center}.empty-state[_ngcontent-%COMP%] .particles[_ngcontent-%COMP%]{pointer-events:none;position:absolute;inset:0}.empty-state[_ngcontent-%COMP%] .particles[_ngcontent-%COMP%] .particle[_ngcontent-%COMP%]{position:absolute;border-radius:9999px}.empty-state[_ngcontent-%COMP%] .particles[_ngcontent-%COMP%] .particle.particle-1[_ngcontent-%COMP%]{height:1rem;width:1rem;--tw-bg-opacity: 1;background-color:rgb(147 197 253 / var(--tw-bg-opacity, 1));top:15%;left:12%;animation:_ngcontent-%COMP%_particleFloat 6s ease-in-out infinite}.empty-state[_ngcontent-%COMP%] .particles[_ngcontent-%COMP%] .particle.particle-2[_ngcontent-%COMP%]{height:.625rem;width:.625rem;--tw-bg-opacity: 1;background-color:rgb(191 219 254 / var(--tw-bg-opacity, 1));top:8%;left:45%;animation:_ngcontent-%COMP%_particleFloat 8s ease-in-out infinite 1s}.empty-state[_ngcontent-%COMP%] .particles[_ngcontent-%COMP%] .particle.particle-3[_ngcontent-%COMP%]{height:.875rem;width:.875rem;--tw-bg-opacity: 1;background-color:rgb(250 204 21 / var(--tw-bg-opacity, 1));top:12%;right:18%;animation:_ngcontent-%COMP%_particleFloat 7s ease-in-out infinite .5s}.empty-state[_ngcontent-%COMP%] .particles[_ngcontent-%COMP%] .particle.particle-4[_ngcontent-%COMP%]{height:.625rem;width:.625rem;--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1));top:35%;left:22%;animation:_ngcontent-%COMP%_particleFloat 9s ease-in-out infinite 2s}.empty-state[_ngcontent-%COMP%] .particles[_ngcontent-%COMP%] .particle.particle-5[_ngcontent-%COMP%]{height:.75rem;width:.75rem;--tw-bg-opacity: 1;background-color:rgb(254 202 202 / var(--tw-bg-opacity, 1));top:30%;right:30%;animation:_ngcontent-%COMP%_particleFloat 7s ease-in-out infinite 1.5s}.empty-state[_ngcontent-%COMP%] .particles[_ngcontent-%COMP%] .particle.particle-6[_ngcontent-%COMP%]{height:.625rem;width:.625rem;--tw-bg-opacity: 1;background-color:rgb(253 224 71 / var(--tw-bg-opacity, 1));top:20%;right:40%;animation:_ngcontent-%COMP%_particleFloat 10s ease-in-out infinite 3s}.empty-state[_ngcontent-%COMP%] .mystery-badge[_ngcontent-%COMP%]{margin-bottom:1rem;display:flex;height:3.5rem;width:3.5rem;align-items:center;justify-content:center;border-radius:9999px;border:3px dashed #d1d5db;animation:_ngcontent-%COMP%_badgePulse 3s ease-in-out infinite}.empty-state[_ngcontent-%COMP%] .mystery-badge[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:1.5rem;line-height:2rem;font-weight:700;--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.empty-state[_ngcontent-%COMP%] .podium-illustration[_ngcontent-%COMP%]{margin-bottom:2rem;display:flex;align-items:flex-end;justify-content:center;gap:.5rem}.empty-state[_ngcontent-%COMP%] .podium-illustration[_ngcontent-%COMP%] .podium-block[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:.75rem}.empty-state[_ngcontent-%COMP%] .podium-illustration[_ngcontent-%COMP%] .podium-block[_ngcontent-%COMP%] .podium-rank[_ngcontent-%COMP%]{font-weight:700}.empty-state[_ngcontent-%COMP%] .podium-illustration[_ngcontent-%COMP%] .podium-block.podium-gold[_ngcontent-%COMP%]{height:7rem;width:5rem;background:linear-gradient(180deg,#fef3c7,#fde68a);border:1px solid #fcd34d}.empty-state[_ngcontent-%COMP%] .podium-illustration[_ngcontent-%COMP%] .podium-block.podium-gold[_ngcontent-%COMP%] .podium-rank[_ngcontent-%COMP%]{font-size:1.5rem;line-height:2rem;color:#b45309}.empty-state[_ngcontent-%COMP%] .podium-illustration[_ngcontent-%COMP%] .podium-block.podium-silver[_ngcontent-%COMP%]{height:5rem;width:4rem;background:linear-gradient(180deg,#f3f4f6,#e5e7eb);border:1px solid #d1d5db}.empty-state[_ngcontent-%COMP%] .podium-illustration[_ngcontent-%COMP%] .podium-block.podium-silver[_ngcontent-%COMP%] .podium-rank[_ngcontent-%COMP%]{font-size:1.25rem;line-height:1.75rem;color:var(--color-gray-500)}.empty-state[_ngcontent-%COMP%] .podium-illustration[_ngcontent-%COMP%] .podium-block.podium-bronze[_ngcontent-%COMP%]{height:4rem;width:4rem;background:linear-gradient(180deg,#fff7ed,#fed7aa);border:1px solid #fdba74}.empty-state[_ngcontent-%COMP%] .podium-illustration[_ngcontent-%COMP%] .podium-block.podium-bronze[_ngcontent-%COMP%] .podium-rank[_ngcontent-%COMP%]{font-size:1.125rem;line-height:1.75rem;color:#92400e}.empty-state[_ngcontent-%COMP%] .empty-title[_ngcontent-%COMP%]{margin:0;margin-bottom:.5rem;font-size:1.25rem;line-height:1.75rem;font-weight:700;color:var(--color-yankees-blue)}.empty-state[_ngcontent-%COMP%] .empty-desc[_ngcontent-%COMP%]{margin:0;margin-bottom:1rem;max-width:28rem;font-size:.875rem;line-height:1.25rem;line-height:1.625;--tw-text-opacity: 1;color:rgb(143 155 179 / var(--tw-text-opacity, 1))}.empty-state[_ngcontent-%COMP%] .empty-prizes[_ngcontent-%COMP%]{margin:0;font-size:.75rem;line-height:1rem;font-weight:500;--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}@keyframes _ngcontent-%COMP%_particleFloat{0%,to{transform:translateY(0) translate(0);opacity:.7}25%{transform:translateY(-8px) translate(4px);opacity:1}50%{transform:translateY(-4px) translate(-3px);opacity:.5}75%{transform:translateY(-10px) translate(2px);opacity:.9}}@keyframes _ngcontent-%COMP%_badgePulse{0%,to{transform:scale(1);border-color:#d1d5db}50%{transform:scale(1.05);border-color:#9ca3af}}@media (prefers-reduced-motion: reduce){.particles[_ngcontent-%COMP%] .particle[_ngcontent-%COMP%], .mystery-badge[_ngcontent-%COMP%]{animation:none!important}}.winners-main[_ngcontent-%COMP%]{margin-top:1rem;border-radius:.75rem;border-width:1px;border-style:solid;border-color:var(--color-bright-gray);background-color:var(--color-white);padding:1.25rem}.winners-main[_ngcontent-%COMP%] .winners-header[_ngcontent-%COMP%]{margin-bottom:1.25rem;display:flex;align-items:flex-start;gap:.5rem;border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--color-bright-gray);padding-bottom:1rem}.winners-main[_ngcontent-%COMP%] .winners-header[_ngcontent-%COMP%] .winners-header-icon[_ngcontent-%COMP%]{font-size:1rem;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(51 102 255 / var(--tw-text-opacity, 1))}.winners-main[_ngcontent-%COMP%] .winners-header[_ngcontent-%COMP%] .winners-title[_ngcontent-%COMP%]{margin:0;font-size:1rem;line-height:1.5rem;font-weight:600;color:var(--color-yankees-blue)}.winners-main[_ngcontent-%COMP%] .winners-header[_ngcontent-%COMP%] .winners-subtitle[_ngcontent-%COMP%]{margin:0;margin-top:.25rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(143 155 179 / var(--tw-text-opacity, 1))}.winners-main[_ngcontent-%COMP%] .winners-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.winners-main[_ngcontent-%COMP%] .winners-list[_ngcontent-%COMP%] .winner-card[_ngcontent-%COMP%]{overflow:hidden;border-radius:.75rem;border-width:1px;border-style:solid;border-color:var(--color-bright-gray);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.winners-main[_ngcontent-%COMP%] .winners-list[_ngcontent-%COMP%] .winner-card[_ngcontent-%COMP%]:hover{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
1--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);transform:scale(1.01)}.winners-main[_ngcontent-%COMP%] .winners-list[_ngcontent-%COMP%] .winner-card.rank-first[_ngcontent-%COMP%]{background:linear-gradient(135deg,#faf5ff,#fff 60%);border-color:#e9d5ff}.winners-main[_ngcontent-%COMP%] .winners-list[_ngcontent-%COMP%] .winner-card.rank-first[_ngcontent-%COMP%]:is(.com-dark *){--tw-border-opacity: 1;border-color:rgb(107 33 168 / var(--tw-border-opacity, 1));background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #1e1033 var(--tw-gradient-from-position);--tw-gradient-to: rgb(30 16 51 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #0f172a var(--tw-gradient-to-position)}.winners-main[_ngcontent-%COMP%] .winners-list[_ngcontent-%COMP%] .winner-card.rank-first[_ngcontent-%COMP%] .prize-badge[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(168 85 247 / var(--tw-text-opacity, 1));background-color:#6366f114}.winners-main[_ngcontent-%COMP%] .winners-list[_ngcontent-%COMP%] .winner-card.rank-first[_ngcontent-%COMP%] .prize-amount[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(168 85 247 / var(--tw-text-opacity, 1))}.winners-main[_ngcontent-%COMP%] .winners-list[_ngcontent-%COMP%] .winner-card.rank-second[_ngcontent-%COMP%]{background:linear-gradient(135deg,#eff6ff,#fff 60%);border-color:#bfdbfe}.winners-main[_ngcontent-%COMP%] .winners-list[_ngcontent-%COMP%] .winner-card.rank-second[_ngcontent-%COMP%]:is(.com-dark *){--tw-border-opacity: 1;border-color:rgb(30 64 175 / var(--tw-border-opacity, 1));background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #0c1a33 var(--tw-gradient-from-position);--tw-gradient-to: rgb(12 26 51 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #0f172a var(--tw-gradient-to-position)}.winners-main[_ngcontent-%COMP%] .winners-list[_ngcontent-%COMP%] .winner-card.rank-second[_ngcontent-%COMP%] .prize-badge[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1));background-color:#6366f114}.winners-main[_ngcontent-%COMP%] .winners-list[_ngcontent-%COMP%] .winner-card.rank-second[_ngcontent-%COMP%] .prize-amount[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.winners-main[_ngcontent-%COMP%] .winners-list[_ngcontent-%COMP%] .winner-card.rank-third[_ngcontent-%COMP%]{background:linear-gradient(135deg,#fff7ed,#fff 60%);border-color:#fed7aa}.winners-main[_ngcontent-%COMP%] .winners-list[_ngcontent-%COMP%] .winner-card.rank-third[_ngcontent-%COMP%]:is(.com-dark *){--tw-border-opacity: 1;border-color:rgb(154 52 18 / var(--tw-border-opacity, 1));background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #1f1408 var(--tw-gradient-from-position);--tw-gradient-to: rgb(31 20 8 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #0f172a var(--tw-gradient-to-position)}.winners-main[_ngcontent-%COMP%] .winners-list[_ngcontent-%COMP%] .winner-card.rank-third[_ngcontent-%COMP%] .prize-badge[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(249 115 22 / var(--tw-text-opacity, 1));background-color:#6366f114}.winners-main[_ngcontent-%COMP%] .winners-list[_ngcontent-%COMP%] .winner-card.rank-third[_ngcontent-%COMP%] .prize-amount[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(249 115 22 / var(--tw-text-opacity, 1))}.winners-main[_ngcontent-%COMP%] .winners-list[_ngcontent-%COMP%] .winner-card.rank-default[_ngcontent-%COMP%]{background:linear-gradient(135deg,#f8fafc,#fff 60%);border-color:#d1d5db}.winners-main[_ngcontent-%COMP%] .winners-list[_ngcontent-%COMP%] .winner-card.rank-default[_ngcontent-%COMP%]:is(.com-dark *){border-color:var(--color-gray-700);background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #0f172a var(--tw-gradient-from-position);--tw-gradient-to: rgb(15 23 42 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #0f172a var(--tw-gradient-to-position)}.winners-main[_ngcontent-%COMP%] .winners-list[_ngcontent-%COMP%] .winner-card.rank-default[_ngcontent-%COMP%] .prize-badge[_ngcontent-%COMP%]{color:var(--color-gray-500);background-color:#6b72801a}.winners-main[_ngcontent-%COMP%] .winners-list[_ngcontent-%COMP%] .winner-card.rank-default[_ngcontent-%COMP%] .prize-amount[_ng
1content-%COMP%]{color:var(--color-gray-500)}.winners-main[_ngcontent-%COMP%] .winners-list[_ngcontent-%COMP%] .winner-card[_ngcontent-%COMP%] .winner-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.75rem}.winners-main[_ngcontent-%COMP%] .winners-list[_ngcontent-%COMP%] .winner-card[_ngcontent-%COMP%] .winner-card-header[_ngcontent-%COMP%] .winner-trophy[_ngcontent-%COMP%]{display:flex;width:7rem;flex-shrink:0;align-items:center;justify-content:center;overflow:hidden;border-radius:.75rem;aspect-ratio:1/1}.winners-main[_ngcontent-%COMP%] .winners-list[_ngcontent-%COMP%] .winner-card[_ngcontent-%COMP%] .winner-card-header[_ngcontent-%COMP%] .winner-trophy[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:100%;width:100%;object-fit:cover}.winners-main[_ngcontent-%COMP%] .winners-list[_ngcontent-%COMP%] .winner-card[_ngcontent-%COMP%] .winner-card-header[_ngcontent-%COMP%] .winner-trophy[_ngcontent-%COMP%] .default-trophy-icon[_ngcontent-%COMP%]{font-size:3rem;line-height:1;--tw-text-opacity: 1;color:rgb(92 133 255 / var(--tw-text-opacity, 1))}.winners-main[_ngcontent-%COMP%] .winners-list[_ngcontent-%COMP%] .winner-card[_ngcontent-%COMP%] .winner-card-header[_ngcontent-%COMP%] .winner-prize-info[_ngcontent-%COMP%]{display:flex;flex:1 1 0%;flex-direction:column;gap:.25rem}.winners-main[_ngcontent-%COMP%] .winners-list[_ngcontent-%COMP%] .winner-card[_ngcontent-%COMP%] .winner-card-header[_ngcontent-%COMP%] .winner-prize-info[_ngcontent-%COMP%] .prize-badge[_ngcontent-%COMP%]{display:inline-flex;width:fit-content;align-items:center;gap:.25rem;border-radius:9999px;padding:.25rem .75rem;font-size:.75rem;line-height:1rem;font-weight:400}.winners-main[_ngcontent-%COMP%] .winners-list[_ngcontent-%COMP%] .winner-card[_ngcontent-%COMP%] .winner-card-header[_ngcontent-%COMP%] .winner-prize-info[_ngcontent-%COMP%] .prize-badge[_ngcontent-%COMP%] .badge-icon[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem}.winners-main[_ngcontent-%COMP%] .winners-list[_ngcontent-%COMP%] .winner-card[_ngcontent-%COMP%] .winner-card-header[_ngcontent-%COMP%] .winner-prize-info[_ngcontent-%COMP%] .prize-amount[_ngcontent-%COMP%]{margin-top:.5rem;font-size:1.5rem;line-height:2rem;font-weight:600}.winners-main[_ngcontent-%COMP%] .winners-list[_ngcontent-%COMP%] .winner-card[_ngcontent-%COMP%] .winner-card-header[_ngcontent-%COMP%] .winner-prize-info[_ngcontent-%COMP%] .prize-description[_ngcontent-%COMP%]{margin-top:.25rem;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(143 155 179 / var(--tw-text-opacity, 1))}.winners-main[_ngcontent-%COMP%] .winners-list[_ngcontent-%COMP%] .winner-card[_ngcontent-%COMP%] .winner-card-header[_ngcontent-%COMP%] .winner-prize-info[_ngcontent-%COMP%] .prize-description[_ngcontent-%COMP%] p{margin:0;font-size:.75rem;line-height:1rem}.winners-main[_ngcontent-%COMP%] .winners-list[_ngcontent-%COMP%] .winner-card[_ngcontent-%COMP%] .winner-card-header[_ngcontent-%COMP%] .prize-track-chip[_ngcontent-%COMP%]{display:flex;flex-shrink:0;align-items:center;gap:.25rem;border-radius:9999px;background-color:var(--color-gray-100);padding:.25rem .5rem;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(143 155 179 / var(--tw-text-opacity, 1))}.winners-main[_ngcontent-%COMP%] .winners-list[_ngcontent-%COMP%] .winner-card[_ngcontent-%COMP%] .winning-teams[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem;padding-left:.75rem;padding-right:.75rem;padding-bottom:.75rem}.winners-main[_ngcontent-%COMP%] .winners-list[_ngcontent-%COMP%] .winner-card[_ngcontent-%COMP%] .winning-teams[_ngcontent-%COMP%] .team-card[_ngcontent-%COMP%]{border-radius:.5rem;border-width:1px;border-style:solid;border-color:var(--color-bright-gray);padding:.75rem}.winners-main[_ngcontent-%COMP%] .winners-list[_ngcontent-%COMP%] .winner-card[_ngcontent-%COMP%] .winning-teams[_ngcontent-%COMP%] .team-card[_ngcontent-%COMP%] .team-name[_ng
1content-%COMP%]{margin-bottom:.75rem;display:flex;align-items:center;gap:.75rem;font-size:.875rem;line-height:1.25rem;font-weight:500;color:var(--color-yankees-blue)}.winners-main[_ngcontent-%COMP%] .winners-list[_ngcontent-%COMP%] .winner-card[_ngcontent-%COMP%] .winning-teams[_ngcontent-%COMP%] .team-card[_ngcontent-%COMP%] .team-name[_ngcontent-%COMP%] .build-chip[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem;border-radius:9999px;background-color:var(--color-blue-50);padding:.25rem .5rem;font-size:.75rem;line-height:1rem;font-weight:400;--tw-text-opacity: 1;color:rgb(51 102 255 / var(--tw-text-opacity, 1));text-decoration-line:none}.winners-main[_ngcontent-%COMP%] .winners-list[_ngcontent-%COMP%] .winner-card[_ngcontent-%COMP%] .winning-teams[_ngcontent-%COMP%] .team-card[_ngcontent-%COMP%] .team-name[_ngcontent-%COMP%] .build-chip[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem}.winners-main[_ngcontent-%COMP%] .winners-list[_ngcontent-%COMP%] .winner-card[_ngcontent-%COMP%] .winning-teams[_ngcontent-%COMP%] .team-card[_ngcontent-%COMP%] .team-members[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:1rem}"]})}}return e})();var Vo=s(85199),Ct=s(91323);const Ao=e=>["/builds",e];function Jo(e,a){if(1&e&&(t.j41(0,"div",16)(1,"span",17),t.EFF(2,"\u{1f3c6}"),t.k0s()()),2&e){const n=a.$implicit;t.R7$(),t.Y8G("nbTooltip",n.hackathon_prize.name)}}function Wo(e,a){if(1&e&&(t.j41(0,"div",14),t.DNE(1,Jo,3,1,"div",15),t.k0s()),2&e){const n=t.XpG();t.R7$(),t.Y8G("ngForOf",n.communityBuild.hackathon_team.hackathon_winners)}}function Qo(e,a){if(1&e&&(t.j41(0,"div",18),t.nrm(1,"app-user-profile-card-medium",19),t.k0s()),2&e){const n=t.XpG();t.R7$(),t.Y8G("user",n.communityBuild.user)}}function qo(e,a){if(1&e&&(t.j41(0,"div",18),t.nrm(1,"app-user-profile-card-small",19),t.k0s()),2&e){const n=t.XpG();t.R7$(),t.Y8G("user",n.communityBuild.user)}}let Ko=(()=>{class e{constructor(){this.showHackathonPrizes=!1,this.staticAssets=K.e,this.moment=I,this.CBuildTypeDisplay=u.ie}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["commudle-build-card"]],inputs:{communityBuild:"communityBuild",showHackathonPrizes:"showHackathonPrizes"},standalone:!1,decls:18,vars:20,consts:[[1,"community-build-card"],["target","_blank",3,"routerLink"],[1,"details"],[1,"community-build-card-image"],[3,"headerImagePath","name","topRightCurve","topLeftCurve","bottomRightCurve","bottomLeftCurve","aspectRatio"],[1,"community-build-card-details"],[1,"community-build-card-title-time"],["class","hackathon-prizes",4,"ngIf"],[1,"title"],[1,"time"],[1,"description"],["class","app-user-profile-card",4,"appBreakpoints"],[1,"votes"],["size","mini",3,"icon","votableId","votableType","votesDirectionVertical"],[1,"hackathon-prizes"],["class","hackathon-prize",4,"ngFor","ngForOf"],[1,"hackathon-prize"],[3,"nbTooltip"],[1,"app-user-profile-card"],[3,"user"]],template:function(i,o){1&i&&(t.j41(0,"div",0)(1,"a",1)(2,"div",2)(3,"div",3),t.nrm(4,"commudle-banner-image",4),t.k0s(),t.j41(5,"div",5)(6,"div",6),t.DNE(7,Wo,2,1,"div",7),t.j41(8,"h5",8),t.EFF(9),t.k0s(),t.j41(10,"p",9),t.EFF(11),t.k0s()(),t.j41(12,"p",10),t.EFF(13),t.k0s(),t.DNE(14,Qo,2,1,"div",11)(15,qo,2,1,"div",11),t.k0s()()(),t.j41(16,"div",12),t.nrm(17,"app-votes-display",13),t.k0s()()),2&i&&(t.R7$(),t.Y8G("routerLink",t.eq3(18,Ao,o.communityBuild.slug)),t.R7$(3),t.Y8G("headerImagePath",o.communityBuild.thumbnail_image?o.communityBuild.thumbnail_image.i320:null!=o.communityBuild.images&&o.communityBuild.images[0]?o.communityBuild.images[0].url:o.staticAssets.community_build_empty_state)("name",o.communityBuild.name)("topRightCurve",!1)("topLeftCurve",!1)("bottomRightCurve",!1)("bottomLeftCurve",!1)("aspectRatio","3/2"),t.R7$(3),t.Y8G("ngIf",o.showHackathonPrizes),t.R7$(2),t.JRh(o.communityBuild.name),t.R7$(2),t.JRh(o.moment(o.communityBuild.created_at).format("MMM Do, YYYY")),t.R7$(2),t.JRh(o.communityBuild.description),t.R7$(),t.Y8G("appBreakpoints",">lg"),t.R7$(),t.Y8G("appBreakpoints","<=lg"),t.R7$(2),t.Y8G("icon","star")("votableId",o.communityBuild.id)("votableType","CommunityBuild")("votesDirectionVertical",!0))},dependencies:[m.Sq,m.bT,f.Wk,X.S,N.J,Ct.L,g.BmQ,ut.J,rt.p],styles:["p[_ngcontent-%COMP%]{margin:0}.community-build-card[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;overflow:hidden;text-decoration-line:none}.community-build-card[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration-line:none}.community-build-card[_ngcontent-%COMP%] a[_ngcontent-%COMP%] .details[_ngcontent-%COMP%]{display:flex}.community-build-card[_ngcontent-%COMP%] a[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .community-build-card-image[_ngcontent-%COMP%]{display:flex;height:68px;width:102px;align-items:center;justify-content:center;overflow:hidden}@media (min-width: 768px){.community-build-card[_ngcontent-%COMP%] a[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .community-build-card-image[_ngcontent-%COMP%]{height:90px;width:135px}}.community-build-card[_ngcontent-%COMP%] a[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .community-build-card-detail
1s[_ngcontent-%COMP%]{width:100%;padding-left:.5rem;padding-top:0}@media (min-width: 768px){.community-build-card[_ngcontent-%COMP%] a[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .community-build-card-details[_ngcontent-%COMP%]{padding-left:1rem;padding-right:74px}}.community-build-card[_ngcontent-%COMP%] a[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .community-build-card-details[_ngcontent-%COMP%] .community-build-card-title-time[_ngcontent-%COMP%]{margin-bottom:.25rem;display:block;flex-direction:column;align-items:center}@media (min-width: 768px){.community-build-card[_ngcontent-%COMP%] a[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .community-build-card-details[_ngcontent-%COMP%] .community-build-card-title-time[_ngcontent-%COMP%]{margin-bottom:.5rem;display:flex;flex-direction:row}}.community-build-card[_ngcontent-%COMP%] a[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .community-build-card-details[_ngcontent-%COMP%] .community-build-card-title-time[_ngcontent-%COMP%] .hackathon-prizes[_ngcontent-%COMP%]{margin-right:.5rem;display:flex;align-items:center;gap:.25rem}.community-build-card[_ngcontent-%COMP%] a[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .community-build-card-details[_ngcontent-%COMP%] .community-build-card-title-time[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{margin:0;margin-right:1rem;margin-bottom:.25rem;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;font-size:.875rem;line-height:1.25rem;font-weight:600;color:var(--color-dark-jungle-green)}@media (min-width: 768px){.community-build-card[_ngcontent-%COMP%] a[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .community-build-card-details[_ngcontent-%COMP%] .community-build-card-title-time[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{margin-bottom:0;font-size:1rem;line-height:1.5rem}}.community-build-card[_ngcontent-%COMP%] a[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .community-build-card-details[_ngcontent-%COMP%] .community-build-card-title-time[_ngcontent-%COMP%] .time[_ngcontent-%COMP%]{margin:0;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;font-size:10px;font-weight:400;color:var(--color-auro-metal-saurus)}@media (min-width: 768px){.community-build-card[_ngcontent-%COMP%] a[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .community-build-card-details[_ngcontent-%COMP%] .community-build-card-title-time[_ngcontent-%COMP%] .time[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem;font-weight:500}}.community-build-card[_ngcontent-%COMP%] a[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .community-build-card-details[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{margin:0;margin-bottom:.5rem;display:none;font-size:.75rem;line-height:1rem;font-weight:400;color:var(--color-auro-metal-saurus)}@media (min-width: 768px){.community-build-card[_ngcontent-%COMP%] a[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .community-build-card-details[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{display:flex;font-size:.875rem;line-height:1.25rem}}.community-build-card[_ngcontent-%COMP%] a[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .community-build-card-details[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.votes[_ngcontent-%COMP%]{margin-left:.5rem;border-radius:0;border-width:0px;border-left-width:1px;border-style:solid;border-color:var(--color-bright-gray);padding-left:18px;padding-right:18px;padding-top:.75rem;padding-bottom:.75rem}@media (min-width: 768px){.votes[_ngcontent-%COMP%]{margin-left:68px;border-radius:.5rem;border-width:1px}}"]})}}return e})();function Zo(e,a){1&e&&t.nrm(0,"commudle-loading-spinner")}function ti(e,a){1&e&&(t.j41(0,"div"),t.EFF(1,"No Project to show"),t.k0s())}function ni(e,a){if(1&e&&(t.j41(0,"com-card",5)(1,"com-card-body"),t.nrm(2,"commudle-build-card",6),t.k0s()()),2&e){const n=a.$implicit;t.R7$(2),t.Y8G("communityBuild",n)("showHackathonPrizes",!0)}}function ei(e,a){if(1&e){const n=t.RV6();t.j41(0,"div",7)(1,"app-pagination",8),t.bIt("goTo",function(o){t.eBV(n);const r=t.XpG(2);return r.page=o,t.Njj(r.fetchHackathonProjects())})("next",function(o){t.eBV(n);const r=t.XpG(2);return r.page=o,t.Njj(r.fetchHackathonProjects())})("previous",function(o){t.eBV(n);const r=t.XpG(2);return r.page=o,t.Njj(r.fetchHackathonProjects())}),t.k0s()()}if(2&e){const n=t.XpG(2);t.R7$(),t.Y8G("count",n.count)("current",n.page)("total",n.total)}}function oi(e,a){if(1&e&&t.DNE(0,ti,2,0,"div",2)(1,ni,3,2,"com-card",3)(2,ei,2,3,"div",4),2&e){const n=t.XpG();t.Y8G("ngIf",0===n.communityBuilds.length),t.R7$(),t.Y8G("ngForOf",n.communityBuilds),t.R7$(),t.Y8G("ngIf",n.total>0)}}let ii=(()=>{class e{constructor(n,i,o){this.hackathonService=n,this.activatedRoute=i,this.seoService=o,this.subscriptions=[],this.isLoading=!0,this.total=0,this.count=10,this.page=1}ngOnInit(){this.subscriptions.push(this.activatedRoute.parent.data.subscribe(n=>{this.hackathon=n.hackathon,this.setSeo(),this.fetchHackathonProjects()}))}setSeo(){this.seoService.setTags(`Projects | ${this.hackathon.name}`,`Browse projects submitted for ${this.hackathon.name} hackathon`,this.hackathon?.banner_image?.url||"https://commudle.com/assets/images/commudle-logo192.png")}ngOnDestroy(){this.subscriptions.forEach(n=>n.unsubscribe())}fetchHackathonProjects(){this.isLoading=!0,this.subscriptions.push(this.hackathonService.pIndexProjects(this.hackathon.id,this.page,this.count).subscribe(n=>{this.communityBuilds=n.values,this.total=n.total,this.page=n.page,this.isLoading=!1}))}static{this.\u0275fac=function(i){return new(i||e)(t.rXU(O.$),t.rXU(C.nX),t.rXU(_.B2))}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["commudle-public-hackathon-projects"]],standalone:!1,decls:5,vars:2,consts:[["projectCards",""],[4,"ngIf","ngIfElse"],[4,"ngIf"],["class","project-card",4,"ngFor","ngForOf"],["class","pagination",4,"ngIf"],[1,"project-card"],[3,"communityBuild","showHackathonPrizes"],[1,"pagination"],[3,"goTo","next","previous","count","current","total"]],template:function(i,o){if(1&i&&(t.j41(0,"com-card")(1,"com-card-body"),t.DNE(2,Zo,1,0,"commudle-loading-spinner",1)(3,oi,3,3,"ng-template",null,0,t.C5r),t.k0s()()),2&i){const r=t.sdS(4);t.R7$(2),t.Y8G("ngIf",o.isLoading)("ngIfElse",r)}},dependencies:[m.Sq,m.bT,Vo.e,Ko,R.N,v.v,w.H],styles:["com-card[_ngcontent-%COMP%]{margin-left:0;margin-right:0}com-card[_ngcontent-%COMP%] .project-card[_ngcontent-%COMP%]:hover{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
1--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}com-card-body[_ngcontent-%COMP%]{padding:.5rem 1rem}"]})}}return e})();var ai=s(64977);function ri(e,a){if(1&e&&(t.j41(0,"nb-card")(1,"nb-card-body"),t.nrm(2,"commudle-channel-forum-dashboard",1),t.k0s()()),2&e){const n=t.XpG();t.R7$(2),t.Y8G("parent",n.hackathon)("parentType",n.EDbModels.HACKATHON)("showForum",!1)}}let L=(()=>{class e{constructor(n){this.activatedRoute=n,this.subscriptions=[],this.EDbModels=u.ag}ngOnInit(){this.subscriptions.push(this.activatedRoute.parent.data.subscribe(n=>{this.hackathon=n.hackathon}))}ngOnDestroy(){this.subscriptions.forEach(n=>n.unsubscribe())}static{this.\u0275fac=function(i){return new(i||e)(t.rXU(C.nX))}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["commudle-public-hackathon-channels"]],standalone:!1,decls:1,vars:1,consts:[[4,"ngIf"],[3,"parent","parentType","showForum"]],template:function(i,o){1&i&&t.DNE(0,ri,3,3,"nb-card",0),2&i&&t.Y8G("ngIf",o.hackathon)},dependencies:[m.bT,g.SrT,g.KH5,ai.M],styles:["nb-card[_ngcontent-%COMP%]{margin-left:0;margin-right:0}nb-card[_ngcontent-%COMP%] nb-card-body[_ngcontent-%COMP%]{padding:0}"]})}}return e})();function ci(e,a){1&e&&(t.j41(0,"div"),t.nrm(1,"commudle-loading-spinner"),t.k0s())}function si(e,a){1&e&&(t.j41(0,"div",7),t.nrm(1,"nb-icon",8),t.j41(2,"h3"),t.EFF(3,"No Tracks Available"),t.k0s(),t.j41(4,"p"),t.EFF(5,"Tracks and problem statements will be published soon."),t.k0s()())}function li(e,a){if(1&e&&(t.j41(0,"div",11)(1,"span",12),t.EFF(2),t.k0s(),t.j41(3,"span",13),t.EFF(4),t.k0s()()),2&e){const n=t.XpG(2);t.R7$(2),t.JRh(n.totalProblemStatements),t.R7$(2),t.SpI("Problem Statement",n.totalProblemStatements>1?"s":"","")}}function mi(e,a){if(1&e&&(t.j41(0,"div",11)(1,"span",12),t.EFF(2),t.nI1(3,"number"),t.k0s(),t.j41(4,"span",13),t.EFF(5,"Prizes"),t.k0s()()),2&e){const n=t.XpG(2);t.R7$(2),t.Lme("",n.totalPrizesByCurrency[0].currency.symbol,"",t.bMT(3,2,n.totalPrizesByCurrency[0].amount),"")}}function di(e,a){if(1&e&&(t.j41(0,"span",24),t.EFF(1),t.k0s()),2&e){const n=t.XpG().$implicit,i=t.XpG(2);t.R7$(),t.Lme(" ",n.hackathon_problem_statements.length," Problem Statement",i.totalProblemStatements>1?"s":""," ")}}function gi(e,a){if(1&e&&t.nrm(0,"div",25),2&e){const n=t.XpG().$implicit;t.Y8G("innerHTML",n.description,t.npT)}}function _i(e,a){if(1&e&&(t.j41(0,"div",26)(1,"div",27),t.EFF(2,"Problem Statement"),t.k0s(),t.nrm(3,"div",28),t.k0s()),2&e){const n=t.XpG().$implicit;t.R7$(3),t.Y8G("innerHTML",n.problem_statement,t.npT)}}function pi(e,a){if(1&e&&(t.j41(0,"div",31)(1,"span",32),t.EFF(2),t.k0s(),t.nrm(3,"span",33),t.k0s()),2&e){const n=a.$implicit;t.R7$(2),t.JRh(n.display_id),t.R7$(),t.Y8G("innerHTML",n.title,t.npT)}}function ui(e,a){if(1&e&&(t.j41(0,"div",26)(1,"div",27),t.EFF(2,"Problem Statements"),t.k0s(),t.j41(3,"div",29),t.DNE(4,pi,4,2,"div",30),t.k0s()()),2&e){const n=t.XpG().$implicit;t.R7$(4),t.Y8G("ngForOf",n.hackathon_problem_statements)}}function hi(e,a){if(1&e&&(t.j41(0,"span",41),t.EFF(1),t.nI1(2,"number"),t.k0s()),2&e){const n=t.XpG().$implicit;t.R7$(),t.Lme(" ",n.currency_symbol," ",t.bMT(2,2,n.prize_amount)," ")}}function bi(e,a){if(1&e&&t.nrm(0,"div",42),2&e){const n=t.XpG().$implicit;t.Y8G("innerHTML",n.description,t.npT)}}
1function Ci(e,a){if(1&e&&(t.j41(0,"div",36)(1,"div",37)(2,"span",38),t.EFF(3),t.k0s(),t.DNE(4,hi,3,4,"span",39),t.k0s(),t.DNE(5,bi,1,1,"div",40),t.k0s()),2&e){const n=a.$implicit;t.R7$(3),t.JRh(n.name),t.R7$(),t.Y8G("ngIf",n.prize_amount),t.R7$(),t.Y8G("ngIf",n.description)}}function fi(e,a){if(1&e&&(t.j41(0,"div",26)(1,"div",27),t.EFF(2,"Prizes"),t.k0s(),t.j41(3,"div",34),t.DNE(4,Ci,6,3,"div",35),t.k0s()()),2&e){const n=t.XpG().$implicit;t.R7$(4),t.Y8G("ngForOf",n.hackathon_prizes)}}function Pi(e,a){if(1&e&&(t.j41(0,"details",16)(1,"summary",17)(2,"span",18),t.EFF(3),t.k0s(),t.j41(4,"span",19),t.EFF(5),t.k0s(),t.DNE(6,di,2,2,"span",20),t.k0s(),t.j41(7,"div",21),t.DNE(8,gi,1,1,"div",22)(9,_i,4,1,"div",23)(10,ui,5,1,"div",23)(11,fi,5,1,"div",23),t.k0s()()),2&e){const n=a.$implicit,i=a.index;t.BMQ("open",0===i?"":null),t.R7$(3),t.JRh(i+1),t.R7$(2),t.JRh(n.name),t.R7$(),t.Y8G("ngIf",(null==n.hackathon_problem_statements?null:n.hackathon_problem_statements.length)>0),t.R7$(2),t.Y8G("ngIf",n.description),t.R7$(),t.Y8G("ngIf",n.problem_statement),t.R7$(),t.Y8G("ngIf",(null==n.hackathon_problem_statements?null:n.hackathon_problem_statements.length)>0),t.R7$(),t.Y8G("ngIf",(null==n.hackathon_prizes?null:n.hackathon_prizes.length)>0)}}function Mi(e,a){if(1&e&&(t.j41(0,"div",9)(1,"div",10)(2,"div",11)(3,"span",12),t.EFF(4),t.k0s(),t.j41(5,"span",13),t.EFF(6,"Tracks"),t.k0s()(),t.DNE(7,li,5,2,"div",14)(8,mi,6,4,"div",14),t.k0s(),t.DNE(9,Pi,12,8,"details",15),t.k0s()),2&e){const n=t.XpG();t.R7$(4),t.JRh(n.tracks.length),t.R7$(3),t.Y8G("ngIf",n.totalProblemStatements>0),t.R7$(),t.Y8G("ngIf",(null==n.totalPrizesByCurrency?null:n.totalPrizesByCurrency.length)>0&&0!==n.totalPrizesByCurrency[0].amount),t.R7$(),t.Y8G("ngForOf",n.tracks)}}let Oi=(()=>{class e{constructor(n,i,o,r){this.activatedRoute=n,this.hackathonService=i,this.hrgService=o,this.seoService=r,this.countryDetails=_.aE,this.subscriptions=[],this.totalProblemStatements=0,this.totalPrizes=0}ngOnInit(){this.subscriptions.push(this.activatedRoute.parent.data.subscribe(n=>{this.hackathon=n.hackathon,this.community=n.community,this.setSeo(),this.getTracks(),this.computeTotalPrizes()})),this.hrgService.pShowHackathonResponseGroup(this.hackathon.id).subscribe(n=>{n&&(this.hrgId=n.id)})}ngOnDestroy(){this.subscriptions.forEach(n=>n.unsubscribe())}computeTotalPrizes(){this.hackathon.total_prize_amount&&(this.totalPrizesByCurrency=Object.keys(this.hackathon.total_prize_amount).map(n=>({currency:this.countryDetails.find(i=>i.currency===n)||{currency:n,symbol:n},amount:this.hackathon.total_prize_amount[n]})))}setSeo(){this.seoService.setTags(`Tracks | ${this.hackathon.name}`,`Explore tracks and problem statements for ${this.hackathon.name} hackathon`,this.hackathon?.banner_image?.url||"https://commudle.com/assets/images/commudle-logo192.png")}getTracks(){this.subscriptions.push(this.hackathonService.pIndexHackathonTracks(this.hackathon.id).subscribe(n=>{if(this.tracks=n,this.tracks)for(const i of this.tracks)if(this.totalProblemStatements+=i.hackathon_problem_statements?.length||0,i.hackathon_prizes)for(const o of i.hackathon_prizes){const r=this.countryDetails.find(c=>c.currency===o.currency_type)||{symbol:o.currency_type};o.currency_symbol=r?.symbol||o.currency_type}}))}static{this.\u0275fac=function(i){return new(i||e)(t.rXU(C.nX),t.rXU(O.$),t.rXU(F.$),t.rXU(_.B2))}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["commudle-public-hackathon-tracks"]],standalone:!1,decls:7,vars:12,consts:[[1,"two-column-layout","medium","mobile-reverse"],[1,"main-column"],[4,"ngIf"],["class","empty-state",4,"ngIf"],["class","tracks-container",4,"ngIf"],[1,"right-column"],[3,"hackathon","hrgId","community","showName","showStatusBadge","showCommunityBadge","showPrizeHeader","showLocation","showApplySection"],[1,"empty-state"],["icon","layers-outline"],[1,"tracks-container"],[1,"tracks-stats"],[1,"stat-item"],[1,"stat-number"],[1,"stat-label"],["class","stat-item",4,"ngIf"],["class","track-accordion",4,"ngFor","ngForOf"],[1,"track-accordion"],[1,"track-summary"],[1,"track-number"],[1,"track-name"],["class","ps-badge",4,"ngIf"],[1,"track-content"],["class","track-description",3,"innerHTML",4,"ngIf"],["class","track-section",4,"ngIf"],[1,"ps-badge"],[1,"track-description",3,"innerHTML"],[1,"track-section"],[1,"section-label"],[1,"problem-content",3,"innerHTML"],[1,"ps-list"],["class","ps-item",4,"ngFor","ngForOf"],[1,"ps-item"],[1,"ps-id"],[1,"ps-title",3,"innerHTML"],[1,"prizes-grid"],["class","prize-item",4,"ngFor","ngForOf"],[1,"prize-item"],[1,"prize-header"],[1,"prize-name"],["class","prize-amount",4,"ngIf"],["class","prize-description",3,"innerHTML",4,"ngIf"],[1,"prize-amount"],[1,"prize-description",3,"innerHTML"]],template:function(i,o){1&i&&(t.j41(0,"div",0)(1,"div",1),t.DNE(2,ci,2,0,"div",2)(3,si,6,0,"div",3)(4,Mi,10,4,"div",4),t.k0s(),t.j41(5,"div",5),t.nrm(6,"commudle-public-hackathon-detail
1s-mini-card",6),t.k0s()()),2&i&&(t.R7$(2),t.Y8G("ngIf",!o.tracks),t.R7$(),t.Y8G("ngIf",o.tracks&&0===o.tracks.length),t.R7$(),t.Y8G("ngIf",o.tracks&&o.tracks.length>0),t.R7$(2),t.Y8G("hackathon",o.hackathon)("hrgId",o.hrgId)("community",o.community)("showName",!1)("showStatusBadge",!1)("showCommunityBadge",!1)("showPrizeHeader",!1)("showLocation",!1)("showApplySection",!1))},dependencies:[m.Sq,m.bT,g.tHu,R.N,z,m.QX],styles:['.two-column-layout[_ngcontent-%COMP%]{margin-top:1rem}@media (min-width: 768px){.main-column[_ngcontent-%COMP%]{margin-right:1.5rem}}.main-column[_ngcontent-%COMP%] .tracks-stats[_ngcontent-%COMP%]{margin-left:1rem;margin-right:1rem;margin-bottom:.25rem;display:flex;flex-wrap:wrap;gap:.75rem}@media (min-width: 768px){.main-column[_ngcontent-%COMP%] .tracks-stats[_ngcontent-%COMP%]{margin-left:0;margin-right:0}}.main-column[_ngcontent-%COMP%] .tracks-stats[_ngcontent-%COMP%] .stat-item[_ngcontent-%COMP%]{display:flex;min-width:0px;flex:1 1 0%;flex-direction:column;align-items:center;border-radius:.75rem;border-width:1px;border-style:solid;border-color:var(--color-bright-gray);background-color:var(--color-white);padding:1rem .75rem}.main-column[_ngcontent-%COMP%] .tracks-stats[_ngcontent-%COMP%] .stat-item[_ngcontent-%COMP%] .stat-number[_ngcontent-%COMP%]{font-size:1.5rem;line-height:2rem;font-weight:600;color:var(--color-yankees-blue)}.main-column[_ngcontent-%COMP%] .tracks-stats[_ngcontent-%COMP%] .stat-item[_ngcontent-%COMP%] .stat-label[_ngcontent-%COMP%]{margin-top:.25rem;text-align:center;font-size:.75rem;line-height:1rem;font-weight:500;--tw-text-opacity: 1;color:rgb(143 155 179 / var(--tw-text-opacity, 1))}.main-column[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%]{padding-top:4rem;padding-bottom:4rem;text-align:center}.main-column[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] nb-icon[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:3rem;line-height:1;color:var(--color-gray-500)}.main-column[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;margin-bottom:.5rem;font-size:1rem;line-height:1.5rem;font-weight:600;color:var(--color-yankees-blue)}.main-column[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:.875rem;line-height:1.25rem;color:var(--color-gray-500)}.main-column[_ngcontent-%COMP%] .tracks-container[_ngcontent-%COMP%]{margin:0;margin-bottom:1rem;display:flex;flex-direction:column;gap:.75rem}.main-column[_ngcontent-%COMP%] .tracks-container[_ngcontent-%COMP%] .track-accordion[_ngcontent-%COMP%]{overflow:hidden;border-radius:.75rem;border-width:1px;border-style:solid;border-color:var(--color-bright-gray);background-color:var(--color-white);transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.main-column[_ngcontent-%COMP%] .tracks-container[_ngcontent-%COMP%] .track-accordion[open][_ngcontent-%COMP%]{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
1--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.main-column[_ngcontent-%COMP%] .tracks-container[_ngcontent-%COMP%] .track-accordion[open][_ngcontent-%COMP%] .track-summary[_ngcontent-%COMP%]{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--color-bright-gray)}.main-column[_ngcontent-%COMP%] .tracks-container[_ngcontent-%COMP%] .track-accordion[_ngcontent-%COMP%] .track-summary[_ngcontent-%COMP%]{display:flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:.75rem;border-top-left-radius:.5rem;border-top-right-radius:.5rem;border-width:0px;padding:.5rem 1rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;background:linear-gradient(135deg,#f7f7f8,#fff,#f7f7f8)}.main-column[_ngcontent-%COMP%] .tracks-container[_ngcontent-%COMP%] .track-accordion[_ngcontent-%COMP%] .track-summary[_ngcontent-%COMP%]:is(.com-dark *){background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #080808 var(--tw-gradient-from-position);--tw-gradient-to: rgb(8 8 8 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: rgb(20 20 20 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #141414 var(--tw-gradient-via-position), var(--tw-gradient-to);--tw-gradient-to: #080808 var(--tw-gradient-to-position)}.main-column[_ngcontent-%COMP%] .tracks-container[_ngcontent-%COMP%] .track-accordion[_ngcontent-%COMP%] .track-summary[_ngcontent-%COMP%]{list-style:none}.main-column[_ngcontent-%COMP%] .tracks-container[_ngcontent-%COMP%] .track-accordion[_ngcontent-%COMP%] .track-summary[_ngcontent-%COMP%]::-webkit-details-marker{display:none}.main-column[_ngcontent-%COMP%] .tracks-container[_ngcontent-%COMP%] .track-accordion[_ngcontent-%COMP%] .track-summary[_ngcontent-%COMP%]::marker{display:none;content:""}.main-column[_ngcontent-%COMP%] .tracks-container[_ngcontent-%COMP%] .track-accordion[_ngcontent-%COMP%] .track-summary[_ngcontent-%COMP%] .track-number[_ngcontent-%COMP%]{display:flex;height:1.75rem;width:1.75rem;flex-shrink:0;align-items:center;justify-content:center;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(51 102 255 / var(--tw-bg-opacity, 1));font-size:.875rem;line-height:1.25rem;font-weight:600;color:var(--color-white)}.main-column[_ngcontent-%COMP%] .tracks-container[_ngcontent-%COMP%] .track-accordion[_ngcontent-%COMP%] .track-summary[_ngcontent-%COMP%] .track-name[_ngcontent-%COMP%]{flex:1 1 0%;font-size:1rem;line-height:1.5rem;font-weight:600;color:var(--color-yankees-blue)}.main-column[_ngcontent-%COMP%] .tracks-container[_ngcontent-%COMP%] .track-accordion[_ngcontent-%COMP%] .track-summary[_ngcontent-%COMP%] .ps-badge[_ngcontent-%COMP%]{border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(214 224 255 / var(--tw-bg-opacity, 1));padding:.125rem .5rem;font-size:.75rem;line-height:1rem;font-weight:500;--tw-text-opacity: 1;color:rgb(31 61 153 / var(--tw-text-opacity, 1))}.main-column[_ngcontent-%COMP%] .tracks-container[_ngcontent-%COMP%] .track-accordion[_ngcontent-%COMP%] .track-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.25rem;padding:1.25rem}.main-column[_ngcontent-%COMP%] .tracks-container[_ngcontent-%COMP%] .track-accordion[_ngcontent-%COMP%] .track-content[_ngcontent-%COMP%] .track-section[_ngcontent-%COMP%] .section-label[_ngcontent-%COMP%]{margin-bottom:.75rem;font-size:.75rem;line-height:1rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;--tw-text-opacity: 1;color:rgb(143 155 179 / var(--tw-text-opacity, 1))}.main-column[_ngcontent-%COMP%] .tracks-container[_ngcontent-%COMP%] .track-accordion[_ngcontent-%COMP%] .track-content[_ngcontent-%COMP%] .track-section[_ngcontent-%COMP%] .ps-list[_ngcontent-%COMP%] .ps-item[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:.75rem;border-radius:0;padding:.75rem 1rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.main-column[_ngcontent-%COMP%] .tracks-container[_ngcontent-%COMP%] .track-accordion[_ngcontent-%COMP%] .track-content[_ngcontent-%COMP%] .track-section[_ngcontent-%COMP%] .ps-list[_ngcontent-%COMP%] .ps-item[_ngcontent-%COMP%]:hover{background-color:var(--color-gray-50)}.main-column[_ngcontent-%COMP%] .tracks-container[_ngcontent-%COMP%] .track-accordion[_ngcontent-%COMP%] .track-content[_ngcontent-%COMP%] .track-section[_ngcontent-%COMP%] .ps-list[_ngcontent-%COMP%] .ps-item[_ngcontent-%COMP%] .ps-id[_ngcontent-%COMP%]{display:flex;height:2.5rem;width:2.5rem;flex-shrink:0;align-items:center;justify-content:center;border-radius:9999px;font-size:.75rem;line-height:1rem;font-weight:600;text-transform:uppercase;color:#312e81;background-color:#ede9fe}.main-column[_ngcontent-%COMP%] .tracks-container[_ngcontent-%COMP%] .track-accordion[_ngcontent-%COMP%] .track-content[_ngcontent-%COMP%] .track-section[_ngcontent-%COMP%] .ps-list[_ngcontent-%COMP%] .ps-item[_ngcontent-%COMP%] .ps-title[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem;color:var(--color-yankees-blue)}.main-column[_ngcontent-%COMP%] .tracks-container[_ngcontent-%COMP%] .track-accordion[_ngcontent-%COMP%] .track-content[_ngcontent-%COMP%] .track-section[_ngcontent-%COMP%] .ps-list[_ngcontent-%COMP%] .ps-item[_ngcontent-%COMP%] .ps-title[_ngcontent-%COMP%] p{margin:0}.main-column[_ngcontent-%COMP%] .tracks-container[_ngcontent-%COMP%] .track-accordion[_ngcontent-%COMP%] .track-content[_ngcontent-%COMP%] .track-section[_ngcontent-%COMP%] .ps-list[_ngcontent-%COMP%] .ps-item[_ngcontent-%COMP%]:not(:last-child){border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--color-gray-100)}.main-column[_ngcontent-%COMP%] .tracks-container[_ngcontent-%COMP%] .track-accordion[_ngcontent-%COMP%] .track-content[_ngcontent-%COMP%] .track-section[_ngcontent-%COMP%] .prizes-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(1,minmax(0,1fr));gap:.75rem}@media (min-width: 640px){.main-column[_ngcontent-%COMP%] .tracks-container[_ngcontent-%COMP%] .track-accordion[_ngcontent-%COMP%] .track-content[_ngcontent-%COMP%] .track-section[_ngcontent-%COMP%] .prizes-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}}.main-column[_ngcontent-%COMP%] .tracks-container[_ngcontent-%COMP%] .track-accordion[_ngcontent-%COMP%] .track-content[_ngcontent-%COMP%] .track-section[_ngcontent-%COMP%] .prizes-grid[_ngcontent-%COMP%] .prize-item[_ngcontent-%COMP%]{border-radius:.5rem;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1));padding:1rem}.main-column[_ngcontent-%COMP%] .tracks-container[_ngcontent-%COMP%] .track-accordion[_ngcontent-%COMP%] .track-content[_ngcontent-%COMP%] .track-section[_ngcontent-%COMP%] .prizes-grid[_ngcontent-%COMP%] .prize-item[_ngcontent-%COMP%] .prize-header[_ngcontent-%COMP%]{margin-bottom:.5rem;display:flex;align-items:center;justify-content:space-between;gap:.5rem}.main-column[_ngcontent-%COMP%] .tracks-container[_ngcontent-%COMP%] .track-accordion[_ngcontent-%COMP%] .track-content[_ngcontent-%COMP%] .track-section[_ngcontent-%COMP%] .prizes-grid[_ngcontent-%COMP%] .prize-item[_ngcontent-%COMP%] .prize-header[_ngcontent-%COMP%] .prize-name[_ng
1content-%COMP%]{font-size:.875rem;line-height:1.25rem;font-weight:600;color:var(--color-yankees-blue)}.main-column[_ngcontent-%COMP%] .tracks-container[_ngcontent-%COMP%] .track-accordion[_ngcontent-%COMP%] .track-content[_ngcontent-%COMP%] .track-section[_ngcontent-%COMP%] .prizes-grid[_ngcontent-%COMP%] .prize-item[_ngcontent-%COMP%] .prize-header[_ngcontent-%COMP%] .prize-amount[_ngcontent-%COMP%]{white-space:nowrap;font-size:.875rem;line-height:1.25rem;font-weight:600;--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.main-column[_ngcontent-%COMP%] .tracks-container[_ngcontent-%COMP%] .track-accordion[_ngcontent-%COMP%] .track-content[_ngcontent-%COMP%] .track-section[_ngcontent-%COMP%] .prizes-grid[_ngcontent-%COMP%] .prize-item[_ngcontent-%COMP%] .prize-description[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem;line-height:1.625;color:var(--color-gray-500)}.right-column[_ngcontent-%COMP%]{margin-bottom:1rem}@media (min-width: 768px){.right-column[_ngcontent-%COMP%]{margin-bottom:0}}']})}}return e})();var Z=s(18902),ft=s(92838),ki=s(31678),vi=s(47947),wi=s(80226),yi=s(68207),xi=s(58079),Ri=s(34291),Ti=s(37969),tt=s(43179),nt=s(40951),Pt=s(67459);function Fi(e,a){1&e&&(t.j41(0,"div",6),t.nrm(1,"commudle-loading-spinner"),t.k0s())}function Di(e,a){if(1&e&&(t.j41(0,"div",13)(1,"div",14),t.EFF(2,"\u{1f929}"),t.k0s(),t.j41(3,"h1",15),t.EFF(4),t.k0s()()),2&e){const n=t.XpG(3);t.R7$(4),t.Lme(" Thank You ",null==n.currentUser?null:n.currentUser.name," for filling the form for ",n.hackathon.name," ")}}function ji(e,a){if(1&e&&(t.qex(0),t.j41(1,"div",18)(2,"div",19)(3,"div",20),t.EFF(4,"Profile Card Preview"),t.k0s(),t.nrm(5,"app-user-profile-card-large",21),t.k0s(),t.j41(6,"div",22)(7,"div",20),t.EFF(8,"Profile's Progress"),t.k0s(),t.nrm(9,"commudle-profile-completion-progress"),t.k0s()(),t.j41(10,"div",23),t.nrm(11,"commudle-user-profile-missing-fields"),t.k0s(),t.bVm()),2&e){const n=t.XpG(4);t.R7$(5),t.Y8G("user",n.currentUser)}}function Gi(e,a){if(1&e&&(t.qex(0),t.nrm(1,"commudle-user-profile",24)(2,"commudle-userprofile-details",25),t.bVm()),2&e){const n=t.XpG(4);t.R7$(),t.Y8G("currentUser",n.currentUser),t.R7$(),t.Y8G("userProfileDetails",n.userProfileDetails)("username",n.currentUser.username)}}function Ei(e,a){if(1&e&&(t.j41(0,"div",16),t.DNE(1,ji,12,1,"ng-container",17)(2,Gi,3,3,"ng-container",17),t.k0s()),2&e){const n=t.XpG(3);t.R7$(),t.Y8G("ngIf",n.currentUser&&n.isProfileCompleted),t.R7$(),t.Y8G("ngIf",n.currentUser&&!n.isProfileCompleted)}}function Si(e,a){if(1&e&&(t.j41(0,"div",26)(1,"h2",20),t.EFF(2,"Hackathon Details"),t.k0s(),t.nrm(3,"commudle-hackathon-registered-card",27),t.k0s()),2&e){const n=t.XpG(3);t.R7$(3),t.Y8G("hackathon",n.hackathon)("showRegisteredIcon",!0)("showAddToCalendarButton",!0)}}function $i(e,a){1&e&&t.nrm(0,"commudle-loading-spinner")}function Ii(e,a){if(1&e&&(t.j41(0,"div",30),t.nrm(1,"app-user-profile-card-large",31),t.k0s()),2&e){const n=a.$implicit;t.R7$(),t.Y8G("alignFollowToRight",!0)("showFollowButton",!0)("user",n)}}function zi(e,a){if(1&e&&(t.qex(0),t.DNE(1,Ii,2,3,"div",29),t.bVm()),2&e){const n=t.XpG(4);t.R7$(),t.Y8G("ngForOf",n.hackathonJudges)}}function Hi(e,a){if(1&e&&(t.j41(0,"div",28)(1,"h2",20),t.EFF(2,"Follow Hackathon Judges"),t.k0s(),t.DNE(3,$i,1,0,"commudle-loading-spinner",17)(4,zi,2,1,"ng-container",17),t.k0s()),2&e){const n=t.XpG(3);t.R7$(3),t.Y8G("ngIf",n.isLoadingHackathonJudges),t.R7$(),t.Y8G("ngIf",!n.isLoadingHackathonJudges&&(null==n.hackathonJudges?null:n.hackathonJudges.length)>0)}}function Yi(e,a){if(1&e&&(t.j41(0,"div",8),t.DNE(1,Di,5,2,"div",9)(2,Ei,3,2,"div",10)(3,Si,4,3,"div",11)(4,Hi,5,2,"div",12),t.k0s()),2&e){const n=t.XpG(2);t.R7$(),t.Y8G("ngIf",n.hackathon),t.R7$(),t.Y8G("ngIf",n.hackathon),t.R7$(),t.Y8G("ngIf",n.hackathon),t.R7$(),t.Y8G("ngIf",n.hackathon.judges_count>0||n.isLoading)}}function Bi(e,a){if(1&e&&t.DNE(0,Yi,5,4,"div",7),2&e){const n=t.XpG();t.Y8G("ngIf",!n.isLoading)}}let V=(()=>{class e{constructor(n,i,o,r,c){this.activatedRoute=n,this.hackathonService=i,this.seoService=o,this.authService=r,this.appUsersService=c,this.isLoading=!0,this.EInvitationStatus=u.zN,this.isProfileCompleted=!1,this.subscriptions=[],this.isLoadingHackathonJudges=!1,this.hackathonJudges=[],this.destroy$=new y.B}ngOnInit(){this.activatedRoute.params.subscribe(n=>
1{this.hackathonSlug=n.hackathon_id,this.fetchHackathonDetails(),this.getJudges()}),this.fetchCurrentUserDetails(),this.seoService.noIndex(!0)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.subscriptions.forEach(n=>n.unsubscribe())}fetchHackathonDetails(){this.isLoading=!0,this.subscriptions.push(this.hackathonService.pShowHackathon(this.hackathonSlug).subscribe(n=>{this.hackathon=n,this.seoService.setTitle(`Registration Confirmed | ${this.hackathon.name}`),this.isLoading=!1}))}fetchCurrentUserDetails(){this.authService.currentUser$.pipe((0,b.Q)(this.destroy$)).subscribe(n=>{this.currentUser=n,this.fetchUserStats(),this.getProfileCompletionStatus()})}fetchUserStats(){this.appUsersService.getProfileStats().subscribe(n=>{this.userProfileDetails=n})}getProfileCompletionStatus(){this.appUsersService.profileCompletionStatus$.pipe((0,b.Q)(this.destroy$)).subscribe(n=>{n&&(this.isProfileCompleted=!n.completed)})}getJudges(){this.isLoadingHackathonJudges=!0,this.subscriptions.push(this.hackathonService.pIndexJudge(this.hackathonSlug).subscribe(n=>{this.hackathonJudges=n,this.isLoadingHackathonJudges=!1}))}static{this.\u0275fac=function(i){return new(i||e)(t.rXU(C.nX),t.rXU(O.$),t.rXU(_.B2),t.rXU(_.uR),t.rXU(_.pP))}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["commudle-public-hackathon-form-confirmation"]],standalone:!1,decls:7,vars:2,consts:[["confirmationContainer",""],[1,"hackathon-form-confirmation-container"],[1,"base-layout","thin"],[1,"container"],[1,"one-column-layout"],["class","loading-spinner-container",4,"ngIf","ngIfElse"],[1,"loading-spinner-container"],["class","confirmation-card",4,"ngIf"],[1,"confirmation-card"],["class","confirmation-header",4,"ngIf"],["class","profile-card-container",4,"ngIf"],["class","details-card-container",4,"ngIf"],["class","leaders-card",4,"ngIf"],[1,"confirmation-header"],[1,"check-icon"],[1,"title"],[1,"profile-card-container"],[4,"ngIf"],[1,"profile-card"],[1,"profile-preview-card"],[1,"card-heading"],[3,"user"],[1,"profile-completion-card"],[1,"missing-field-card"],[3,"currentUser"],[3,"userProfileDetails","username"],[1,"details-card-container"],[3,"hackathon","showRegisteredIcon","showAddToCalendarButton"],[1,"leaders-card"],["class","leader",4,"ngFor","ngForOf"],[1,"leader"],["appearanceOfFollowButton","outline",3,"alignFollowToRight","showFollowButton","user"]],template:function(i,o){if(1&i&&(t.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4),t.DNE(4,Fi,2,0,"div",5)(5,Bi,1,1,"ng-template",null,0,t.C5r),t.k0s()()()()),2&i){const r=t.sdS(6);t.R7$(4),t.Y8G("ngIf",o.isLoading)("ngIfElse",r)}},dependencies:[m.Sq,m.bT,R.N,xi.O,Ri.n,Ti.B,tt.W,nt.O,Pt.T],styles:[".hackathon-form-confirmation-container[_ngcontent-%COMP%]{background-color:var(--color-white);padding-bottom:4rem}.confirmation-card[_ngcontent-%COMP%]{margin-left:.75rem;margin-right:.75rem;margin-top:2.5rem}@media (min-width: 768px){.confirmation-card[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:5rem}}.confirmation-card[_ngcontent-%COMP%] .confirmation-header[_ngcontent-%COMP%]{margin-bottom:1.5rem;text-align:center}.confirmation-card[_ngcontent-%COMP%] .confirmation-header[_ngcontent-%COMP%] .check-icon[_ngcontent-%COMP%]{margin-bottom:2rem;font-size:3.75rem;line-height:1}.confirmation-card[_ngcontent-%COMP%] .confirmation-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{margin:0 0 60px;font-size:32px;font-weight:600;line-height:2.5rem;color:var(--color-yankees-blue)}.confirmation-card[_ngcontent-%COMP%] .profile-card[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.confirmation-card[_ngcontent-%COMP%] .profile-card[_ngcontent-%COMP%] .profile-completion-card[_ngcontent-%COMP%]{border-width:0px;border-left-width:1px;border-style:solid;border-color:var(--color-bright-gray);padding-left:.75rem}.confirmation-card[_ngcontent-%COMP%] .profile-card[_ngcontent-%COMP%] .profile-preview-card[_ngcontent-%COMP%] .card-heading[_ngcontent-%COMP%], .confirmation-card[_ngcontent-%COMP%] .profile-card[_ngcontent-%COMP%] .profile-completion-card[_ngcontent-%COMP%] .card-heading[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.125rem;line-height:1.75rem;font-weight:600;color:var(--color-yankees-blue)}.confirmation-card[_ngcontent-%COMP%] .missing-field-card[_ngcontent-%COMP%]{margin-top:2rem;margin-bottom:0}.confirmation-card[_ngcontent-%COMP%] .card-heading[_ngcontent-%COMP%]{margin:0;margin-bottom:2rem;font-size:1.5rem;line-height:2rem;font-weight:600;color:var(--color-yankees-blue)}.confirmation-card[_ngcontent-%COMP%] .leaders-card[_ngcontent-%COMP%]{border-width:0px;border-top-width:1px;border-style:solid;border-color:var(--color-bright-gray);padding-top:2rem;padding-bottom:2rem}.confirmation-card[_ngcontent-%COMP%] .leader[_ngcontent-%COMP%]:not(:last-child){margin-bottom:.5rem;border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--color-bright-gray);padding-bottom:.5rem}
1.confirmation-card[_ngcontent-%COMP%] .profile-card-container[_ngcontent-%COMP%], .confirmation-card[_ngcontent-%COMP%] .details-card-container[_ngcontent-%COMP%]{padding-bottom:2rem}.loading-spinner-container[_ngcontent-%COMP%]{margin-top:2rem;margin-bottom:2rem}"]})}}return e})();var G=s(60557),Xi=s(17285),E=s(75757),d=s(89417);const Ui=["emailInput"];function Ni(e,a){1&e&&t.nrm(0,"commudle-alert",15),2&e&&t.Y8G("info",!0)}function Li(e,a){1&e&&t.nrm(0,"br")}function Vi(e,a){if(1&e&&t.nrm(0,"app-user-profile-card-medium",18),2&e){const n=t.XpG(2).index,i=t.XpG();t.Y8G("user",i.getTeammateUser(n))}}function Ai(e,a){if(1&e&&(t.j41(0,"span",19),t.EFF(1),t.k0s()),2&e){let n;const i=t.XpG(2).index,o=t.XpG();t.R7$(),t.JRh(null==(n=o.getEmailControl(i))?null:n.value)}}function Ji(e,a){if(1&e&&(t.j41(0,"section"),t.DNE(1,Vi,1,1,"app-user-profile-card-medium",17)(2,Ai,2,1,"ng-template",null,0,t.C5r),t.k0s()),2&e){const n=t.sdS(3),i=t.XpG().index,o=t.XpG();t.R7$(),t.Y8G("ngIf",o.getTeammateUser(i))("ngIfElse",n)}}function Wi(e,a){1&e&&t.nrm(0,"commudle-alert",24),2&e&&t.Y8G("error",!0)}function Qi(e,a){if(1&e&&t.nrm(0,"commudle-alert",25),2&e){let n;const i=t.XpG(2).index,o=t.XpG();t.Y8G("error",!0)("errorMessage",null!=(n=o.getEmailControl(i))&&null!=n.errors&&n.errors.required?"Email is required":null!=(n=o.getEmailControl(i))&&null!=n.errors&&n.errors.invalidEmail?"Please enter a valid email address (e.g., [email protected])":"")}}function qi(e,a){if(1&e){const n=t.RV6();t.j41(0,"section")(1,"label",20),t.EFF(2,"Enter Email*"),t.k0s(),t.j41(3,"input",21,1),t.bIt("input",function(o){t.eBV(n);const r=t.XpG(2);return t.Njj(r.checkEmail(o.target))}),t.k0s(),t.DNE(5,Wi,1,1,"commudle-alert",22)(6,Qi,1,2,"commudle-alert",23),t.k0s()}if(2&e){let n;const i=t.XpG().index,o=t.XpG();t.R7$(5),t.Y8G("ngIf",o.showEmailError),t.R7$(),t.Y8G("ngIf",(null==(n=o.getEmailControl(i))?null:n.invalid)&&(null==(n=o.getEmailControl(i))?null:n.touched))}}function Ki(e,a){1&e&&(t.j41(0,"section")(1,"label",26),t.EFF(2,"T shirt size*"),t.k0s(),t.j41(3,"select",27)(4,"option",28),t.EFF(5,"Select T-shirt size"),t.k0s(),t.j41(6,"option",29),t.EFF(7,"S"),t.k0s(),t.j41(8,"option",30),t.EFF(9,"M"),t.k0s(),t.j41(10,"option",31),t.EFF(11,"L"),t.k0s(),t.j41(12,"option",32),t.EFF(13,"XL"),t.k0s(),t.j41(14,"option",33),t.EFF(15,"XXL"),t.k0s(),t.j41(16,"option",34),t.EFF(17,"XXXL"),t.k0s()()())}function Zi(e,a){if(1&e){const n=t.RV6();t.j41(0,"section")(1,"button",35),t.bIt("click",function(){t.eBV(n);const o=t.XpG().index,r=t.XpG();return t.Njj(r.removeTeammate(o))}),t.nrm(2,"fa-icon",36),t.j41(3,"span"),t.EFF(4,"Remove Teammate"),t.k0s()()()}if(2&e){const n=t.XpG(2);t.R7$(2),t.Y8G("icon",n.icons.faUserLargeSlash)}}function ta(e,a){if(1&e&&(t.j41(0,"div",16),t.DNE(1,Ji,4,2,"section",3)(2,qi,7,2,"section",3)(3,Ki,18,0,"section",3)(4,Zi,5,1,"section",3),t.k0s()),2&e){const n=a.index,i=t.XpG();t.Y8G("formGroupName",n),t.R7$(),t.Y8G("ngIf",i.viewMode),t.R7$(),t.Y8G("ngIf",!i.viewMode),t.R7$(),t.Y8G("ngIf",i.hackathonResponseGroup.user_details.tshirt_size),t.R7$(),t.Y8G("ngIf",i.hackathonUserResponse&&(i.hackathonUserResponse.current_user_is_team_lead||(null==i.team?null:i.team.user_id)===(null==i.currentUser?null:i.currentUser.id)))}}function na(e,a){if(1&e){const n=t.RV6();t.j41(0,"button",37),t.bIt("click",function(){t.eBV(n);const o=t.XpG();return t.Njj(o.addTeammate())}),t.nrm(1,"fa-icon",36),t.j41(2,"span"),t.EFF(3," Add Teammate "),t.k0s()()}if(2&e){const n=t.XpG();t.R7$(),t.Y8G("icon",n.icons.faPlus)}}function ea(e,a){if(1&e){const n=t.RV6();t.j41(0,"button",38),t.bIt("click",function(){t.eBV(n);const o=t.XpG();return t.Njj(o.submitTeammateDetails())}),t.EFF(1," Save "),t.k0s()}if(2&e){const n=t.XpG();t.Y8G("disabled",n.teammateForm.invalid||n.hasTeammateOption&&n.hackathon.min_number_of_teammates-1>n.teammatesArray.controls.length)}}function oa(e,a){if(1&e){const n=t.RV6();t.j41(0,"button",39),t.bIt("click",function(){t.eBV(n);const o=t.XpG();return t.Njj(o.previousButton())}),t.EFF(1,"Previous"),t.k0s(),t.j41(2,"button",40),t.bIt("click",function(){t.eBV(n);const o=t.XpG();return t.Njj(o.submitTeammateDetails())}),t.EFF(3," Next "),t.k0s()}if(2&e){const n=t.XpG();
1t.R7$(2),t.Y8G("disabled",n.teammateForm.invalid||n.hasTeammateOption&&n.hackathon.min_number_of_teammates-1>n.teammatesArray.controls.length)}}let Mt=(()=>{class e{constructor(n,i,o,r){this.fb=n,this.hurService=i,this.authWatchService=o,this.toastrService=r,this.hasSubmitButton=!1,this.viewMode=!1,this.submitTeammateDetailsEvent=new t.bkB,this.previousButtonEvent=new t.bkB,this.showEmailError=!1,this.icons={faUserLargeSlash:l.r4D,faPlus:l.QLR},this.destroy$=new y.B,this.teammateForm=this.fb.group({name:["",d.k0.required],teammates:this.fb.array([])})}ngOnInit(){this.authWatchService.currentUser$.pipe((0,b.Q)(this.destroy$)).subscribe(n=>{this.currentUser=n,this.hasTeammateOption||this.teammateForm.patchValue({name:this.currentUser.name})})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}ngAfterViewInit(){this.hackathonUserResponse&&this.hackathonUserResponse.hackathon_team_id&&this.fetchTeamDetails()}checkEmail(n){this.showEmailError=!!n.value.includes(this.currentUser.email)}emailValidator(n){return n.value?/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(n.value)?null:{invalidEmail:!0}:null}addTeammate(n="",i=""){let o;o=this.fb.group(this.hackathonResponseGroup.user_details.tshirt_size?{email:[n,[d.k0.required,this.emailValidator.bind(this)]],tshirt_size:[i,d.k0.required]}:{email:[n,[d.k0.required,this.emailValidator.bind(this)]]}),this.teammatesArray.push(o),setTimeout(()=>{const r=this.teammatesArray.length-1,c=this.emailInputs.toArray();c[r]&&c[r].nativeElement.focus()})}removeTeammate(n){this.teammatesArray.removeAt(n)}get teammatesArray(){return this.teammateForm.get("teammates")}getEmailControl(n){return this.teammatesArray.at(n).get("email")}getTeammateUser(n){const i=this.getEmailControl(n)?.value?.toLowerCase();return this.team?.hackathon_user_responses?.find(r=>r.user_email?.toLowerCase()===i)?.user||null}fetchTeamDetails(){this.hurService.getTeamDetails(this.hackathonUserResponse.id).subscribe(n=>{if(n){this.teammateForm.patchValue({name:n.team_name});for(const i of n.teammates_details)this.addTeammate(i.user_email,i.tshirt_size)}})}submitTeammateDetails(){const n={...this.teammateForm.value,teammates:this.teammateForm.value.teammates.map(o=>({...o,email:o.email.toLowerCase()}))};this.checkForDuplicateEmails(n.teammates)?this.toastrService.warningDialog("All teammates\u2019 emails should be unique"):this.submitTeammateDetailsEvent.emit(n)}previousButton(){this.previousButtonEvent.emit()}checkForDuplicateEmails(n){const i=n.map(r=>r.email),o=i.filter((r,c)=>i.indexOf(r)!==c);return o.length>0&&o.join(", ")}static{this.\u0275fac=function(i){return new(i||e)(t.rXU(d.ok),t.rXU(Z.K),t.rXU(U.E),t.rXU(_.tw))}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["commudle-public-hackathon-teammate-form"]],viewQuery:function(i,o){if(1&i&&t.GBs(Ui,5),2&i){let r;t.mGM(r=t.lsd())&&(o.emailInputs=r)}},inputs:{hackathonUserResponse:"hackathonUserResponse",hackathonResponseGroup:"hackathonResponseGroup",hasTeammateOption:"hasTeammateOption",hasSubmitButton:"hasSubmitButton",hackathon:"hackathon",team:"team",viewMode:"viewMode"},outputs:{submitTeammateDetailsEvent:"submitTeammateDetailsEvent",previousButtonEvent:"previousButtonEvent"},standalone:!1,decls:16,vars:10,consts:[["viewEmail",""],["emailInput",""],["message","Although this is an individual participation, it would be great if you can select a team name for your project, by default it will be your name.",3,"info",4,"ngIf"],[4,"ngIf"],[3,"formGroup"],[1,"section-padding"],["for","name"],["type","text","nbInput","","fullWidth","","formControlName","name",3,"placeholder"],["formArrayName","teammates"],["class","teammate-form",3,"formGroupName",4,"ngFor","ngForOf"],[3,"error"],["errorContent",""],["type","button","nbButton","",3,"click",4,"ngIf"],[1,"action-buttons"],["type","submit","nbButton","","status","primary","fullWidth","",3,"disabled"],["message","Although this is an individual participation, it would be great if you can select a team name for your project, by default it will be your name.",3,"info"],[1,"teammate-form",3,"formGroupName"],[3,"user",4,"ngIf","ngIfElse"],[3,"user"],[1,"view-email"],["for","email"],["type","email","formControlName","email","placeholder","[email protected]","fullWidth","","nbInput","",3,"input"],["errorMessage","You can't put your own email as teammate",3,"error",4,"ngIf"],[3,"error","errorMessage",4,"ngIf"],["errorMessage","You can't put your own email as teammate",3,"error"],[3,"error","errorMessage"],["for","tshirt_size"],["name","tshirt_size","id","tshirt_size","formControlName","tshirt_size"],["selected","","disabled","","value",""],["value","S"],["value","M"],["value","L"],["value","XL"],["value","XXL"],["value","XXXL"],["type","button","nbButton","","ghost","","status","danger",3,"click"],[3,"icon"],["type","button","nbButton","",3,"click"],["type","submit","nbButton","","status","primary","fullWidth","",3,"click","disabled"],["status","primary","nbButton","",3,"click"],["type","submit","nbButton","","status","primary",3,"click","disabled"]],template:function(i,o){1&i&&(t.DNE(0,Ni,1,1,"commudle-alert",2)(1,Li,1,0,"br",3),t.j41(2,"form",4)(3,"div",5)(4,"label",6),t.EFF(5),t.k0s(),t.nrm(6,"input",7),t.k0s(),t.qex(7,8),t.DNE(8,ta,5,5,"div",9),t.bVm(),t.j41(9,"commudle-alert",10)(10,"div",11),t.EFF(11),t.k0s()(),t.DNE(12,na,4,1,"button",12),t.j41(13,"div",13),t.DNE(14,ea,2,1,"button",14)(15,oa,4,1),t.k0s()()),2&i&&(t.Y8G("ngIf",!o.hasTeammateOption),t.R7$(),t.Y8G("ngIf",!o.hasTeammateOption),t.R7$(),t.Y8G("formGroup",o.teammateForm),t.R7$(3),t.JRh(o.hasTeammateOption?"Team Name*":"Your Name?*"),t.R7$(),t.Y8G("placeholder",o.hasTeammateOption?"Team Name*":"Your Name?*"),t.R7$(2),t.Y8G("ngForOf",o.teammatesArray.controls),t.R7$(),t.Y8G("error",o.hasTeammateOption&&o.hackathon.min_number_of_teammates>o.teammatesArray.controls.length+1),t.R7$(2),t.SpI("Minimum ",o.hackathon.min_number_of_teammates," teammates are Required, including you"),t.R7$(),t.Y8G("ngIf",o.hasTeammateOption&&o.hackathon.max_number_of_teammates-1>o.teammatesArray.controls.length),t.R7$(2),t.vxM(o.hasSubmitButton?14:15))},dependencies:[m.Sq,m.bT,d.qT,d.xH,d.y7,d.me,d.wz,d.BC,d.cb,d.j4,d.JD,d.$R,d.v8,g.YP2,g.i6h,k.aY,G.C,Ct.L],styles:["form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem}form[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--color-bright-gray)}form[_ngcontent-%COMP%] .teammate-form[_ngcontent-%COMP%] section[_ngcontent-%COMP%]{margin-bottom:1rem}form[_ngcontent-%COMP%] .teammate-form[_ngcontent-%COMP%] input[type=email][_ngcontent-%COMP%]{text-transform:lowercase}form[_ngcontent-%COMP%] .teammate-form[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{width:100%;border-radius:.25rem;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(228 233 242 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(247 249 252 / var(--tw-bg-opacity, 1));padding:.5rem}form[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}button[_ngcontent-%COMP%]{display:flex;width:max-content;flex-direction:row;align-items:center;gap:.5rem}.view-email[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(143 155 179 / var(--tw-text-opacity, 1))}.section-padding[_ngcontent-%COMP%]{padding-bottom:1rem}"]})}}return e})();const ia=e=>({"com-text-[#8E9BB3]":e});function aa(e,a){if(1&e&&(t.j41(0,"option",10),t.EFF(1),t.k0s()),2&e){const n=a.$implicit;t.Y8G("value",n.id),t.R7$(),t.JRh(n.name)}}function ra(e,a){if(1&e){const n=t.RV6();t.j41(0,"div")(1,"label",6),t.EFF(2,"Select Track"),t.k0s(),t.nrm(3,"br"),t.j41(4,"select",7),t.bIt("change",function(){t.eBV(n);const o=t.XpG();
1return t.Njj(o.updateProblemStatement())}),t.j41(5,"option",8),t.EFF(6,"Select Track"),t.k0s(),t.DNE(7,aa,2,2,"option",9),t.k0s()()}if(2&e){const n=t.XpG();t.R7$(4),t.Y8G("ngClass",t.eq3(2,ia,""===n.hackathonProjectDetailsForm.get("hackathon_track_id").value)),t.R7$(3),t.Y8G("ngForOf",n.hackathonTracks)}}function ca(e,a){if(1&e&&(t.j41(0,"span",20),t.EFF(1),t.k0s()),2&e){const n=t.XpG().$implicit;t.R7$(),t.JRh(n.display_id)}}function sa(e,a){1&e&&(t.j41(0,"span",21),t.EFF(1,"(Limit Reached)"),t.k0s())}function la(e,a){if(1&e&&(t.j41(0,"div",14),t.nrm(1,"input",15),t.j41(2,"label",16),t.DNE(3,ca,2,1,"span",17),t.nrm(4,"span",18),t.DNE(5,sa,2,0,"span",19),t.k0s()()),2&e){const n=a.$implicit;t.AVh("disabled-option",!n.can_team_select),t.R7$(),t.Y8G("id","ps-"+n.id)("value",n.id)("disabled",!n.can_team_select),t.R7$(),t.AVh("disabled",!n.can_team_select),t.Y8G("for","ps-"+n.id),t.R7$(),t.Y8G("ngIf",n.display_id),t.R7$(),t.Y8G("innerHTML",n.title,t.npT),t.R7$(),t.Y8G("ngIf",!n.can_team_select)}}function ma(e,a){if(1&e&&(t.j41(0,"div",11)(1,"label"),t.EFF(2,"Select Problem Statement"),t.k0s(),t.j41(3,"div",12),t.DNE(4,la,6,11,"div",13),t.k0s()()),2&e){const n=t.XpG();t.R7$(4),t.Y8G("ngForOf",n.selectedTrackProblemStatements)}}function da(e,a){if(1&e){const n=t.RV6();t.j41(0,"button",22),t.bIt("click",function(){t.eBV(n);const o=t.XpG();return t.Njj(o.previousButton())}),t.EFF(1,"Previous"),t.k0s()}}let Ot=(()=>{class e{constructor(n,i){this.hackathonService=n,this.fb=i,this.hidePreviousButton=!1,this.submitButtonText="Next",this.createOrUpdateProjectDetails=new t.bkB,this.previousButtonEvent=new t.bkB,this.selectedTrackProblemStatements=[],this.hackathonProjectDetailsForm=this.fb.group({hackathon_track_id:["",d.k0.required],hackathon_problem_statement_id:["",d.k0.required]})}ngOnInit(){this.fetchHackathonTracks();const n=this.team?.hackathon_team?.track?.id??this.team?.track?.id,i=this.team?.hackathon_team?.problem_statement?.id??this.team?.problem_statement?.id;this.team&&(n||i)&&this.hackathonProjectDetailsForm.patchValue({hackathon_track_id:n,hackathon_problem_statement_id:i})}minWordsValidator(n){return i=>{if(!i.value)return{minWords:!0};const o=i.value.trim().split(/\s+/);return o.length>=n?null:{minWords:{requiredWords:n,actualWords:o.length}}}}updateProblemStatement(){const n=this.hackathonProjectDetailsForm.get("hackathon_track_id").value,i=this.hackathonTracks.find(o=>o.id==n);this.selectedTrackProblemStatements=i&&i.hackathon_problem_statements||[],this.hackathonProjectDetailsForm.patchValue({hackathon_problem_statement_id:""}),this.toggleProblemStatementValidator()}updateProblemStatementForEdit(){const n=this.hackathonProjectDetailsForm.get("hackathon_track_id").value,i=this.hackathonTracks.find(o=>o.id==n);this.selectedTrackProblemStatements=i&&i.hackathon_problem_statements||[],this.toggleProblemStatementValidator()}toggleProblemStatementValidator(){const n=this.hackathonProjectDetailsForm.get("hackathon_problem_statement_id");this.selectedTrackProblemStatements.length>0?n.setValidators([d.k0.required]):n.clearValidators(),n.updateValueAndValidity()}fetchHackathonTracks(){this.hackathonService.pIndexHackathonTracks(this.hackathon.id).subscribe(n=>{this.hackathonTracks=n.sort((o,r)=>o.name.localeCompare(r.name));const i=this.hackathonProjectDetailsForm.get("hackathon_track_id");i&&this.hackathonTracks.length>0||i&&i.clearValidators(),i.updateValueAndValidity(),this.hackathonProjectDetailsForm.get("hackathon_track_id").value&&this.updateProblemStatementForEdit()})}submitProjectDetails(){const n={...this.hackathonProjectDetailsForm.value};n.hackathon_problem_statement_id||delete n.hackathon_problem_statement_id,this.createOrUpdateProjectDetails.emit(n)}previousButton(){this.previousButtonEvent.emit()}static{this.\u0275fac=function(i){return new(i||e)(t.rXU(O.$),t.rXU(d.ok))}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["commudle-public-hackathon-project-details-form"]],inputs:{hackathon:"hackathon",hackathonUserResponse:"hackathonUserResponse",team:"team",hidePreviousButton:"hidePreviousButton",submitButtonText:"submitButtonText"},outputs:{createOrUpdateProjectDetails:"createOrUpdateProjectDetails",previousButtonEvent:"previousButtonEvent"},standalone:!1,decls:7,vars:6,consts:[[3,"formGroup"],[4,"ngIf"],["class","problem-statements-container",4,"ngIf"],[1,"action-buttons"],["status","primary","nbButton","",3,"click",4,"ngIf"],["nbButton","","status","primary",3,"click","disabled"],["for","hackathon_track_id"],["formControlName","hackathon_track_id","name","hackathon_track_id","id","hackathon_track_id",3,"change","ngClass"],["selected","","disabled","","value",""],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"problem-statements-container"],[1,"radio-group"],["class","radio-option",3,"disabled-option",4,"ngFor","ngForOf"],[1,"radio-option"],["type","radio","formControlName","hackathon_problem_statement_id","name","hackathon_problem_statement_id",3,"id","value","disabled"],[1,"problem-statement-label",3,"for"],["class","display-id",4,"ngIf"],[1,"title",3,"innerHTML"],["class","limit-reached",4,"ngIf"],[1,"display-id"],[1,"limit-reached"],["status","primary","nbButton","",3,"click"]],template:function(i,o){1&i&&(t.j41(0,"form",0),t.DNE(1,ra,8,4,"div",1)(2,ma,5,1,"div",2),t.j41(3,"div",3),t.DNE(4,da,2,0,"button",4),t.j41(5,"button",5),t.bIt("click",function(){return o.submitProjectDetails()}),t.EFF(6),t.k0s()()()),2&i&&(t.Y8G("formGroup",o.hackathonProjectDetailsForm),t.R7$(),t.Y8G("ngIf",o.hackathonTracks&&o.hackathonTracks.length>0),t.R7$(),t.Y8G("ngIf",o.selectedTrackProblemStatements.length>0),t.R7$(2),t.Y8G("ngIf",!o.hidePreviousButton),t.R7$(),t.Y8G("disabled",o.hackathonProjectDetailsForm.invali
1d),t.R7$(),t.SpI(" ",o.submitButtonText," "))},dependencies:[m.YU,m.Sq,m.bT,d.qT,d.xH,d.y7,d.me,d.wz,d.Fm,d.BC,d.cb,d.j4,d.JD,g.YP2],styles:["form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem}form[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{width:100%;border-radius:.25rem;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(228 233 242 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(247 249 252 / var(--tw-bg-opacity, 1));padding:.625rem .5rem}form[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}form[_ngcontent-%COMP%] .problem-statements-container[_ngcontent-%COMP%], form[_ngcontent-%COMP%] .problem-statements-container[_ngcontent-%COMP%] .radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}form[_ngcontent-%COMP%] .problem-statements-container[_ngcontent-%COMP%] .radio-group[_ngcontent-%COMP%] .radio-option[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:.75rem;border-radius:.25rem;border-width:1px;border-style:solid;border-color:var(--color-bright-gray);padding:.75rem 1rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}form[_ngcontent-%COMP%] .problem-statements-container[_ngcontent-%COMP%] .radio-group[_ngcontent-%COMP%] .radio-option[_ngcontent-%COMP%]:hover{--tw-border-opacity: 1;border-color:rgb(51 102 255 / var(--tw-border-opacity, 1))}form[_ngcontent-%COMP%] .problem-statements-container[_ngcontent-%COMP%] .radio-group[_ngcontent-%COMP%] .radio-option.disabled-option[_ngcontent-%COMP%]{pointer-events:none;cursor:not-allowed;opacity:.5}form[_ngcontent-%COMP%] .problem-statements-container[_ngcontent-%COMP%] .radio-group[_ngcontent-%COMP%] .radio-option[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]{flex-shrink:0;cursor:pointer}form[_ngcontent-%COMP%] .problem-statements-container[_ngcontent-%COMP%] .radio-group[_ngcontent-%COMP%] .radio-option[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:checked ~ label[_ngcontent-%COMP%]{font-weight:500}form[_ngcontent-%COMP%] .problem-statements-container[_ngcontent-%COMP%] .radio-group[_ngcontent-%COMP%] .radio-option[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:disabled{cursor:not-allowed;opacity:.5}form[_ngcontent-%COMP%] .problem-statements-container[_ngcontent-%COMP%] .radio-group[_ngcontent-%COMP%] .radio-option[_ngcontent-%COMP%]:has(input[type=radio]:checked){--tw-border-opacity: 1;border-color:rgb(51 102 255 / var(--tw-border-opacity, 1))}form[_ngcontent-%COMP%] .problem-statements-container[_ngcontent-%COMP%] .radio-group[_ngcontent-%COMP%] .radio-option[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{flex:1 1 0%;cursor:pointer}form[_ngcontent-%COMP%] .problem-statements-container[_ngcontent-%COMP%] .radio-group[_ngcontent-%COMP%] .radio-option[_ngcontent-%COMP%] label.disabled[_ngcontent-%COMP%]{cursor:not-allowed;opacity:.5}form[_ngcontent-%COMP%] .problem-statements-container[_ngcontent-%COMP%] .radio-group[_ngcontent-%COMP%] .radio-option[_ngcontent-%COMP%] label.problem-statement-label[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:.75rem}form[_ngcontent-%COMP%] .problem-statements-container[_ngcontent-%COMP%] .radio-group[_ngcontent-%COMP%] .radio-option[_ngcontent-%COMP%] label.problem-statement-label[_ngcontent-%COMP%] .limit-reached[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem;font-weight:500;--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}form[_ngcontent-%COMP%] .problem-statements-container[_ngcontent-%COMP%] .radio-group[_ngcontent-%COMP%] .radio-option[_ngcontent-%COMP%] label.problem-statement-label[_ngcontent-%COMP%] .display-id[_ngcontent-%COMP%]{flex-shrink:0;border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(214 224 255 / var(--tw-bg-opacity, 1));padding:.25rem .5rem;font-size:.75rem;line-height:1rem;font-weight:600;text-transform:uppercase;--tw-text-opacity: 1;color:rgb(51 102 255 / var(--tw-text-opacity, 1))}form[_ngcontent-%COMP%] .problem-statements-container[_ngcontent-%COMP%] .radio-group[_ngcontent-%COMP%] .radio-option[_ngcontent-%COMP%] label.problem-statement-label[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:1 1 0%}form[_ngcontent-%COMP%] .problem-statements-container[_ngcontent-%COMP%] .radio-group[_ngcontent-%COMP%] .radio-option[_ngcontent-%COMP%] label.problem-statement-label[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] p:first-child{margin-top:0}"]})}}return e})();var ga=s(62529);let _a=(()=>{class e{constructor(n){this.dataFormEntityResponsesService=n,this.submitFormEvent=ne
1w t.bkB}ngOnInit(){this.hackathonResponseGroup.data_form_entity_id&&this.dataFormEntityResponsesService.getExistingResponse(this.hackathonResponseGroup.data_form_entity_id).subscribe(n=>{this.existingResponses=n.existing_responses,this.existingResponses.length>0&&(this.selectedFormResponse=this.existingResponses[this.existingResponses.length-1])})}submitForm(n){this.submitFormEvent.emit(n)}static{this.\u0275fac=function(i){return new(i||e)(t.rXU(ft.l))}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["commudle-public-hackathon-custom-questions-form"]],inputs:{hackathonResponseGroup:"hackathonResponseGroup"},outputs:{submitFormEvent:"submitFormEvent"},standalone:!1,decls:1,vars:2,consts:[[3,"formSubmitted","dataFormId","existingResponses"]],template:function(i,o){1&i&&(t.j41(0,"app-data-form-fill",0),t.bIt("formSubmitted",function(c){return o.submitForm(c)}),t.k0s()),2&i&&t.Y8G("dataFormId",o.hackathonResponseGroup.data_form_id)("existingResponses",o.selectedFormResponse)},dependencies:[ga.z],encapsulation:2})}}return e})();const pa=["stepper"],ua=["formConfirmationDialog"],ha=["formClosedDialog"],ba=["createTeamConfirmDialog"],Ca=(e,a)=>["/communities",e,"hackathons",a];function fa(e,a){1&e&&(t.j41(0,"div",10),t.nrm(1,"commudle-loading-spinner"),t.k0s())}function Pa(e,a){if(1&e&&(t.qex(0),t.j41(1,"a",19),t.nrm(2,"fa-icon",20),t.k0s(),t.bVm()),2&e){const n=t.XpG(3);t.R7$(),t.Y8G("href",n.contactInfo.website,t.B4B),t.R7$(),t.Y8G("icon",n.icons.faGlobe)}}function Ma(e,a){if(1&e&&(t.qex(0),t.j41(1,"a",19),t.nrm(2,"fa-icon",20),t.k0s(),t.bVm()),2&e){const n=t.XpG(3);t.R7$(),t.Y8G("href",n.contactInfo.facebook,t.B4B),t.R7$(),t.Y8G("icon",n.icons.faFacebookF)}}function Oa(e,a){if(1&e&&(t.qex(0),t.j41(1,"a",19),t.nrm(2,"fa-icon",20),t.k0s(),t.bVm()),2&e){const n=t.XpG(3);t.R7$(),t.Y8G("href",n.contactInfo.twitter,t.B4B),t.R7$(),t.Y8G("icon",n.icons.faTwitter)}}function ka(e,a){if(1&e&&(t.qex(0),t.j41(1,"a",19),t.nrm(2,"fa-icon",20),t.k0s(),t.bVm()),2&e){const n=t.XpG(3);t.R7$(),t.Y8G("href",n.contactInfo.github,t.B4B),t.R7$(),t.Y8G("icon",n.icons.faGithub)}}function va(e,a){if(1&e&&(t.qex(0),t.j41(1,"a",19),t.nrm(2,"fa-icon",20),t.k0s(),t.bVm()),2&e){const n=t.XpG(3);t.R7$(),t.Y8G("href",n.contactInfo.linkedIn,t.B4B),t.R7$(),t.Y8G("icon",n.icons.faLinkedinIn)}}function wa(e,a){if(1&e&&(t.j41(0,"div",17),t.DNE(1,Pa,3,2,"ng-container",18)(2,Ma,3,2,"ng-container",18)(3,Oa,3,2,"ng-container",18)(4,ka,3,2,"ng-container",18)(5,va,3,2,"ng-container",18),t.k0s()),2&e){const n=t.XpG(2);t.R7$(),t.Y8G("ngIf",n.contactInfo.website),t.R7$(),t.Y8G("ngIf",n.contactInfo.facebook),t.R7$(),t.Y8G("ngIf",n.contactInfo.twitter),t.R7$(),t.Y8G("ngIf",n.contactInfo.github),t.R7$(),t.Y8G("ngIf",n.contactInfo.linkedIn)}}function ya(e,a){if(1&e&&(t.j41(0,"com-card",11)(1,"com-card-body",12)(2,"div",13)(3,"h1",14),t.EFF(4),t.k0s(),t.j41(5,"div"),t.nrm(6,"app-community-badge",15),t.k0s()(),t.DNE(7,wa,6,5,"div",16),t.k0s()()),2&e){const n=t.XpG();t.R7$(4),t.SpI(" ",n.hackathon.name," "),t.R7$(2),t.Y8G("community",n.community),t.R7$(),t.Y8G("ngIf",n.contactInfo)}}function xa(e,a){1&e&&t.nrm(0,"commudle-alert",25)(1,"br"),2&e&&t.Y8G("info",!0)}function Ra(e,a){1&e&&(t.j41(0,"span",34),t.EFF(1,"Team Lead"),t.k0s())}function Ta(e,a){if(1&e&&(t.j41(0,"span",36),t.EFF(1),t.k0s()),2&e){const n=t.XpG().ngIf,i=t.XpG(3);t.AVh("status-invited",n.invite_status===i.EInvitationStatus.INVITED)("status-rejected",n.invite_status===i.EInvitationStatus.REJECTED),t.R7$(),t.SpI(" ",n.invite_status===i.EInvitationStatus.INVITED?"Invite Pending":"Invite Declined"," ")}}function Fa(e,a){if(1&e&&(t.qex(0),t.DNE(1,Ta,2,5,"span",35),t.bVm()),2&e){const n=a.ngIf,i=t.XpG(3);t.R7$(),t.Y8G("ngIf",n.invite_status===i.EInvitationStatus.INVITED||n.invite_status===i.EInvitationStatus.REJECTED)}}function Da(e,a){if(1&e){const n=t.RV6();t.j41(0,"div",26),t.bIt("click",function(){let o;const r=t.eBV(n),c=r.$implicit,p=r.index,h=t.XpG(2);return t.Njj((null==(o=h.getCurrentUserHur(c))?null:o.invite_status)!==h.EInvitationStatus.INVITED&&(null==(o=h.getCurrentUserHur(c))?null:o.invite_status)!==h.EInvitationStatus.REJECTED&&h.switchTeamIndex({value:p}))}),t.j41(1,"div",27)(2,"span",28),t.EFF(3),t.k0s(),t.DNE(4,Ra,2,0,"span",29),t.k0s(),t.j41(5,"span",30),t.EFF(6),t.k0s(),t.j41(7,"div",31)(8,"span",32),t.EFF(9,"Team:"),t.k0s(),t.j41(10,"span",33),t.EFF(11),t.nI1(12,"capitalizeAndRemoveUnderscore"),t.k0s(),t.DNE(13,Fa,2,1,"ng-container",18),t.k0s()()}if(2&e){let n,i;const o=a.$implicit,r=a.index,c=t.XpG(2);t.AVh("team-card-selected",c.selectedTeamIndex===r)("team-card-disabled",(null==(n=c.getCurrentUserHur(o))?null:n.invite_status)===c.EInvitationStatus.INVITED||(null==(n=c.getCurrentUserHur(o))?null:n.invite_status)===c.EInvitationStatus.REJECTED),t.R7$(3),t.JRh(o.hackathon_team.name),t.R7$(),t.Y8G("ngIf",null==(i=c.getCurrentUserHur(o))?null:i.current_user_is_team_lead),t.R7$(2),t.SpI("",o.hackathon_user_responses.length," member(s)"),t.R7$(5),t.JRh(t.bMT(12,9,o.hackathon_team.registration_status)),t.R7$(2),t.Y8G("ngIf",c.getCurrentUserHur(o))}}function ja(e,a){if(1&e){const n=t.RV6();t.j41(0,"div",37),t.bIt("click",function(){t.eBV(n);const o=t.XpG(2);return t.Njj(o.createNewTeam())}),t.nrm(1,"nb-icon",38),t.j41(2,"span",28),t.EFF(3,"Create New Team"),t.k0s()()}}function Ga(e,a){if(1&e&&(t.j41(0,"com-card",11)(1,"com-card-body")(2,"div",21),t.DNE(3,xa,2,1),t.j41(4,"div",22),t.DNE(5,Da,14,11,"div",23)(6,ja,4,0,"div",24),t.k0s()()()()),2&e){const n=t.XpG();t.R7$(3),t.vxM(n.hackathonUserResponsesByTeam.length>1?3:-1),t.R7$(2),t.Y8G("ngForOf",n.hackathonUserResponsesByTeam),t.R7$(),t.vxM(n.hasOwnTeam?-1:6)}}function Ea(e,a){if(1&e){const n=t.RV6();t.j41(0,"nb-step",45)(1,"commudle-public-hackathon-teammate-form",46),t.bIt("submitTeammateDetailsEvent",function(o){t.eBV(n);const r=t.XpG(2);return t.Njj(r.submitTeammateDetails(o))})("previousButtonEvent",function(){t.eBV(n);const o=t.XpG(2);return t.Njj(o.previousStepper())}),t.k0s()()}if(2&e){const n=t.XpG(2);t.R7$(),t.Y8G("hackathonUserResponse",n.hackathonUserResponse)("hasTeammateOption",n.hasTeammateOption)("hackathonResponseGroup",n.hackathonResponseGroup)("hackathon",n.hackathon)}}function Sa(e,a){1&e&&t.nrm(0,"commudle-loading-spinner")}function $a(e,a){if(1&e){const n=t.RV6();t.j41(0,"div")(1,"commudle-public-hackathon-project-details-form",48),t.bIt("createOrUpdateProjectDetails",function(o){t.eBV(n);const r=t.XpG(3);return t.Njj(r.submitProjectDetails(o))})("previousButtonEvent",function(){t.eBV(n);const o=t.XpG(3);return t.Njj(o.previousStepper())}),t.k0s()()}if(2&e){const n=t.XpG(3);t.R7$(),t.Y8G("hackathon",n.hackathon)("hackathonUserResponse",n.hackathonUserResponse)("team",n.selectedTeam)("submitButtonText",n.hackathonResponseGroup.data_form_entity_id?"Next":"Submit")}}function Ia(e,a){if(1&e&&(t.j41(0,"nb-step",47),t.DNE(1,Sa,1,0,"commudle-loading-spinner",18)(2,$a,2,4,"div",18),t.k0s()),2&e){const n=t.XpG(2);t.R7$(),t.Y8G("ngIf",n.isLoading),t.R7$(),t.Y8G("ngIf",!n.isLoading&&n.hackathon)}}function za(e,a){1&e&&t.nrm(0,"commudle-loading-spinner")}function Ha(e,a){if(1&e){const n=t.RV6();t.j41(0,"div")(1,"commudle-public-hackathon-custom-questions-form",50),t.bIt("submitFormEvent",function(o){t.eBV(n);const r=t.XpG(3);return t.Njj(r.submitFormData(o))}),t.k0s()()}if(2&e){const n=t.XpG(3);t.R7$(),t.Y8G("hackathonResponseGroup",n.hackathonResponseGroup)}}function Ya(e,a){if(1&e&&(t.j41(0,"nb-step",49),t.DNE(1,za,1,0,"commudle-loading-spinner",18)(2,Ha,2,1,"div",18),t.k0s()),2&e){const n=t.XpG(2);t.R7$(),t.Y8G("ngIf",n.isLoading),t.R7$(),t.Y8G("ngIf",!n.isLoading)}}function Ba(e,a){if(1&e){const n=t.RV6();t.j41(0,"com-card",11)(1,"com-card-body")(2,"nb-stepper",39,3)(4,"nb-step",40)(5,"commudle-user-details-form",41),t.bIt("submitUserDetailsEvent",function(o){t.eBV(n);const r=t.XpG();return t.Njj(r.updateUserDetails(o))}),t.k0s()(),t.DNE(6,Ea,2,4,"nb-step",42)(7,Ia,3,2,"nb-step",43)(8,Ya,3,2,"nb-step",44),t.k0s()()()}if(2&e){let n;const i=t.XpG();t.R7$(2),t.Y8G("linear",!0),t.R7$(3),t.Y8G("userFormDetails",i.hackathonResponseGroup.user_details)("hackathonUserResponse",i.hackathonUserResponse)("isSubmitting",i.isUserDetailsSubmitting)("submitButtonText",i.hackathonResponseGroup.filled_by_only_team_lead&&
1!i.current_user_is_team_lead?"Submit":"Next"),t.R7$(),t.Y8G("ngIf",!i.hackathonResponseGroup.filled_by_only_team_lead||i.current_user_is_team_lead),t.R7$(),t.Y8G("ngIf",(null===(n=i.hackathonResponseGroup.allow_track_problem_statement_selection)||void 0===n||n)&&(!i.hackathonResponseGroup.filled_by_only_team_lead||i.current_user_is_team_lead)),t.R7$(),t.Y8G("ngIf",i.hackathonResponseGroup.data_form_entity_id&&(!i.hackathonResponseGroup.filled_by_only_team_lead||i.current_user_is_team_lead))}}function Xa(e,a){if(1&e&&(t.j41(0,"div",55),t.nrm(1,"commudle-user-profile",56)(2,"commudle-userprofile-details",59),t.k0s()),2&e){const n=t.XpG(2);t.R7$(),t.Y8G("currentUser",n.currentUser),t.R7$(),t.Y8G("userProfileDetails",n.userProfileDetails)("username",n.currentUser.username)("showLowerCardUserDetails",!1)("completeProfileText","Complete your profile to boost your chances of getting shortlisted")}}function Ua(e,a){if(1&e&&(t.j41(0,"p")(1,"a",60)(2,"p"),t.EFF(3,"Go to Hackathon Page \xa0"),t.nrm(4,"fa-icon",20),t.k0s()()()),2&e){const n=t.XpG(2);t.R7$(),t.Y8G("routerLink",t.l_i(2,Ca,n.community.slug,n.hackathon.slug)),t.R7$(3),t.Y8G("icon",n.icons.faArrowRight)}}function Na(e,a){if(1&e&&(t.j41(0,"com-card",51)(1,"com-card-body")(2,"div")(3,"p",52),t.nrm(4,"nb-icon",53),t.k0s(),t.j41(5,"p",54),t.EFF(6),t.k0s(),t.j41(7,"div",55),t.nrm(8,"commudle-user-profile",56)(9,"commudle-userprofile-details",57),t.k0s(),t.DNE(10,Xa,3,5,"div",58),t.k0s()(),t.j41(11,"com-card-footer"),t.DNE(12,Ua,5,5,"p",18),t.k0s()()),2&e){const n=t.XpG();t.R7$(6),t.SpI("Thank You ",n.currentUser.name," for filling the form!"),t.R7$(2),t.Y8G("currentUser",n.currentUser),t.R7$(),t.Y8G("userProfileDetails",n.userProfileDetails)("username",n.currentUser.username)("completeProfileText","Complete your profile to boost your chances of getting shortlisted"),t.R7$(),t.Y8G("appBreakpoints","<=lg"),t.R7$(2),t.Y8G("ngIf",n.hackathon)}}function La(e,a){if(1&e){const n=t.RV6();t.j41(0,"com-card",61)(1,"com-card-body")(2,"div",62)(3,"p",63),t.nrm(4,"nb-icon",64),t.k0s(),t.j41(5,"h3"),t.EFF(6,"Application Closed"),t.k0s(),t.j41(7,"p"),t.EFF(8,"The application period for this hackathon has ended. You can no longer submit applications."),t.k0s(),t.j41(9,"p")(10,"strong"),t.EFF(11,"Application closed on:"),t.k0s(),t.EFF(12),t.nI1(13,"date"),t.k0s()()(),t.j41(14,"com-card-footer")(15,"button",65),t.bIt("click",function(){t.eBV(n);const o=t.XpG();return t.Njj(o.closeFormDialog())}),t.EFF(16,"Go to Hackathon Page"),t.k0s()()()}if(2&e){const n=t.XpG();t.R7$(12),t.SpI(" ",t.i5U(13,1,n.hackathon.application_end_date,"medium"),"")}}function Va(e,a){if(1&e&&(t.j41(0,"span",81),t.EFF(1),t.k0s()),2&e){const n=a.$implicit;t.R7$(),t.JRh(n)}}function Aa(e,a){if(1&e&&(t.j41(0,"div",77)(1,"p",78),t.EFF(2,"Invites that will be rejected:"),t.k0s(),t.j41(3,"div",79),t.DNE(4,Va,2,1,"span",80),t.k0s()()),2&e){const n=t.XpG(2);t.R7$(4),t.Y8G("ngForOf",n.pendingInviteTeamNames)}}function Ja(e,a){if(1&e){const n=t.RV6();t.j41(0,"com-card",66)(1,"com-card-header",67)(2,"span"),t.EFF(3,"Create New Team"),t.k0s(),t.j41(4,"button",68),t.bIt("click",function(){t.eBV(n);const o=t.XpG();return t.Njj(o.cancelCreateNewTeam())}),t.nrm(5,"nb-icon",69),t.k0s()(),t.j41(6,"com-card-body")(7,"div",62)(8,"p",63),t.nrm(9,"nb-icon",70),t.k0s(),t.j41(10,"h3",71),t.EFF(11,"Are you sure?"),t.k0s(),t.j41(12,"p",72),t.EFF(13," By creating your own team, all pending invitations from other teams will be "),t.j41(14,"strong"),t.EFF(15,"automatically rejected"),t.k0s(),t.EFF(16,". This action cannot be undone. "),t.k0s(),t.DNE(17,Aa,5,1,"div",73),t.k0s()(),t.j41(18,"com-card-footer",74)(19,"button",75),t.bIt("click",function(){t.eBV(n);const o=t.XpG();return t.Njj(o.cancelCreateNewTeam())}),t.EFF(20,"Cancel"),t.k0s(),t.j41(21,"button",76),t.bIt("click",function(){t.eBV(n);const o=t.XpG();return t.Njj(o.confirmCreateNewTeam())}),t.EFF(22,"Yes, Create My Team"),t.k0s()()()}if(2&e){const n=t.XpG();t.R7$(17),t.Y8G("ngIf",(null==n.pendingInviteTeamNames?null:n.pendingInviteTeamNames.length)>0)}}let Wa=(()=>{class e{constructor(n,i,o,r,c,p,h,M,j,Y,B,et,ot){this.hrgService=n,this.activatedRoute=i,this.hackathonService=o,this.hurService=r,this.toastrService=c,this.dataFormEntityResponsesService=p,this.authWatchService=h,this.appUsersService=M,this.dialogService=j,this.userProfileManagerService=Y,this.router=B,this.seoService=et,this.platformId=ot,this.subscriptions=[],this.selectedTeamIndex=0,this.isLoading=!0,this.hasTeammateOption=!1,this.isFormClosed=!1,this.icons={faLinkedinIn:P.B_4,faTwitter:P.H
1Q1,faFacebookF:P.Kjv,faGlobe:l.Bwz,faGithub:P.Vz1,faInfoCircle:l.iW_,faHashtag:l.CYF,faArrowRight:l.dmS},this.EInvitationStatus=u.zN,this.current_user_is_team_lead=!0,this.isUserDetailsSubmitting=!1,this.hasOwnTeam=!1,this.pendingInviteTeamNames=[],this.destroy$=new y.B,this.isBrowser=(0,A.UE)(this.platformId)}ngOnInit(){this.subscriptions.push(this.hrgService.pFetchHackathonResponseGroup(this.activatedRoute.snapshot.params.hackathon_response_group_id).subscribe(n=>{this.hackathonResponseGroup=n,this.fetchPreExistingFormResponse()}),this.activatedRoute.parent.data.subscribe(n=>{this.hackathon=n.hackathon,this.community=n.community,this.setSeo(),this.setStepTitle("Profile"),this.checkApplicationDates(),this.getContactInfo(),this.hackathon.participate_types===W.$d.TEAM&&(this.hasTeammateOption=!0)}),this.authWatchService.currentUser$.pipe((0,b.Q)(this.destroy$)).subscribe(n=>{this.currentUser=n,this.currentUser&&this.appUsersService.getProfileStats().subscribe(i=>{this.userProfileDetails=i})}))}ngOnDestroy(){this.subscriptions.forEach(n=>n.unsubscribe()),this.destroy$.next(),this.destroy$.complete(),this.dialogRef?.close()}checkApplicationDates(){new Date>new Date(this.hackathon.application_end_date)&&(this.isFormClosed=!0,this.showFormClosedDialog())}showFormClosedDialog(){this.isBrowser&&(this.dialogRef=this.dialogService.open(this.formClosedDialog,{closeOnBackdropClick:!1,closeOnEsc:!1}))}closeFormDialog(){this.dialogRef?.close(),this.router.navigate(["/communities",this.community.slug,"hackathons",this.hackathon.slug])}setSeo(){this.seoService.setTags(`Register for ${this.hackathon.name} | ${this.community.name}`,`Fill the registration form for ${this.hackathon.name} hackathon by ${this.community.name}`,this.hackathon?.banner_image?.url||"https://commudle.com/assets/images/commudle-logo192.png"),this.seoService.noIndex(!0)}setStepTitle(n){this.seoService.setTitle(`${n} - ${this.hackathon.name} | ${this.community.name}`)}getContactInfo(){this.subscriptions.push(this.hackathonService.showHackathonContactInfo(this.hackathon.id).subscribe(n=>{this.contactInfo=n}))}fetchPreExistingFormResponse(){this.hurService.getExistingHackathonUserResponses(this.hackathonResponseGroup.id).subscribe(n=>{n.length>0?(this.hackathonUserResponsesByTeam=n.filter(i=>null!=i.hackathon_team),this.hackathonUserResponsesWithoutTeam=n.filter(i=>null==i.hackathon_team),this.hackathonUserResponsesByTeam.length>0?(this.switchTeam(0),this.hasOwnTeam=this.hackathonUserResponsesByTeam.s
1ome(i=>i.hackathon_user_responses.some(o=>o.current_user_is_team_lead))):this.hackathonUserResponsesWithoutTeam.length>0&&(this.hackathonUserResponse=this.hackathonUserResponsesWithoutTeam[0].hackathon_user_responses[0]),this.isLoading=!1):this.isLoading=!1})}switchTeam(n){const i=this.hackathonUserResponsesByTeam[n];if(i?.hackathon_user_responses?.length){const o=i.hackathon_user_responses.find(r=>r.user_id===this.currentUser?.id);if(o?.invite_status===u.zN.REJECTED||o?.invite_status===u.zN.INVITED)return void(n<this.hackathonUserResponsesByTeam.length-1?this.switchTeam(n+1):(this.hackathonUserResponse=null,this.selectedTeamIndex=-1,this.selectedTeam=null,this.current_user_is_team_lead=!0));this.hackathonUserResponse=o||i.hackathon_user_responses[0],this.current_user_is_team_lead=this.hackathonUserResponse.current_user_is_team_lead,this.selectedTeamIndex=n,this.selectedTeam=i}}switchTeamIndex(n){this.switchTeam(n.value),this.resetStepper()}createNewTeam(){this.hackathonUserResponsesByTeam?.some(i=>{const o=this.getCurrentUserHur(i);return o&&!o.current_user_is_team_lead})?(this.pendingInviteTeamNames=this.hackathonUserResponsesByTeam?.filter(i=>{const o=this.getCurrentUserHur(i);return o&&!o.current_user_is_team_lead})?.map(i=>i.hackathon_team.name),this.dialogRef=this.dialogService.open(this.createTeamConfirmDialog,{closeOnBackdropClick:!1})):this.proceedCreateNewTeam()}confirmCreateNewTeam(){this.dialogRef?.close(),this.rejectAllPendingInvites()}cancelCreateNewTeam(){this.dialogRef?.close()}rejectAllPendingInvites(){const n=this.hackathonUserResponsesByTeam?.map(o=>this.getCurrentUserHur(o))?.filter(o=>o&&!o.current_user_is_team_lead);if(!n?.length)return void this.proceedCreateNewTeam();let i=0;n.forEach(o=>{this.hurService.respondToTeamInvite(o.id,"rejected").subscribe({next:()=>{i++,i===n.length&&this.proceedCreateNewTeam()},error:()=>{i++,i===n.length&&this.proceedCreateNewTeam()}})})}proceedCreateNewTeam(){const n=this.hackathonUserResponsesWithoutTeam?.flatMap(i=>i.hackathon_user_responses)?.find(i=>i.user_id===this.currentUser?.id);this.hackathonUserResponse=n||null,this.selectedTeamIndex=-1,this.selectedTeam=null,this.current_user_is_team_lead=!0,this.resetStepper()}resetStepper(){this.isLoading=!0,setTimeout(()=>{this.isLoading=!1,this.setStepTitle("Profile")})}getCurrentUserHur(n){return n.hackathon_user_responses?.find(i=>i.user_id===this.currentUser?.id)}updateUserDetails(n){this.isUserDetailsSubmitting=!0,this.userProfileManagerService.userProfileForm.patchValue({name:n.name?n.name:this.currentUser.name,about_me:n.about_me?n.about_me:this.currentUser.about_me,designation:n.designation?n.designation:this.currentUser.designation,location:n.location?n.location:this.currentUser.location,gender:n.gender?n.gender:this.currentUser.gender,personal_website:n.personal_website?n.personal_website:this.currentUser.personal_website,github:n.github?n.github:this.currentUser.github,linkedin:n.linkedin?n.linkedin:this.currentUser.linkedin,twitter:n.twitter?n.twitter:this.currentUser.twitter,dribbble:n.dribbble?n.dribbble:this.currentUser.dribbble,behance:n.behance?n.behance:this.currentUser.behance,medium:n.medium?n.medium:this.currentUser.medium,gitlab:n.gitlab?n.gitlab:this.currentUser.gitlab,facebook:n.facebook?n.facebook:this.currentUser.facebook,youtube:n.youtube?n.youtube:this.currentUser.youtube,phone:n.phone?n.phone:this.currentUser.phone,instagram:n.instagram?n.instagram:this.currentUser.instagram,experience_level:n.experience_level?n.experience_level:this.currentUser.experience_level,user_domain:n.user_domain?n.user_domain:this.currentUser.user_domain}),this.userProfileManagerService.updateUserDetails(!1,this.currentUser),this.UpdateOrSubmitResponse(n)}UpdateOrSubmitResponse(n){this.hackathonService.pCheckParentMember(this.hackathon.id).subscribe({next:i=>{i?this.hackathonUserResponse?this.updateUserResponse(n):this.submitUserResponse(n):this.openConsentDialogBox(n)},error:()=>this.isUserDetailsSubmitting=!1})}submitUserResponse(n){this.hurService.createHackathonResponseGroup(n,this.hackathonResponseGroup.id).subscribe({next:i=>{this.hackathonUserResponse=i,this.hackathonResponseGroup.filled_by_only_team_lead&&
1!this.current_user_is_team_lead?(this.toastrService.successDialog("Details has been saved"),this.hurService.updateHurStatusComplete(this.hackathonUserResponse.id).subscribe(),this.router.navigate(["submitted"],{relativeTo:this.activatedRoute}),this.isUserDetailsSubmitting=!1):(this.stepper.next(),this.setStepTitle("Team Details"),this.isUserDetailsSubmitting=!1)},error:()=>this.isUserDetailsSubmitting=!1})}updateUserResponse(n){this.hurService.updateHackathonResponseGroup(n,this.hackathonUserResponse.id).subscribe({next:i=>{this.hackathonUserResponse=i,this.hackathonResponseGroup.filled_by_only_team_lead&&!this.current_user_is_team_lead?(this.toastrService.successDialog("Details has been saved"),this.hurService.updateHurStatusComplete(this.hackathonUserResponse.id).subscribe(),this.router.navigate(["submitted"],{relativeTo:this.activatedRoute}),this.isUserDetailsSubmitting=!1):(this.stepper.next(),this.setStepTitle("Team Details"),this.isUserDetailsSubmitting=!1)},error:()=>this.isUserDetailsSubmitting=!1})}submitTeammateDetails(n){this.hurService.updateTeamDetails(n,this.hackathonUserResponse.id).subscribe(i=>{i&&(this.hackathonResponseGroup.allow_track_problem_statement_selection??1?(this.stepper.next(),this.setStepTitle("Select Track & Problem Statement")):this.hackathonResponseGroup.data_form_entity_id?(this.stepper.next(),this.setStepTitle("More Details")):(this.toastrService.successDialog("Details has been saved"),this.hurService.updateHurStatusComplete(this.hackathonUserResponse.id).subscribe(),this.dialogRef=this.dialogService.open(V),this.router.navigate(["submitted"],{relativeTo:this.activatedRoute})))})}submitProjectDetails(n){this.hurService.updateProjectDetails(n,this.hackathonUserResponse.id).subscribe(i=>{i&&(this.hackathonResponseGroup.data_form_entity_id?(this.stepper.next(),this.setStepTitle("More Details")):(this.toastrService.successDialog("Details has been saved"),this.hurService.updateHurStatusComplete(this.hackathonUserResponse.id).subscribe(),this.dialogRef=this.dialogService.open(V),this.router.navigate(["submitted"],{relativeTo:this.activatedRoute})))})}submitFormData(n){this.dataFormEntityResponsesService.submitDataFormEntityResponse(this.hackathonResponseGroup.data_form_entity_id,n).subscribe(i=>{i&&(this.toastrService.successDialog("Details has been saved"),this.hurService.updateHurStatusComplete(this.hackathonUserResponse.id).subscribe(),this.dialogRef=this.dialogService.open(V),this.router.navigate(["submitted"],{relativeTo:this.activatedRoute}))})}previousStepper(){this.stepper.previous(),this.setStepTitle(["Profile","Team Details","Select Track & Problem Statement","More Details"][this.stepper.selectedIndex]||"Profile")}openConsentDialogBox(n){const i=this.dialogService.open(wi.e,{context:{consentType:vi.Lg.HACKATHON_REGISTRATION}});i.componentRef.instance.consentOutput.subscribe(o=>{i.close(),"rejected"!==o?this.hackathonUserResponse?this.updateUserResponse(n):this.submitUserResponse(n):this.isUserDetailsSubmitting=!1})}static{this.\u0275fac=function(i){return new(i||e)(t.rXU(F.$),t.rXU(C.nX),t.rXU(O.$),t.rXU(Z.K),t.rXU(_.tw),t.rXU(ft.l),t.rXU(U.E),t.rXU(ki.p),t.rXU(g.S0W),t.rXU(yi.L),t.rXU(C.Ix),t.rXU(_.B2),t.rXU(t.Agw))}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["commudle-public-hackathon-form"]],viewQuery:function(i,o){if(1&i&&(t.GBs(pa,5),t.GBs(ua,7),t.GBs(ha,7),t.GBs(ba,7)),2&i){let r;t.mGM(r=t.lsd())&&(o.stepper=r.first),t.mGM(r=t.lsd())&&(o.formConfirmationDialog=r.first),t.mGM(r=t.lsd())&&(o.formClosedDialog=r.first),t.mGM(r=t.lsd())&&(o.createTeamConfirmDialog=r.first)}},standalone:!1,decls:14,vars:4,consts:[["formConfirmationDialog",""],["formClosedDialog",""],["createTeamConfirmDialog",""],["stepper",""],[1,"base-layout"],[1,"container"],["class","spinner",4,"ngIf"],[1,"two-column-layout"],[1,"main-column"],["class","details-card",4,"ngIf"],[1,"spinner"],[1,"details-card"],[1,"details-section"],[1,"details"],[1,"hackathon-name"],[3,"community"],["class","social-links",4,"ngIf"],[1,"social-links"],[4,"ngIf"],[3,"href"],[3,"icon"],[1,"team-selection"],[1,"team-cards"],["class","team-card",3,"team-card-selected","team-card-disabled","click",4,"ngFor","ngForOf"],[1,"team-card","team-card-new"],["message","Select the team for which you want to fill the form",3,"info"],[1,"team-card",3,"click"],[1,"team-card-header"],[1,"team-card-name"],["class","team-card-lead-badge",4,"ngIf"],[1,"team-card-members"],[1,"team-card-footer"],[1,"team-card-status-label"],[1,"team-card-status"],[1,"team-card-lead-badge"],["class","team-card-invite-status",3,"status-invited","status-rejected",4,"ngIf"],[1,"team-card-invite-status"],[1,"team-card","team-card-new",3,"click"],["icon","plus"],["orientation","horizontal","disableStepNavigation","",3,"linear"],["label","Profile"],[3,"submitUserDetailsEvent","userFormDetails","hackathonUserResponse","isSubmitting","submitButtonText"],["label","Team Details",4,"ngIf"],["label","Project Details",4,"ngIf"],["label","More details",4,"ngIf"],["label","Team Details"],[3,"submitTeammateDetailsEvent","previousButtonEvent","hackathonUserResponse","hasTeammateOption","hackathonResponseGroup","hackathon"],["label","Project Details"],[3,"createOrUpdateProjectDetails","previousButtonEvent","hackathon","hackathonUserResponse","team","submitButtonText"],["label","More details"],[3,"submitFormEvent","hackathonResponseGroup"],[1,"confirmation-dialog"],[1,"thank-you-icon"],["icon","done-all","status","success"],[1,"thank-you-text"],[1,"user"],[3,"currentUser"],[3,"userProfileDetails","username","completeProfileText"],["class","user",4,"appBreakpoints"],[3,"userProfileDetails","username","showLowerCardUserDetails","completeProfileText"],[3,"routerLink"],[1,"form-closed-dialog"],[1,"dialog-content"],[1,"icon"],["icon","close-circle","status","danger"],["nbButton","","status","primary",3,"click"],[1,"create-team-confirm-dialog"],[1,"com-flex","com-justify-between","com-items-center"],["ghost","","nbButton","","size","small","shape","round",3,"click"],["icon","close"],["icon","alert-triangle-outline","status","warning"],[1,"dialog-title"],[1,"dialog-message"],["class","affected-teams",4,"ngIf"],[1,"com-flex","com-justify-end","com-gap-3"],["nbButton","","ghost","",3,"click"],["nbButton","","status","danger",3,"click"],[1,"affected-teams"],[1,"affected-label"],[1,"team-list"],["class","team-chip",4,"ngFor","ngForOf"],[1,"team-chip"]],template:function(i,o){1&i&&(t.j41(0,"div",4)(1,"div",5),t.DNE(2,fa,2,0,"div",6),t.j41(3,"div",7)(4,"div",8),t.DNE(5,ya,8,3,"com-card",9)(6,Ga,7,3,"com-card",9)(7,Ba,9,8,"com-card",9),t.k0s()()()(),t.DNE(8,Na,13,7,"ng-template",null,0,t.C5r)(10,La,17,4,"ng-template",null,1,t.C5r)(12,Ja,23,1,"ng-template",null,2,t.C5r)),2&i&&(t.R7$(2),t.Y8G("ngIf",o.isLoading),t.R7$(3),t.Y8G("ngIf",!o.isLoading),t.R7$(),t.Y8G("ngIf",o.hackathonUserResponsesByTeam&&o.hackathonUserResponsesByTeam.length>0),t.R7$(),t.Y8G("ngIf",!o.isLoading))},dependencies:[m.Sq,m.bT,f.Wk,g.YP2,g.RCE,g.oYO,g.tHu,k.aY,st.O,G.C,Xi.X,R.N,v.v,x.W,w.H,E.k,X.S,tt.W,nt.O,Mt,Ot,_a,m.vh,Q.I],styles:[".spinner[_ngcontent-%COMP%]{display:flex;min-height:50dvh;align-items:center;justify-content:center}.details-card[_ngcontent-%COMP%]{margin:1rem .5rem;display:flex}.details-card[_ngcontent-%COMP%] .details-section[_ngcontent-%COMP%]{flex-direction:row;align-items:center;justify-content:space-between;padding-top:0;padding-bottom:0}.details-card[_ngcontent-%COMP%] .details-section[_ngcontent-%COMP%] .details[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem}.details-card[_ngcontent-%COMP%] .details-section[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .hackathon-name[_ng
1content-%COMP%]{font-size:2.25rem;line-height:2.5rem;font-weight:700;color:var(--color-yankees-blue)}.details-card[_ngcontent-%COMP%] .social-links[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1.5rem}.details-card[_ngcontent-%COMP%] .social-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:grid;height:2.25rem;width:2.25rem;align-items:center;justify-content:center;border-radius:.5rem;border-width:1px;border-style:solid;border-color:var(--color-bright-gray);font-size:1.25rem;line-height:1.75rem;--tw-text-opacity: 1;color:rgb(51 102 255 / var(--tw-text-opacity, 1))}.details-card[_ngcontent-%COMP%] .social-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}nb-stepper[_ngcontent-%COMP%] .step-content{padding-left:0;padding-right:0}.confirmation-dialog[_ngcontent-%COMP%]{margin:0;height:100%;width:auto}@media (min-width: 768px){.confirmation-dialog[_ngcontent-%COMP%]{width:25dvw}}.confirmation-dialog[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%]{padding:0;text-align:center}.confirmation-dialog[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .thank-you-icon[_ngcontent-%COMP%]{margin:0}.confirmation-dialog[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .thank-you-icon[_ngcontent-%COMP%] nb-icon[_ngcontent-%COMP%]{font-size:100px}.confirmation-dialog[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .thank-you-text[_ngcontent-%COMP%]{margin-top:0}.confirmation-dialog[_ngcontent-%COMP%] com-card-footer[_ngcontent-%COMP%]{display:flex}.confirmation-dialog[_ngcontent-%COMP%] com-card-footer[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-weight:500}.confirmation-dialog[_ngcontent-%COMP%] com-card-footer[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}.team-selection[_ngcontent-%COMP%]{display:flex;flex-direction:column}.team-selection[_ngcontent-%COMP%] .team-cards[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(1,minmax(0,1fr));gap:1rem}@media (min-width: 640px){.team-selection[_ngcontent-%COMP%] .team-cards[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width: 1024px){.team-selection[_ngcontent-%COMP%] .team-cards[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}}.team-selection[_ngcontent-%COMP%] .team-cards[_ngcontent-%COMP%] .team-card[_ngcontent-%COMP%]{display:flex;cursor:pointer;flex-direction:column;gap:.5rem;border-radius:.5rem;border-width:1px;border-style:solid;border-color:var(--color-bright-gray);padding:1rem;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.team-selection[_ngcontent-%COMP%] .team-cards[_ngcontent-%COMP%] .team-card[_ngcontent-%COMP%]:hover{--tw-border-opacity: 1;border-color:rgb(51 102 255 / var(--tw-border-opacity, 1));--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);
1--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.team-selection[_ngcontent-%COMP%] .team-cards[_ngcontent-%COMP%] .team-card[_ngcontent-%COMP%] .team-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.team-selection[_ngcontent-%COMP%] .team-cards[_ngcontent-%COMP%] .team-card[_ngcontent-%COMP%] .team-card-name[_ngcontent-%COMP%]{font-weight:600;color:var(--color-yankees-blue)}.team-selection[_ngcontent-%COMP%] .team-cards[_ngcontent-%COMP%] .team-card[_ngcontent-%COMP%] .team-card-lead-badge[_ngcontent-%COMP%]{border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(214 224 255 / var(--tw-bg-opacity, 1));padding:.125rem .5rem;font-size:.75rem;line-height:1rem;font-weight:500;--tw-text-opacity: 1;color:rgb(31 61 153 / var(--tw-text-opacity, 1))}.team-selection[_ngcontent-%COMP%] .team-cards[_ngcontent-%COMP%] .team-card[_ngcontent-%COMP%] .team-card-members[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem;color:var(--color-gray-500)}.team-selection[_ngcontent-%COMP%] .team-cards[_ngcontent-%COMP%] .team-card[_ngcontent-%COMP%] .team-card-footer[_ngcontent-%COMP%]{margin-top:.25rem;display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}.team-selection[_ngcontent-%COMP%] .team-cards[_ngcontent-%COMP%] .team-card[_ngcontent-%COMP%] .team-card-status-label[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.team-selection[_ngcontent-%COMP%] .team-cards[_ngcontent-%COMP%] .team-card[_ngcontent-%COMP%] .team-card-status[_ngcontent-%COMP%]{border-radius:9999px;background-color:var(--color-gray-100);padding:.125rem .5rem;font-size:.75rem;line-height:1rem;font-weight:500;color:var(--color-gray-600)}.team-selection[_ngcontent-%COMP%] .team-cards[_ngcontent-%COMP%] .team-card[_ngcontent-%COMP%] .team-card-invite-status[_ngcontent-%COMP%]{border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1));padding:.125rem .5rem;font-size:.75rem;line-height:1rem;font-weight:500;--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}.team-selection[_ngcontent-%COMP%] .team-cards[_ngcontent-%COMP%] .team-card[_ngcontent-%COMP%] .status-invited[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(255 237 213 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(194 65 12 / var(--tw-text-opacity, 1))}.team-selection[_ngcontent-%COMP%] .team-cards[_ngcontent-%COMP%] .team-card[_ngcontent-%COMP%] .status-rejected[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity, 1))}.team-selection[_ngcontent-%COMP%] .team-cards[_ngcontent-%COMP%] .team-card-disabled[_ngcontent-%COMP%]{pointer-events:none;cursor:not-allowed;opacity:.5}.team-selection[_ngcontent-%COMP%] .team-cards[_ngcontent-%COMP%] .team-card-disabled[_ngcontent-%COMP%]:hover{border-color:var(--color-bright-gray);--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-sha
1dow)}.team-selection[_ngcontent-%COMP%] .team-cards[_ngcontent-%COMP%] .team-card-selected[_ngcontent-%COMP%]{--tw-border-opacity: 1;border-color:rgb(51 102 255 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(214 224 255 / var(--tw-bg-opacity, 1))}.team-selection[_ngcontent-%COMP%] .team-cards[_ngcontent-%COMP%] .team-card-selected[_ngcontent-%COMP%] .team-card-name[_ngcontent-%COMP%], .team-selection[_ngcontent-%COMP%] .team-cards[_ngcontent-%COMP%] .team-card-selected[_ngcontent-%COMP%] .team-card-members[_ngcontent-%COMP%]{color:var(--color-tyankees-blue)}.team-selection[_ngcontent-%COMP%] .team-cards[_ngcontent-%COMP%] .team-card-new[_ngcontent-%COMP%]{align-items:center;justify-content:center;border-style:dashed;--tw-text-opacity: 1;color:rgb(51 102 255 / var(--tw-text-opacity, 1))}.team-selection[_ngcontent-%COMP%] .team-cards[_ngcontent-%COMP%] .team-card-new[_ngcontent-%COMP%] nb-icon[_ngcontent-%COMP%]{font-size:1.5rem;line-height:2rem}.form-closed-dialog[_ngcontent-%COMP%]{margin:0;width:auto;max-width:28rem}.form-closed-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{padding-top:1rem;padding-bottom:1rem;text-align:center}.form-closed-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{margin:0;margin-bottom:1rem}.form-closed-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] nb-icon[_ngcontent-%COMP%]{font-size:3.75rem;line-height:1}.form-closed-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.25rem;line-height:1.75rem;font-weight:700;--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.form-closed-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:.5rem;color:var(--color-gray-600)}.form-closed-dialog[_ngcontent-%COMP%] com-card-footer[_ngcontent-%COMP%]{text-align:center}.create-team-confirm-dialog[_ngcontent-%COMP%]{margin:0;width:auto;max-width:28rem}.create-team-confirm-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{padding-top:.5rem;padding-bottom:.5rem;text-align:center}.create-team-confirm-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .warning-icon[_ngcontent-%COMP%]{margin-bottom:1rem}.create-team-confirm-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .warning-icon[_ngcontent-%COMP%] nb-icon[_ngcontent-%COMP%]{font-size:3.75rem;line-height:1}.create-team-confirm-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .dialog-title[_ngcontent-%COMP%]{margin-bottom:.75rem;font-size:1.25rem;line-height:1.75rem;font-weight:700;color:var(--color-yankees-blue)}.create-team-confirm-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .dialog-message[_ngcontent-%COMP%]{margin-bottom:1rem;line-height:1.625;color:var(--color-gray-600)}.create-team-confirm-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .affected-teams[_ngcontent-%COMP%]{margin-top:1rem;border-radius:.5rem;background-color:var(--color-gray-50);padding:1rem;text-align:left}.create-team-confirm-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .affected-teams[_ngcontent-%COMP%] .affected-label[_ngcontent-%COMP%]{margin-bottom:.5rem;font-size:.875rem;line-height:1.25rem;font-weight:500;color:var(--color-gray-500)}.create-team-confirm-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .affected-teams[_ngcontent-%COMP%] .team-list[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.5rem}.create-team-confirm-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .affected-teams[_ngcontent-%COMP%] .team-list[_ngcontent-%COMP%] .team-chip[_ngcontent-%COMP%]{border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(255 237 213 / var(--tw-bg-opacity, 1));padding:.25rem .75rem;font-size:.875rem;line-height:1.25rem;font-weight:500;--tw-text-opacity: 1;color:rgb(194 65 12 / var(--tw-text-opacity, 1))}"]})}}return e})();var kt=s(68142);function Qa(e,a){if(1&e&&(t.j41(0,"div",11)(1,"div",20),t.nrm(2,"fa-icon",21),t.j41(3,"div",22)(4,"p",23),t.EFF(5,"Current File:"),t.k0s(),t.j41(6,"p",24),t.EFF(7),t.k0s()()(),t.j41(8,"a",25),t.nrm(9,"fa-icon",10),t.EFF(10," View "),t.k0s()()),2&e){const n=t.XpG();t.R7$(2),t.Y8G("icon",n.icons.faFile),t.R7$(4),t.Y8G("title",n.existingSubmission.file_attachment.name),t.R7$(),t.SpI(" ",n.existingSubmission.file_attachment.name," "),t.R7$(),t.Y8G("href",n.existingSubmission.file_attachment.url,t.B4B),t.R7$(),t.Y8G("icon",n.icons.faExternalLink)}}function qa(e,a){if(1&e&&(t.j41(0,"div",11)(1,"div",20),t.nrm(2,"fa-icon",21),t.j41(3,"div",22)(4,"p",23),t.EFF(5,"Current Link:"),t.k0s(),t.j41(6,"p",24),t.EFF(7),t.k0s()()(),t.j41(8,"a",26),t.nrm(9,"fa-icon",10),t.EFF(10," Open "),t.k0s()()),2&e){const n=t.XpG();t.R7$(2),t.Y8G("icon",n.icons.faLink),t.R7$(4),t.Y8G("title",n.existingSubmission.link),t.R7$(),t.SpI(" ",n.existingSubmission.link," "),t.R7$(),t.Y8G("href",n.existingSubmission.link,t.B4B),t.R7$(),t.Y8G("icon",n.icons.faExternalLink)}}function Ka(e,a){if(1&e&&(t.j41(0,"div",29),t.nrm(1,"fa-icon",31),t.j41(2,"p",32),t.EFF(3),t.k0s(),t.j41(4,"p",33),t.EFF(5,"PPT, PPTX, PDF (max 10MB)"),t.k0s()()),2&e){const n=t.XpG(2);t.R7$(),t.Y8G("icon",n.icons.faUpload),t.R7$(2),t.SpI(" ",n.existingSubmission?"Upload new file (optional)":"Click to upload or drag and drop"," ")}}function Za(e,a){if(1&e&&(t.j41(0,"div",30),t.nrm(1,"fa-icon",34),t.j41(2,"div",35)(3,"p",36),t.EFF(4),t.k0s(),t.j41(5,"p",37),t.EFF(6),t.k0s()()()),2&e){const n=t.XpG(2);t.R7$(),t.Y8G("icon",n.icons.faFile),t.R7$(3),t.JRh(n.selectedFile.name),t.R7$(2),t.SpI("",(n.selectedFile.size/1024/1024).toFixed(2)," MB")}
1}function tr(e,a){if(1&e){const n=t.RV6();t.j41(0,"div",27),t.bIt("click",function(){t.eBV(n);const o=t.sdS(2);return t.Njj(o.click())}),t.j41(1,"input",28,0),t.bIt("change",function(o){t.eBV(n);const r=t.XpG();return t.Njj(r.onFileSelected(o))}),t.k0s(),t.DNE(3,Ka,6,2,"div",29)(4,Za,7,3,"div",30),t.k0s()}if(2&e){const n=t.XpG();t.AVh("has-file",n.selectedFile),t.R7$(3),t.vxM(n.selectedFile?4:3)}}function nr(e,a){1&e&&t.nrm(0,"commudle-alert",42),2&e&&t.Y8G("error",!0)}function er(e,a){if(1&e&&(t.j41(0,"div",13)(1,"label",38),t.EFF(2,"Submission Link"),t.k0s(),t.nrm(3,"input",39),t.DNE(4,nr,1,1,"commudle-alert",40),t.j41(5,"p",41),t.EFF(6,"Provide a link to your submission (e.g., Google Drive, GitHub, Figma, etc.)"),t.k0s()()),2&e){const n=t.XpG();t.R7$(4),t.Y8G("ngIf",n.uploadForm.get("link").invalid&&n.uploadForm.get("link").touched)}}function or(e,a){1&e&&(t.nrm(0,"nb-icon",43),t.EFF(1," Submitting... "))}function ir(e,a){if(1&e&&t.EFF(0),2&e){const n=t.XpG();t.SpI(" ",n.existingSubmission?"Update":"Submit"," ")}}let ar=(()=>{class e{constructor(n,i,o,r,c){this.fb=n,this.dialogRef=i,this.submissionService=o,this.toasterService=r,this.pdfXssValidationService=c,this.selectedFile=null,this.isUploading=!1,this.submissionMode="file",this.destroy$=new y.B,this.icons={faUpload:l.JmV,faFile:l.A4h,faXmark:l.Jyw,faExternalLink:l.vMs,faLink:l.CQO},this.uploadForm=this.fb.group({comments:[""],link:["",[d.k0.pattern(/^https?:\/\/.+/)]]})}ngOnInit(){this.existingSubmission&&(this.uploadForm.patchValue({comments:this.existingSubmission.comments||"",link:this.existingSubmission.link||""}),this.existingSubmission.link&&(this.submissionMode="link"))}switchMode(n){this.submissionMode=n,"link"===n?this.selectedFile=null:this.uploadForm.patchValue({link:""})}onFileSelected(n){const i=n.target.files[0];if(i){if(!["application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pdf"].includes(i.type))return void this.toasterService.warningDialog("Invalid file type. Please upload .ppt, .pptx, or .pdf files only.");if(i.size>10485760)return void this.toasterService.warningDialog("File size exceeds 10MB. Please upload a smaller file.");this.pdfXssValidationService.checkPdfFileForXss(i).then(c=>{if(!c)return this.toasterService.warningDialog("File contains unsafe content, you can't upload this file"),n.target.value="",void(this.selectedFile=null);const p=new FileReader;p.onload=()=>{this.selectedFile=i},p.readAsDataURL(i)})}}isSubmitDisabled(){return!!this.isUploading||("file"===this.submissionMode?!this.existingSubmission&&!this.selectedFile:!this.uploadForm.get("link")?.value?.trim()||this.uploadForm.get("link").invalid)}onSubmit(){if("link"===this.submissionMode){const o=this.uploadForm.get("link")?.value?.trim();if(!this.existingSubmission&&!o)return void this.toasterService.warningDialog("Please provide a link.");if(this.uploadForm.get("link").invalid)return void this.uploadForm.get("link").markAsTouched()}this.isUploading=!0;const n=new FormData;"file"===this.submissionMode&&this.selectedFile&&n.append("file",this.selectedFile),n.append("hackathon_team_round_submission[comments]",this.uploadForm.get("comments")?.value||""),n.append("hackathon_team_round_submission[link]","link"===this.submissionMode&&this.uploadForm.get("link")?.value||""),(this.existingSubmission?this.submissionService.updateSubmission(n,this.existingSubmission.id):this.submissionService.createSubmission(n,this.teamId,this.round.id)).subscribe({next:o=>{this.isUploading=!1,this.dialogRef.close(o)},error:o=>{console.error("Error submitting:",o),this.isUploading=!1}})}close(){this.dialogRef.close()}static{this.\u0275fac=function(i){return new(i||e)(t.rXU(d.ok),t.rXU(g.ybQ),t.rXU(_.YV),t.rXU(_.tw),t.rXU(kt.$r))}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["commudle-ppt-upload-dialog"]],inputs:{round:"round",teamId:"teamId",existingSubmission:"existingSubmission"},standalone:!1,decls:33,vars:15,consts:[["fileInput",""],[1,"upload-dialog"],[1,"header-content"],[1,"dialog-title"],["nbButton","","ghost","","size","small","shape","round",1,"close-button",3,"click"],["icon","close"],[1,"round-name"],[3,"formGroup"],[1,"mode-toggle"],["type","button",1,"mode-button",3,"click"],[3,"icon"],[1,"existing-file"],[1,"upload-area",3,"has-file"],[1,"link-section"],[1,"comments-section"],[1,"comments-label"],["nbInput","","fullWidth","","placeholder","Add any comments about your submission...","formControlName","comments","rows","3"],[1,"dialog-actions"],["nbButton","","ghost","",3,"click"],["nbButton","","status","primary",3,"click","disabled"],[1,"existing-file-header"],[1,"existing-file-icon",3,"icon"],[1,"existing-file-info"],[1,"existing-label"],[1,"existing-file-name",3,"title"],["target","_blank",1,"existing-link",3,"href"],["target","_blank","rel","noopener noreferrer",1,"existing-link",3,"href"],[1,"upload-area",3,"click"],["type","file","accept",".ppt,.pptx,.pdf",1,"file-input",3,"change"],[1,"upload-placeholder"],[1,"file-selected"],[1,"upload-icon",3,"icon"],[1,"upload-text"],[1,"upload-hint"],[1,"file-icon",3,"icon"],[1,"file-details"],[1,"file-name"],[1,"file-size"],[1,"link-label"],["nbInput","","fullWidth","","type","url","placeholder","https://example.com/your-submission","formControlName","link"],["errorMessage","Please enter a valid URL starting with http:// or https://",3,"error",4,"ngIf"],[1,"link-hint"],["errorMessage","Please enter a valid URL starting with http:// or https://",3,"error"],["icon","loader-outline",1,"spinning"]],template:function(i,o){1&i&&(t.j41(0,"com-card",1)(1,"com-card-header")(2,"div",2)(3,"h4",3),t.EFF(4),t.k0s(),t.j41(5,"button",4),t.bIt("click",function(){return o.close()}),t.nrm(6,"nb-icon",5),t.k0s()(),t.j41(7,"p",6),t.EFF(8),t.k0s()(),t.j41(9,"com-card-body")(10,"form",7)(11,"div",8)(12,"button",9),t.bIt("click",function(){return o.switchMode("file")}),t.nrm(13,"fa-icon",10),t.EFF(14," Upload File "),t.k0s(),t.j41(15,"button",9),t.bIt("click",function(){return o.switchMode("link")}),t.nrm(16,"fa-icon",10),t.EFF(17," Add Link "),t.k0s()(),t.DNE(18,Qa,11,5,"div",11)(19,qa,11,5,"div",11)(20,tr,5,3,"div",12)(21,er,7,1,"div",13),t.j41(22,"div",14)(23,"label",15),t.EFF(24,"Comments (Optional)"),t.k0s(),t.nrm(25,"textarea",16),t.k0s()()(),t.j41(26,"com-card-footer")(27,"div",17)(28,"button",18),t.bIt("click",function(){return o.close()}),t.EFF(29,"Cancel"),t.k0s(),t.j41(30,"button",19),t.bIt("click",function(){return o.onSubmit()}),t.DNE(31,or,2,0)(32,ir,1,1),t.k0s()()()()),2&i&&(t.R7$(4),t.SpI("",o.existingSubmission?"Update":"Submit"," Submission"),t.R7$(4),t.JRh(o.round.name),t.R7$(2),t.Y8G("formGroup",o.uploadForm),t.R7$(2),t.AVh("active","file"===o.submissionMode),t.R7$(),t.Y8G("icon",o.icons.faUpload),t.R7$(2),t.AVh("active","link"===o.submissionMode),t.R7$(),t.Y8G("icon",o.icons.faLink),t.R7$(2),t.vxM(null!=o.existingSubmission&&o.existingSubmission.file_attachment&&"file"===o.submissionMode?18:-1),t.R7$(),t.vxM(null!=o.existingSubmission&&o.existingSubmission.link&&"link"===o.submissionMode?19:-1),t.R7$(),t.vxM("file"===o.submissionMode?20:-1),t.R7$(),t.vxM("link"===o.submissionMode?21:-1),t.R7$(9),t.Y8G("disabled",o.isSubmitDisabled()),t.R7$(),t.vxM(o.isUploading?31:32))},dependencies:[m.bT,d.qT,d.me,d.BC,d.cb,d.j4,d.JD,g.YP2,g.i6h,g.tHu,k.aY,G.C,v.v,x.W,w.H,E.k],styles:[".upload-dialog[_ngcontent-%COMP%]{margin-left:0;margin-right:0;width:100dvw}@media (min-width: 768px){.upload-dialog[_ngcontent-%COMP%]{width:630px}}.upload-dialog[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%]{margin-bottom:.5rem;display:flex;align-items:center;justify-content:space-between}.upload-dialog[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .dialog-title[_ngcontent-%COMP%]{margin:0;font-size:24px;font-weight:600;color:var(--color-yankees-blue)}.upload-dialog[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]{flex-shrink:0}
1.upload-dialog[_ngcontent-%COMP%] .round-name[_ngcontent-%COMP%]{margin:0;font-size:14px;color:var(--color-gray-500)}.upload-dialog[_ngcontent-%COMP%] .mode-toggle[_ngcontent-%COMP%]{margin-bottom:1rem;display:flex;gap:.5rem;border-radius:.5rem;background-color:var(--color-gray-100);padding:.25rem}.upload-dialog[_ngcontent-%COMP%] .mode-toggle[_ngcontent-%COMP%] .mode-button[_ngcontent-%COMP%]{display:flex;flex:1 1 0%;align-items:center;justify-content:center;gap:.5rem;border-radius:.375rem;padding:.5rem 1rem;font-size:14px;font-weight:500;cursor:pointer;border-style:none;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s;background-color:transparent;color:var(--color-gray-600)}.upload-dialog[_ngcontent-%COMP%] .mode-toggle[_ngcontent-%COMP%] .mode-button[_ngcontent-%COMP%]:hover{color:var(--color-yankees-blue)}.upload-dialog[_ngcontent-%COMP%] .mode-toggle[_ngcontent-%COMP%] .mode-button.active[_ngcontent-%COMP%]{background-color:var(--color-white);--tw-text-opacity: 1;color:rgb(51 102 255 / var(--tw-text-opacity, 1));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);
1--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.upload-dialog[_ngcontent-%COMP%] .existing-file[_ngcontent-%COMP%]{margin-bottom:1rem;display:flex;align-items:center;justify-content:space-between;border-radius:.5rem;background-color:var(--color-alice-blue);padding:1rem}.upload-dialog[_ngcontent-%COMP%] .existing-file[_ngcontent-%COMP%] .existing-file-header[_ngcontent-%COMP%]{display:flex;min-width:0px;flex:1 1 0%;align-items:center;gap:.75rem}.upload-dialog[_ngcontent-%COMP%] .existing-file[_ngcontent-%COMP%] .existing-file-header[_ngcontent-%COMP%] .existing-file-icon[_ngcontent-%COMP%]{flex-shrink:0;font-size:1.25rem;line-height:1.75rem;--tw-text-opacity: 1;color:rgb(51 102 255 / var(--tw-text-opacity, 1))}.upload-dialog[_ngcontent-%COMP%] .existing-file[_ngcontent-%COMP%] .existing-file-header[_ngcontent-%COMP%] .existing-file-info[_ngcontent-%COMP%]{display:flex;min-width:0px;flex-direction:column}.upload-dialog[_ngcontent-%COMP%] .existing-file[_ngcontent-%COMP%] .existing-file-header[_ngcontent-%COMP%] .existing-file-info[_ngcontent-%COMP%] .existing-label[_ngcontent-%COMP%]{margin:0;font-size:12px;color:var(--color-gray-500)}.upload-dialog[_ngcontent-%COMP%] .existing-file[_ngcontent-%COMP%] .existing-file-header[_ngcontent-%COMP%] .existing-file-info[_ngcontent-%COMP%] .existing-file-name[_ngcontent-%COMP%]{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:500;color:var(--color-yankees-blue)}.upload-dialog[_ngcontent-%COMP%] .existing-file[_ngcontent-%COMP%] .existing-link[_ngcontent-%COMP%]{display:flex;flex-shrink:0;align-items:center;gap:.5rem;font-size:14px;--tw-text-opacity: 1;color:rgb(51 102 255 / var(--tw-text-opacity, 1))}.upload-dialog[_ngcontent-%COMP%] .existing-file[_ngcontent-%COMP%] .existing-link[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(41 82 204 / var(--tw-text-opacity, 1))}.upload-dialog[_ngcontent-%COMP%] .upload-area[_ngcontent-%COMP%]{cursor:pointer;border-radius:.5rem;border-width:2px;border-style:dashed;border-color:var(--color-gray-100);padding:1.5rem;background-color:var(--color-anti-flash-white);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.upload-dialog[_ngcontent-%COMP%] .upload-area[_ngcontent-%COMP%]:hover{--tw-border-opacity: 1;border-color:rgb(51 102 255 / var(--tw-border-opacity, 1))}@media (min-width: 768px){.upload-dialog[_ngcontent-%COMP%] .upload-area[_ngcontent-%COMP%]{padding:2rem}}.upload-dialog[_ngcontent-%COMP%] .upload-area.has-file[_ngcontent-%COMP%]{border-style:solid;--tw-border-opacity: 1;border-color:rgb(51 102 255 / var(--tw-border-opacity, 1));background-color:var(--color-alice-blue)}.upload-dialog[_ngcontent-%COMP%] .upload-area[_ngcontent-%COMP%] .file-input[_ngcontent-%COMP%]{display:none}.upload-dialog[_ngcontent-%COMP%] .upload-area[_ngcontent-%COMP%] .upload-placeholder[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:.75rem}.upload-dialog[_ngcontent-%COMP%] .upload-area[_ngcontent-%COMP%] .upload-placeholder[_ngcontent-%COMP%] .upload-icon[_ngcontent-%COMP%]{font-size:2.25rem;line-height:2.5rem;--tw-text-opacity: 1;color:rgb(51 102 255 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.upload-dialog[_ngcontent-%COMP%] .upload-area[_ngcontent-%COMP%] .upload-placeholder[_ngcontent-%COMP%] .upload-icon[_ngcontent-%COMP%]{font-size:3rem;line-height:1}}.upload-dialog[_ngcontent-%COMP%] .upload-area[_ngcontent-%COMP%] .upload-placeholder[_ngcontent-%COMP%] .upload-text[_ngcontent-%COMP%]{margin:0;text-align:center;font-size:16px;font-weight:500;color:var(--color-yankees-blue)}.upload-dialog[_ngcontent-%COMP%] .upload-area[_ngcontent-%COMP%] .upload-placeholder[_ngcontent-%COMP%] .upload-hint[_ngcontent-%COMP%]{margin:0;font-size:12px;color:var(--color-gray-500)}.upload-dialog[_ngcontent-%COMP%] .upload-area[_ngcontent-%COMP%] .file-selected[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem}.upload-dialog[_ngcontent-%COMP%] .upload-area[_ngcontent-%COMP%] .file-selected[_ngcontent-%COMP%] .file-icon[_ngcontent-%COMP%]{flex-shrink:0;font-size:1.5rem;line-height:2rem;--tw-text-opacity: 1;color:rgb(51 102 255 / var(--tw-text-opacity, 1))}.upload-dialog[_ngcontent-%COMP%] .upload-area[_ngcontent-%COMP%] .file-selected[_ngcontent-%COMP%] .file-details[_ngcontent-%COMP%]{display:flex;min-width:0px;flex-direction:column}.upload-dialog[_ngcontent-%COMP%] .upload-area[_ngcontent-%COMP%] .file-selected[_ngcontent-%COMP%] .file-details[_ngcontent-%COMP%] .file-name[_ng
1content-%COMP%]{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:500;color:var(--color-yankees-blue)}.upload-dialog[_ngcontent-%COMP%] .upload-area[_ngcontent-%COMP%] .file-selected[_ngcontent-%COMP%] .file-details[_ngcontent-%COMP%] .file-size[_ngcontent-%COMP%]{margin:0;font-size:12px;color:var(--color-gray-500)}.upload-dialog[_ngcontent-%COMP%] .link-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.upload-dialog[_ngcontent-%COMP%] .link-section[_ngcontent-%COMP%] .link-label[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:var(--color-yankees-blue)}.upload-dialog[_ngcontent-%COMP%] .link-section[_ngcontent-%COMP%] .link-hint[_ngcontent-%COMP%]{margin:0;font-size:12px;color:var(--color-gray-500)}.upload-dialog[_ngcontent-%COMP%] .comments-section[_ngcontent-%COMP%]{margin-top:1rem;display:flex;flex-direction:column;gap:.5rem}.upload-dialog[_ngcontent-%COMP%] .comments-section[_ngcontent-%COMP%] .comments-label[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:var(--color-yankees-blue)}.upload-dialog[_ngcontent-%COMP%] .dialog-actions[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;gap:.75rem;flex-direction:column-reverse}@media (min-width: 768px){.upload-dialog[_ngcontent-%COMP%] .dialog-actions[_ngcontent-%COMP%]{flex-direction:row}}.upload-dialog[_ngcontent-%COMP%] .dialog-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}@media (min-width: 768px){.upload-dialog[_ngcontent-%COMP%] .dialog-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:auto}}@keyframes _ngcontent-%COMP%_com-spin{to{transform:rotate(360deg)}}.upload-dialog[_ngcontent-%COMP%] .dialog-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .spinning[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_com-spin var(--tw-animate-duration, 1s) var(--tw-animate-easing, linear) var(--tw-animate-delay, 0s) var(--tw-animate-iteration, infinite) var(--tw-animate-fill, none)}"]})}}return e})();var vt=s(46668),rr=s(92209),cr=s(81230);let sr=(()=>{class e{constructor(n){this.sanitizer=n}transform(n){return this.sanitizer.bypassSecurityTrustHtml((n||"").replace(/([^\S]|^)(((https?\:\/\/)|(www\.))(\S+))/gi,this.matchText).replace(/@(\w+)/g,'<a href="/users/$1">@$1</a>'))}matchText(n,i,o){let r=o;return r.match("^https?://")||(r="http://"+r),i+'<a target="_blank" href="'+r+'">'+o+"</a>"}static{this.\u0275fac=function(i){return new(i||e)(t.rXU(cr.up,16))}}static{this.\u0275pipe=t.EJ8({name:"textToLinks",type:e,pure:!0,standalone:!1})}}return e})();const lr=["descriptionSpan"],mr=["bookSlotDialog"],dr=["confirmDialog"],gr=(e,a,n,i)=>({"round-completed":e,"round-current":a,"round-upcoming":n,"round-live":i}),wt=e=>["/builds",e,"edit"],yt=()=>["/builds/create"],xt=e=>({parent_type:"HackathonTeam",parent_id:e}),_r=e=>["/users",e];function pr(e,a){1&e&&(t.j41(0,"span",22),t.nrm(1,"nb-icon",23),t.EFF(2," Elimination Round "),t.k0s())}function ur(e,a){if(1&e&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&e){const n=t.XpG(2);t.R7$(),t.SpI(" -> ",n.moment(n.round.end_date).format("MMM DD, YYYY, hh:mm A"),"")}}function hr(e,a){if(1&e&&(t.j41(0,"div",24),t.EFF(1),t.DNE(2,ur,2,1,"span"),t.k0s()),2&e){const n=t.XpG();t.R7$(),t.SpI(" ",n.moment(n.round.date).format("MMM DD, YYYY, hh:mm A")," "),t.R7$(),t.vxM(n.round.end_date?2:-1)}}function br(e,a){if(1&e){const n=t.RV6();t.j41(0,"button",28),t.bIt("click",function(){t.eBV(n);const o=t.XpG(2);return t.Njj(o.toggleDescription())}),t.EFF(1),t.k0s()}if(2&e){const n=t.XpG(2);t.R7$(),t.SpI(" ",n.isDescriptionExpanded?"Show less":"Read more"," ")}}function Cr(e,a){if(1&e&&(t.j41(0,"div",25),t.nrm(1,"span",26,2),t.nI1(3,"textToLinks"),t.DNE(4,br,2,1,"button",27),t.k0s()),2&e){const n=t.XpG();t.R7$(),t.AVh("expanded",n.isDescriptionExpanded||(null==n.userTeamDetails||null==n.userTeamDetails.round?null:n.userTeamDetails.round.id)===n.round.id),t.Y8G("innerHTML",t.bMT(3,4,n.round.description),t.npT),t.R7$(3),t.Y8G("ngIf",n.isDescriptionTruncated&&(null==n.userTeamDetails||null==n.userTeamDetails.round?null:n.userTeamDetails.round.id)!==n.round.id)}}function fr(e,a){1&e&&(t.j41(0,"div",29),t.EFF(1,"Live"),t.k0s())}function Pr(e,a){1&e&&(t.j41(0,"div",30),t.EFF(1,"\u{1f449} You are here"),t.k0s())}function Mr(e,a){1&e&&(t.j41(0,"div",31),t.EFF(1,"\u2713"),t.k0s())}function Or(e,a){1&e&&(t.j41(0,"div",32),t.EFF(1," Upcoming "),t.k0s())}function kr(e,a){if(1&e&&(t.j41(0,"a",34),t.EFF(1," View PPT "),t.k0s()),2&e){const n=t.XpG(3);t.Y8G("href",n.getRoundSubmission().file_attachment.url,t.B4B)}}function vr(e,a){if(1&e&&(t.j41(0,"a",34),t.EFF(1," View Link "),t.k0s()),2&e){const n=t.XpG(3);t.Y8G("href",n.getRoundSubmission().link,t.B4B)}}function wr(e,a){if(1&e){const n=t.RV6();t.DNE(0,kr,2,1,"a",34)(1,vr,2,1,"a",34),t.j41(2,"button",35),t.bIt("click",function(){t.eBV(n);const o=t.XpG(2);return t.Njj(o.openPPTUploadDialog())}),t.EFF(3),t.k0s()}if(2&e){let n;const i=t.XpG(2);t.vxM(null!=(n=i.getRoundSubmission())&&n.file_attachment?0:null!=(n=i.getRoundSubmission())&&n.link?1:-1),t.R7$(2),t.Y8G("disabled",!i.isLive),t.R7$(),t.SpI(" ",i.getRoundSubmission()?"Update Submission":"Submit"," ")}}function yr(e,a){if(1&e&&(t.j41(0,"a",36),t.EFF(1," Submit Project "),t.k0s()),2&e){const n=t.XpG(2);t.AVh("disabled",!n.isLive),t.Y8G("routerLink",n.userTeamDetails.community_build?t.eq3(4,wt,n.userTeamDetails.community_build.slug):t.lJ4(6,yt))("queryParams",t.eq3(7,xt,n.userTeamDetails.id))}}function xr(e,a){if(1&e&&(t.j41(0,"a",36),t.EFF(1," Submit Update "),t.k0s()),2&e){const n=t.XpG(2);t.AVh("disabled",!n.isLive),t.Y8G("routerLink",n.userTeamDetails.community_build?t.eq3(4,wt,n.userTeamDetails.community_build.slug):t.lJ4(6,yt))("queryParams",t.eq3(7,xt,n.userTeamDetails.id))}}function Rr(e,a){if(1&e&&(t.j41(0,"div",20),t.DNE(1,wr,4,3)(2,yr,2,9,"a",33)(3,xr,2,9,"a",33),t.k0s()),2&e){const n=t.XpG();t.R7$(),t.vxM(n.round.round_type===n.ERoundType.PPT_SUBMISSION?1:n.round.round_type===n.ERoundType.PROJECT_SUB
1MISSION||n.round.round_type===n.ERoundType.FINAL_JUDGING?2:n.round.round_type===n.ERoundType.PROJECT_UPDATE_SUBMISSION?3:-1)}}function Tr(e,a){if(1&e&&t.nrm(0,"img",47),2&e){const n=t.XpG().$implicit;t.Y8G("src",n.photo.url,t.B4B)("alt",n.name)("username",null==n?null:n.username)}}function Fr(e,a){if(1&e){const n=t.RV6();t.j41(0,"app-user-follow",48),t.bIt("click",function(o){return t.eBV(n),o.stopPropagation(),t.Njj(o.preventDefault())}),t.k0s()}if(2&e){const n=t.XpG().$implicit;t.Y8G("username",n.username)("name",n.name)("userId",n.judge_user_id)("isMobileWidthFull",!1)}}function Dr(e,a){if(1&e){const n=t.RV6();t.j41(0,"a",54),t.bIt("click",function(o){return t.eBV(n),t.Njj(o.stopPropagation())}),t.nrm(1,"nb-icon",55),t.EFF(2," Join Meeting "),t.k0s()}if(2&e){const n=t.XpG(3).$implicit,i=t.XpG(2);t.Y8G("href",i.mentorSlotsByMentor.get(n.id)[0].hackathon_judge.meeting_location,t.B4B)}}function jr(e,a){if(1&e&&(t.j41(0,"span",53),t.nrm(1,"nb-icon",56),t.EFF(2),t.k0s()),2&e){const n=t.XpG(3).$implicit,i=t.XpG(2);t.R7$(2),t.SpI(" ",i.mentorSlotsByMentor.get(n.id)[0].hackathon_judge.meeting_location," ")}}function Gr(e,a){if(1&e&&t.DNE(0,Dr,3,1,"a",52)(1,jr,3,1,"span",53),2&e){const n=t.XpG(2).$implicit,i=t.XpG(2);t.vxM(i.mentorSlotsByMentor.get(n.id)[0].hackathon_judge.meeting_location.startsWith("http://")||i.mentorSlotsByMentor.get(n.id)[0].hackathon_judge.meeting_location.startsWith("https://")?0:1)}}function Er(e,a){if(1&e&&(t.j41(0,"div",45)(1,"div"),t.nrm(2,"nb-icon",49),t.j41(3,"span"),t.EFF(4),t.k0s()(),t.j41(5,"commudle-alert",50)(6,"div",51),t.EFF(7,"In case you want to change the slot, please contact the admin team"),t.k0s()(),t.DNE(8,Gr,2,1),t.k0s()),2&e){let n;const i=t.XpG().$implicit,o=t.XpG(2);t.R7$(4),t.Lme(" ",o.moment(o.bookedSlotByMentor.get(i.id).starts_at).format("MMM DD, hh:mm A")," - ",o.moment(o.bookedSlotByMentor.get(i.id).ends_at).format("hh:mm A")," "),t.R7$(),t.Y8G("info",!0),t.R7$(3),t.vxM(null!=(n=o.mentorSlotsByMentor.get(i.id))&&null!=n[0]&&null!=n[0].hackathon_judge&&n[0].hackathon_judge.meeting_location?8:-1)}}function Sr(e,a){if(1&e){const n=t.RV6();t.j41(0,"button",57),t.bIt("click",function(o){t.eBV(n);const r=t.XpG().$implicit,c=t.XpG(2);return o.stopPropagation(),o.preventDefault(),t.Njj(c.openBookSlotDialog(r.id))}),t.EFF(1," Book Slot "),t.k0s()}}function $r(e,a){if(1&e&&(t.j41(0,"a",39),t.DNE(1,Tr,1,3,"img",40),t.j41(2,"div",41)(3,"div",42),t.EFF(4),t.k0s(),t.j41(5,"div",43),t.EFF(6),t.nI1(7,"titlecase"),t.k0s()(),t.DNE(8,Fr,1,4,"app-user-follow",44)(9,Er,9,4,"div",45)(10,Sr,2,0,"button",46),t.k0s()),2&e){let n;const i=a.$implicit,o=t.XpG(2);t.Y8G("routerLink",t.eq3(9,_r,null==i?null:i.username)),t.R7$(),t.Y8G("ngIf",null==i.photo?null:i.photo.url),t.R7$(),t.Y8G("username",null==i?null:i.username),t.R7$(2),t.JRh(i.name),t.R7$(2),t.JRh(t.bMT(7,7,i.judge_type)),t.R7$(2),t.vxM(null!=i&&i.username?8:-1),t.R7$(),t.vxM(o.bookedSlotByMentor.get(i.id)?9:(null==(n=o.mentorSlotsByMentor.get(i.id))?null:n.length)>0&&null!=o.round.round_mentor_slot_rule&&o.round.round_mentor_slot_rule.booking_open&&(null!=o.round.round_mentor_slot_rule&&o.round.round_mentor_slot_rule.teams_choose_slots||null==o.round.round_mentor_slot_rule||!o.round.round_mentor_slot_rule.only_admin_assigns_teams)?10:-1)}}function Ir(e,a){if(1&e&&(t.j41(0,"div",37),t.DNE(1,$r,11,11,"a",38),t.k0s()),2&e){const n=t.XpG();t.R7$(),t.Y8G("ngForOf",n.roundEvaluators)}}function zr(e,a){if(1&e){const n=t.RV6();t.j41(0,"div",67),t.bIt("click",function(){const o=t.eBV(n).$implicit,r=t.XpG
1(2).dialogRef,c=t.XpG();return t.Njj(c.bookSlot(o.id,r))}),t.EFF(1),t.k0s()}if(2&e){const n=a.$implicit,i=t.XpG(3);t.R7$(),t.Lme(" ",i.moment(n.starts_at).format("MMM DD, YYYY hh:mm A")," - ",i.moment(n.ends_at).format("hh:mm A")," ")}}function Hr(e,a){if(1&e&&t.DNE(0,zr,2,2,"div",66),2&e){const n=t.XpG(2);t.Y8G("ngForOf",n.selectedMentorSlots)}}function Yr(e,a){1&e&&(t.j41(0,"p",65),t.EFF(1,"No slots available yet!"),t.k0s())}function Br(e,a){if(1&e){const n=t.RV6();t.j41(0,"com-card",58)(1,"com-card-header")(2,"span"),t.EFF(3,"Book Mentor Slot"),t.k0s(),t.j41(4,"button",59),t.bIt("click",function(){const o=t.eBV(n).dialogRef;return t.Njj(o.close())}),t.nrm(5,"nb-icon",60),t.k0s()(),t.j41(6,"com-card-body",61),t.nrm(7,"commudle-alert",62),t.j41(8,"div",63),t.DNE(9,Hr,1,1,"div",64)(10,Yr,2,0,"p",65),t.k0s()()()}if(2&e){const n=t.XpG();t.R7$(7),t.Y8G("info",!0),t.R7$(2),t.vxM(n.selectedMentorSlots.length>0?9:10)}}function Xr(e,a){if(1&e){const n=t.RV6();t.j41(0,"com-card")(1,"com-card-header"),t.EFF(2,"Confirm Slot Booking"),t.k0s(),t.j41(3,"com-card-body")(4,"p"),t.EFF(5,"Are you sure? Once the slot is booked, it cannot be changed."),t.k0s()(),t.j41(6,"com-card-footer",68)(7,"button",69),t.bIt("click",function(){const o=t.eBV(n).dialogRef;return t.Njj(o.close(!0))}),t.EFF(8,"Confirm"),t.k0s(),t.j41(9,"button",70),t.bIt("click",function(){const o=t.eBV(n).dialogRef;return t.Njj(o.close(!1))}),t.EFF(10,"Cancel"),t.k0s()()()}}let Ur=(()=>{class e{constructor(n,i,o,r){this.dialogService=n,this.roundMentorSlotService=i,this.roundMentorSlotBookingService=o,this.toastrService=r,this.isDescriptionExpanded=!1,this.isDescriptionTruncated=!1,this.moment=T(),this.roundEvaluators=[],this.mentorSlotsByMentor=new Map,this.bookedSlotByMentor=new Map,this.selectedMentorSlots=[],this.EHackathonRegistrationStatus=u.AY,this.ERoundType=u.Yf}ngOnInit(){this.isRoundCompleted(),this.isUpcomingRound(),this.isRoundLive(),this.loadRoundEvaluators()}getRoundSubmission(){return this.userTeamDetails?.hackathon_team_round_submissions?.find(n=>n.round.id===this.round.id)}loadRoundEvaluators(){this.userTeamDetails?.hackathon_team_round_scores&&(this.roundEvaluators=this.userTeamDetails.hackathon_team_round_scores.filter(n=>n.round_id===this.round.id).map(n=>n.evaluator).filter(n=>null!=n),this.roundEvaluators.forEach(n=>this.fetchSlots(n.id)))}fetchSlots(n){this.roundMentorSlotService.indexByRoundMentor(this.round.id,n).subscribe(i=>{this.mentorSlotsByMentor.set(n,i);const o=i.find(r=>r.round_mentor_slot_bookings?.some(c=>c.hackathon_team_id===this.userTeamDetails?.id));this.bookedSlotByMentor.set(n,o||null)})}isRoundCompleted(){this.isCompleted=!!this.round.end_date&&new Date(this.round.end_date)<new Date}isUpcomingRound(){this.isUpcoming=!!this.round.date&&new Date(this.round.date)>new Date}isRoundLive(){if(!this.round.date||!this.round.end_date)return void(this.isLive=!1);const n=new Date;this.isLive=new Date(this.round.date)<=n&&n<=new Date(this.round.end_date)}ngAfterViewInit(){this.checkIfTruncated()}checkIfTruncated(){if(this.descriptionSpan){const n=this.descriptionSpan.nativeElement;this.isDescriptionTruncated=n.scrollHeight>n.clientHeight}}toggleDescription(){this.isDescriptionExpanded=!this.isDescriptionExpanded}openPPTUploadDialog(){this.dialogService.open(ar,{context:{round:this.round,teamId:this.userTeamDetails.id,existingSubmission:this.getRoundSubmission()}}).onClose.subscribe(n=>{if(n){const i=this.userTeamDetails.hackathon_team_round_submissions.findIndex(o=>o.round.id===this.round.id);-1!==i?this.userTeamDetails.hackathon_team_round_submissions[i]=n:this.userTeamDetails.hackathon_team_round_submissions.push(n)}})}openBookSlotDialog(n){this.selectedMentorId=n;const i=T()().subtract(1,"hour");this.selectedMentorSlots=(this.mentorSlotsByMentor.get(n)||[]).filter(o=>o.status===u.pf.OPEN&&T()(o.ends_at).isAfter(i)),this.dialogService.open(this.bookSlotDialog)}bookSlot(n,i){this.dialogService.open(this.confirmDialog).onClose.subscribe(o=>{o&&this.roundMentorSlotBookingService.createBooking(this.userTeamDetails.id,n,this.selectedMentorId).subscribe({next:()=>{this.toastrService.successDialog("Slot booked successfully"),this.fetchSlots(this.selectedMentorId),i.close()},error:()=>{this.toastrService.errorDialog("Failed to book slot")}})})}static{this.\u0275fac=function(i){return new(i||e)(t.rXU(g.S0W),t.rXU(_.T1),t.rXU(_.Iv),t.rXU(_.tw))}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["commudle-hackathon-round-card"]],viewQuery:function(i,o){if(1&i&&(t.GBs(lr,5),t.GBs(mr,5),t.GBs(dr,5)),2&i){let r;t.mGM(r=t.lsd())&&(o.descriptionSpan=r.first),t.mGM(r=t.lsd())&&(o.bookSlotDialog=r.first),t.mGM(r=t.lsd())&&(o.confirmDialog=r.first)}}
vendor: 2,572 bytes, line 1
1,inputs:{round:"round",index:"index",userTeamDetails:"userTeamDetails"},standalone:!1,decls:26,vars:19,consts:[["bookSlotDialog",""],["confirmDialog",""],["descriptionSpan",""],[1,"round-item",3,"ngClass"],[1,"round-indicator"],[1,"round-number"],[1,"round-content-profile"],[1,"round-content-actions"],[1,"round-content"],[1,"round-name"],[1,"round-chips"],["class","elimination-chip",4,"ngIf"],["class","round-date",4,"ngIf"],["class","round-description",4,"ngIf"],[1,"actions"],[1,"round-status"],["class","status-live",4,"ngIf"],["class","status-current",4,"ngIf"],["class","status-completed",4,"ngIf"],["class","status-upcoming",4,"ngIf"],[1,"round-action"],["class","round-evaluators",4,"ngIf"],[1,"elimination-chip"],["icon","alert-triangle-outline"],[1,"round-date"],[1,"round-description"],[3,"innerHTML"],["class","read-more-btn",3,"click",4,"ngIf"],[1,"read-more-btn",3,"click"],[1,"status-live"],[1,"status-current"],[1,"status-completed"],[1,"status-upcoming"],["comButton","","status","primary","size","small","shape","semi-round",3,"routerLink","queryParams","disabled"],["target","_blank","rel","noopener noreferrer",1,"view-ppt-link",3,"href"],["comButton","","status","primary","size","small","shape","semi-round",3,"click","disabled"],["comButton","","status","primary","size","small","shape","semi-round",3,"routerLink","queryParams"],[1,"round-evaluators"],["class","evaluator-card",3,"routerLink",4,"ngFor","ngForOf"],[1,"evaluator-card",3,"routerLink"],["class","evaluator-avatar","appMiniUserProfile","",3,"src","alt","username",4,"ngIf"],["appMiniUserProfile","",1,"evaluator-info",3,"username"],[1,"evaluator-name"],[1,"evaluator-role"],[1,"follow-btn",3,"username","name","userId","isMobileWidthFull"],[1,"slot-booked"],["comButton","","size","tiny","status","primary","shape","semi-round"],["appMiniUserProfile","",1,"evaluator-avatar",3,"src","alt","username"],[1,"follow-btn",3,"click","username","name","userId","isMobileWidthFull"],["icon","calendar-outline"],[3,"info"],["infoContent",""],["target","_blank","rel","noopener noreferrer",1,"meeting-link",3,"href"],[1,"meeting-location-text"],["target","_blank","rel","noopener noreferrer",1,"meeting-link",3,"click","href"],["icon","video-outline"],["icon","pin-outline"],["comButton","","size","tiny","status","primary","shape","semi-round",3,"click"],[1,"book-slot-dialog-card"],["comButton","","size","small","shape","round","ghost","",3,"click"],["icon","close"],[1,"book-slot-dialog-body"],["message","Slot once booked cannot be changed.",3,"info"],[1,"slot-item"],[1,"slot-row"],[1,"n
1o-slots"],["class","slot-row",3,"click",4,"ngFor","ngForOf"],[1,"slot-row",3,"click"],[1,"footer-confirm-dialog"],["comButton","","status","primary","shape","semi-round",3,"click"],["comButton","","status","basic","shape","semi-round",3,"click"]],template:function(i,o){1&i&&(t.j41(0,"div",3)(1,"div",4)(2,"div",5),t.EFF(3),t.k0s()(),t.j41(4,"div",6)(5,"div",7)(6,"div",8)(7,"div",9),t.EFF(8),t.nI1(9,"titlecase"),t.k0s(),t.j41(10,"div",10),t.DNE(11,pr,3,0,"span",11),t.k0s(),t.DNE(12,hr,3,2,"div",12)(13,Cr,5,6,"div",13),t.k0s(),t.j41(14,"div",14)(15,"div",15),t.DNE(16,fr,2,0,"div",16)(17,Pr,2,0,"div",17)(18,Mr,2,0,"div",18)(19,Or,2,0,"div",19),t.k0s(),t.DNE(20,Rr,4,1,"div",20),t.k0s()(),t.DNE(21,Ir,2,1,"div",21),t.k0s()(),t.DNE(22,Br,11,2,"ng-template",null,0,t.C5r)(24,Xr,11,0,"ng-template",null,1,t.C5r)),2&i&&(t.Y8G("ngClass",t.ziG(14,gr,o.isCompleted,(null==o.userTeamDetails||null==o.userTeamDetails.round?null:o.userTeamDetails.round.id)===o.round.id,o.isUpcoming,o.isLive)),t.R7$(3),t.JRh(o.index+1),t.R7$(5),t.JRh(t.bMT(9,12,o.round.name)),t.R7$(3),t.Y8G("ngIf",o.round.is_elimination_round),t.R7$(),t.Y8G("ngIf",o.round.date),t.R7$(),t.Y8G("ngIf",o.round.description),t.R7$(3),t.Y8G("ngIf",o.isLive),t.R7$(),t.Y8G("ngIf",(null==o.userTeamDetails||null==o.userTeamDetails.round?null:o.userTeamDetails.round.id)===o.round.id),t.R7$(),t.Y8G("ngIf",o.isCompleted),t.R7$(),t.Y8G("ngIf",!o.isLive&&(null==o.userTeamDetails||null==o.userTeamDetails.round?null:o.userTeamDetails.round.id)!==o.round.id&&!o.isCompleted&&o.isUpcoming),t.R7$(),t.vxM((null==o.userTeamDetails||null==o.userTeamDetails.round?null:o.userTeamDetails.round.id)!==o.round.id||o.userTeamDetails.registration_status!==o.EHackathonRegistrationStatus.ACCEPTED||o.round.round_type!==o.ERoundType.PPT_SUBMISSION&&o.round.round_type!==o.ERoundType.PROJECT_SUBMISSION&&o.round.round_type!==o.ERoundType.PROJECT_UPDATE_SUBMISSION&&o.round.round_type!==o.ERoundType.FINAL_JUDGING?-1:20),t.R7$(),t.Y8G("ngIf",o.roundEvaluators.length>0))},dependencies:[m.YU,m.Sq,m.bT,f.Wk,g.tHu,G.C,vt.j,rr.C,$.L,v.v,x.W,w.H,E.k,D.G,m.PV,sr],styles:[".round-item[_ngcontent-%COMP%]{display:flex;align-items:flex-start;overflow:hidden;border-radius:.5rem;border-width:1px;border-style:solid;border-color:var(--color-bright-gray);background-color:var(--color-white);padding:.75rem;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.round-item.round-completed[_ngcontent-%COMP%]{--tw-border-opacity: 1;border-color:rgb(134 239 172 / var(--tw-border-opacity, 1));background-color:var(--color-gray-50)}.round-item.round-completed[_ngcontent-%COMP%] .round-indicator[_ngcontent-%COMP%] .round-number[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1));color:var(--color-white)}.round-item.round-completed[_ngcontent-%COMP%] .round-content[_ngcontent-%COMP%]{opacity:.7}.round-item.round-current[_ngcontent-%COMP%]{--tw-border-opacity: 1;border-color:rgb(51 102 255 / var(--tw-border-opacity, 1))}.round-item.round-current[_ngcontent-%COMP%] .round-indicator[_ngcontent-%COMP%] .round-number[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(51 102 255 / var(--tw-bg-opacity, 1));color:var(--color-white)}.round-item.round-upcoming[_ngcontent-%COMP%]{border-color:var(--color-bright-gray);background-color:var(--color-gray-50)}.round-item.round-upcoming[_ngcontent-%COMP%] .round-indicator[_ngcontent-%COMP%] .round-number[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1));color:var(--color-gray-500)}.round-item.round-upcoming[_ngcontent-%COMP%] .round-content[_ngcontent-%COMP%]{opacity:.6}.round-item.round-live[_ngcontent-%COMP%]{--tw-border-opacity: 1;border-color:rgb(250 204 21 / var(--tw-border-opacity, 1))}.round-item.round-live[_ngcontent-%COMP%] .round-indicator[_ngcontent-%COMP%] .round-number[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(234 179 8 / var(--tw-bg-opacity, 1));color:var(--color-white)}.round-item[_ngcontent-%COMP%] .round-indicator[_ngcontent-%COMP%]{margin-right:.75rem;flex-shrink:0}.round-item[_ngcontent-%COMP%] .round-indicator[_ngcontent-%COMP%] .round-number[_ngcontent-%COMP%]{display:flex;height:1.75rem;width:1.75rem;
1align-items:center;justify-content:center;border-radius:9999px;font-size:.75rem;line-height:1rem;font-weight:700}.round-item[_ngcontent-%COMP%] .round-content[_ngcontent-%COMP%]{min-width:0px;flex:1 1 0%;overflow:hidden}.round-item[_ngcontent-%COMP%] .round-content[_ngcontent-%COMP%] .round-name[_ngcontent-%COMP%]{margin-bottom:.25rem;font-size:.875rem;line-height:1.25rem;font-weight:500;color:var(--color-yankees-blue)}.round-item[_ngcontent-%COMP%] .round-content[_ngcontent-%COMP%] .round-chips[_ngcontent-%COMP%]{margin-bottom:.125rem;display:flex;flex-wrap:wrap;gap:.25rem}.round-item[_ngcontent-%COMP%] .round-content[_ngcontent-%COMP%] .round-chips[_ngcontent-%COMP%] .elimination-chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.25rem;font-size:.75rem;line-height:1rem;font-weight:500;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1));padding:.125rem .5rem;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.round-item[_ngcontent-%COMP%] .round-content[_ngcontent-%COMP%] .round-chips[_ngcontent-%COMP%] .elimination-chip[_ngcontent-%COMP%] nb-icon[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem}.round-item[_ngcontent-%COMP%] .round-content[_ngcontent-%COMP%] .round-date[_ngcontent-%COMP%]{margin-bottom:.25rem;font-size:.75rem;line-height:1rem;font-weight:500;color:var(--color-yankees-blue)}.round-item[_ngcontent-%COMP%] .round-content[_ngcontent-%COMP%] .round-description[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem;color:var(--color-yankees-blue)}.round-item[_ngcontent-%COMP%] .round-content[_ngcontent-%COMP%] .round-description[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{white-space:pre-wrap;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.round-item[_ngcontent-%COMP%] .round-content[_ngcontent-%COMP%] .round-description[_ngcontent-%COMP%] span.expanded[_ngcontent-%COMP%]{display:block;-webkit-line-clamp:unset}.round-item[_ngcontent-%COMP%] .round-content[_ngcontent-%COMP%] .round-description[_ngcontent-%COMP%] .read-more-btn[_ngcontent-%COMP%]{margin-top:.25rem;cursor:pointer;border-width:0px;background-color:transparent;padding:0;font-size:.75rem;line-height:1rem;font-weight:500;--tw-text-opacity: 1;color:rgb(51 102 255 / var(--tw-text-opacity, 1))}.round-item[_ngcontent-%COMP%] .round-content[_ngcontent-%COMP%] .round-description[_ngcontent-%COMP%] .read-more-btn[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(41 82 204 / var(--tw-text-opacity, 1))}.round-item[_ngcontent-%COMP%] .round-evaluators[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-direction:column;gap:.375rem;overflow:hidden}.round-item[_ngcontent-%COMP%] .round-evaluators[_ngcontent-%COMP%] .evaluator-card[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;border-radius:.5rem;border-width:1px;border-style:solid;border-color:var(--color-bright-gray);background-color:var(--color-gray-50);padding:.5rem .75rem;text-decoration-line:none}.round-item[_ngcontent-%COMP%] .round-evaluators[_ngcontent-%COMP%] .evaluator-card[_ngcontent-%COMP%] .evaluator-avatar[_ngcontent-%COMP%]{margin-top:.125rem;height:1.75rem;width:1.75rem;flex-shrink:0;border-radius:9999px;object-fit:cover}.round-item[_ngcontent-%COMP%] .round-evaluators[_ngcontent-%COMP%] .evaluator-card[_ngcontent-%COMP%] .evaluator-info[_ngcontent-%COMP%]{display:flex;min-width:0px;flex:1 1 0%;flex-direction:column}.round-item[_ngcontent-%COMP%] .round-evaluators[_ngcontent-%COMP%] .evaluator-card[_ngcontent-%COMP%] .evaluator-info[_ngcontent-%COMP%] .evaluator-name[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.875rem;line-height:1.25rem;font-weight:500;color:var(--color-yankees-blue)}.round-item[_ngcontent-%COMP%] .round-evaluators[_ngcontent-%COMP%] .evaluator-card[_ngcontent-%COMP%] .evaluator-info[_ngcontent-%COMP%] .evaluator-role[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem;color:var(--color-gray-500)}
1.round-item[_ngcontent-%COMP%] .round-evaluators[_ngcontent-%COMP%] .evaluator-card[_ngcontent-%COMP%] .follow-btn[_ngcontent-%COMP%]{flex-shrink:0}.round-item[_ngcontent-%COMP%] .round-evaluators[_ngcontent-%COMP%] .evaluator-card[_ngcontent-%COMP%] .slot-booked[_ngcontent-%COMP%]{margin-top:.25rem;display:flex;width:100%;flex-direction:column;gap:.5rem;border-width:0px;border-top-width:1px;border-style:solid;border-color:var(--color-bright-gray);padding-top:.5rem;font-size:.75rem;line-height:1rem;color:var(--color-gray-700)}.round-item[_ngcontent-%COMP%] .round-evaluators[_ngcontent-%COMP%] .evaluator-card[_ngcontent-%COMP%] .slot-booked[_ngcontent-%COMP%] .meeting-link[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(51 102 255 / var(--tw-text-opacity, 1));text-decoration-line:none}.round-item[_ngcontent-%COMP%] .round-evaluators[_ngcontent-%COMP%] .evaluator-card[_ngcontent-%COMP%] .slot-booked[_ngcontent-%COMP%] .meeting-link[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(41 82 204 / var(--tw-text-opacity, 1))}.round-item[_ngcontent-%COMP%] .round-evaluators[_ngcontent-%COMP%] .evaluator-card[_ngcontent-%COMP%] .slot-booked[_ngcontent-%COMP%] .meeting-location-text[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem;font-size:.75rem;line-height:1rem;color:var(--color-gray-500)}.round-item[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;flex-shrink:0;flex-direction:column;align-items:flex-start;gap:.5rem}@media (min-width: 768px){.round-item[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{align-items:flex-end}}.round-item[_ngcontent-%COMP%] .round-status[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;gap:.5rem}.round-item[_ngcontent-%COMP%] .round-status[_ngcontent-%COMP%] .status-completed[_ngcontent-%COMP%]{display:flex;height:1.25rem;width:1.25rem;align-items:center;justify-content:center;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1));font-size:.75rem;line-height:1rem;font-weight:700;color:var(--color-white)}.round-item[_ngcontent-%COMP%] .round-status[_ngcontent-%COMP%] .status-current[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem;white-space:nowrap;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(51 102 255 / var(--tw-bg-opacity, 1));padding:.125rem .5rem;font-size:.75rem;line-height:1rem;font-weight:500;color:var(--color-white)}.round-item[_ngcontent-%COMP%] .round-status[_ngcontent-%COMP%] .status-upcoming[_ngcontent-%COMP%]{white-space:nowrap;border-radius:9999px;background-color:var(--color-gray-100);padding:.125rem .5rem;font-size:.75rem;line-height:1rem;font-weight:500;color:var(--color-gray-500)}.round-item[_ngcontent-%COMP%] .round-status[_ngcontent-%COMP%] .status-live[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem;white-space:nowrap;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(254 249 195 / var(--tw-bg-opacity, 1));padding:.125rem .5rem;font-size:.75rem;line-height:1rem;font-weight:500;--tw-text-opacity: 1;color:rgb(161 98 7 / var(--tw-text-opacity, 1))}.round-item[_ngcontent-%COMP%] .round-action[_ngcontent-%COMP%]{margin-top:.25rem;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:.5rem}.round-item[_ngcontent-%COMP%] .round-action[_ngcontent-%COMP%] .view-ppt-link[_ngcontent-%COMP%]{white-space:nowrap;font-size:.75rem;line-height:1rem;font-weight:500;--tw-text-opacity: 1;color:rgb(51 102 255 / var(--tw-text-opacity, 1));text-decoration-line:none}.round-item[_ngcontent-%COMP%] .round-action[_ngcontent-%COMP%] .view-ppt-link[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(41 82 204 / var(--tw-text-opacity, 1));text-decoration-line:underline}.round-item[_ngcontent-%COMP%] .round-action[_ngcontent-%COMP%] a.disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.5}.book-slot-dialog-card[_ngcontent-%COMP%]{margin:0;max-height:80dvh;min-width:60dvw}@media (min-width: 768px){.book-slot-dialog-card[_ngcontent-%COMP%]{min-width:20dvw;max-width:40dvw}}.book-slot-dialog-card[_ngcontent-%COMP%] com-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--color-bright-gray);padding:.5rem 1rem;font-size:1rem;line-height:1.5rem;font-weight:600;color:var(--color-yankees-blue);background:linear-gradient(135deg,#f7f7f8,#fff,#f7f7f8)}.book-slot-dialog-card[_ngcontent-%COMP%] com-card-header[_ngcontent-%COMP%]:is(.com-dark *){border-color:var(--color-gray-700);background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #080808 var(--tw-gradient-from-position);--tw-gradient-to: rgb(8 8 8 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: rgb(20 20 20 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #141414 var(--tw-gradient-via-p
1osition), var(--tw-gradient-to);--tw-gradient-to: #080808 var(--tw-gradient-to-position);color:var(--color-twhite)}.book-slot-dialog-card[_ngcontent-%COMP%] com-card-header[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:1rem;line-height:1.5rem;font-weight:600;color:var(--color-yankees-blue)}.book-slot-dialog-card[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%], .book-slot-dialog-card[_ngcontent-%COMP%] .book-slot-dialog-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem;padding:1rem}.book-slot-dialog-card[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .slot-item[_ngcontent-%COMP%], .book-slot-dialog-card[_ngcontent-%COMP%] .book-slot-dialog-body[_ngcontent-%COMP%] .slot-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.book-slot-dialog-card[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .slot-item[_ngcontent-%COMP%] .no-slots[_ngcontent-%COMP%], .book-slot-dialog-card[_ngcontent-%COMP%] .book-slot-dialog-body[_ngcontent-%COMP%] .slot-item[_ngcontent-%COMP%] .no-slots[_ngcontent-%COMP%]{margin:0;padding-top:1rem;padding-bottom:1rem;text-align:center;font-size:.875rem;line-height:1.25rem;color:var(--color-gray-500)}.book-slot-dialog-card[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .slot-item[_ngcontent-%COMP%] .slot-row[_ngcontent-%COMP%], .book-slot-dialog-card[_ngcontent-%COMP%] .book-slot-dialog-body[_ngcontent-%COMP%] .slot-item[_ngcontent-%COMP%] .slot-row[_ngcontent-%COMP%]{cursor:pointer;border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--color-bright-gray);padding-top:.75rem;padding-bottom:.75rem;font-size:.875rem;line-height:1.25rem;font-weight:500;color:var(--color-yankees-blue);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.book-slot-dialog-card[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .slot-item[_ngcontent-%COMP%] .slot-row[_ngcontent-%COMP%]:hover, .book-slot-dialog-card[_ngcontent-%COMP%] .book-slot-dialog-body[_ngcontent-%COMP%] .slot-item[_ngcontent-%COMP%] .slot-row[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(51 102 255 / var(--tw-text-opacity, 1))}.book-slot-dialog-card[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .slot-item[_ngcontent-%COMP%] .slot-row[_ngcontent-%COMP%]:last-child, .book-slot-dialog-card[_ngcontent-%COMP%] .book-slot-dialog-body[_ngcontent-%COMP%] .slot-item[_ngcontent-%COMP%] .slot-row[_ngcontent-%COMP%]:last-child{border-bottom-width:0px}.round-content-profile[_ngcontent-%COMP%]{display:flex;min-width:0px;flex:1 1 0%;flex-direction:column;gap:6px;overflow:hidden}.round-content-actions[_ngcontent-%COMP%]{display:flex;flex-direction:column-reverse;align-items:flex-start;gap:.5rem}@media (min-width: 768px){.round-content-actions[_ngcontent-%COMP%]{flex-direction:row}}.footer-confirm-dialog[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"]})}}return e})();const Nr=(e,a,n)=>["/communities",e,"hackathons",a,"fill-form",n],Lr=(e,a)=>a.id;function Vr(e,a){if(1&e&&(t.j41(0,"div",10)(1,"a",11),t.EFF(2," Edit Registration "),t.k0s()()),2&e){const n=t.XpG(2);t.R7$(),t.Y8G("routerLink",t.sMw(1,Nr,n.hackathon.community.slug,n.hackathon.slug,n.hrgId))}}function Ar(e,a){if(1&e&&(t.j41(0,"div"),t.nrm(1,"commudle-hackathon-round-card",12),t.k0s()),2&e){const n=a.$implicit,i=a.$index,o=t.XpG(2);t.R7$(),t.Y8G("round",n)("index",i)("userTeamDetails",o.userTeamDetails)}}function Jr(e,a){if(1&e&&(t.j41(0,"com-card",1)(1,"com-card-header")(2,"div",2)(3,"div",3)(4,"h3",4),t.EFF(5,"Registration Status"),t.k0s(),t.j41(6,"div",5),t.EFF(7),t.nI1(8,"titlecase"),t.k0s()(),t.DNE(9,Vr,3,5,"div",6),t.k0s()(),t.j41(10,"com-card-body")(11,"div",7)(12,"h4",8),t.EFF(13,"Hackathon Rounds"),t.k0s(),t.j41(14,"div",9),t.Z7z(15,Ar,2,3,"div",null,Lr),t.k0s()()()()),2&e){const n=t.XpG();t.R7$(6),t.Y8G("ngClass","status-"+n.userTeamDetails.registration_status),t.R7$(),t.SpI(" ",t.bMT(8,3,n.userTeamDetails.registration_status)," "),t.R7$(2),t.Y8G("ngIf",n.canEditForm),t.R7$(6),t.Dyx(n.rounds)}}let Wr=(()=>{class e{constructor(n){this.roundService=n,this.EHackathonRegistrationStatus=u.AY,this.canSubmitProject=!1,this.canEditForm=!1,this.rounds=[],this.ERoundType=u.Yf}ngOnInit(){this.calculateHackathonDatesStatus(),this.loadRounds()}loadRounds(){this.roundService.pIndexRounds(this.hackathon.id,u.ag.HACKATHON).subscribe({next:n=>{this.rounds=n},error:n=>{console.error("Error loading rounds:",n)}})}calculateHackathonDatesStatus(){this.currentDate=new Date,this.hackathonApplicationEndDate=new Date(this.hackathon.application_end_date),this.hackathonEndDate=new Date(this.hackathon.end_date);const n=new Date(this.hackathonEndDate);n.setDate(this.hackathonEndDate.getDate()+5),this.currentDate<=this.hackathonEndDate&&(this.canSubmitProject=!0),this.currentDate<=n&&(this.canEditForm=!0)}static{this.\u0275fac=function(i){return new(i||e)(t.rXU(_.wE))}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["commudle-public-hackathon-registration"]],inputs:{hrgId:"hrgId",userTeamDetails:"userTeamDetails",hackathon:"hackathon"},standalone:!1,decls:1,vars:1,consts:[["class","registration-card",4,"ngIf"],[1,"registration-card"],[1,"registration-header"],[1,"status-section"],[1,"registration-title"],[1,"status-badge",3,"ngClass"],["class","edit-section",4,"ngIf"],[1,"rounds-section"],[1,"rounds-title"],[1,"rounds-container"],[1,"edit-section"],[1,"edit-link",3,"routerLink"],[3,"round","index","userTeamDetails"]],template:function(i,o){1&i&&t.DNE(0,Jr,17,5,"com-card",0),2&i&&t.Y8G("ngIf",o.hrgId&&o.userTeamDetails)},dependencies:[m.YU,m.bT,f.Wk,v.v,x.W,w.H,Ur,m.PV],styles:[".registration-card[_ngcontent-%COMP%]{margin:0;margin-top:1rem;margin-bottom:1rem}.registration-card[_ngcontent-%COMP%] com-card-header[_ngcontent-%COMP%]{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--color-bright-gray);padding:.5rem 1rem;background:linear-gradient(135deg,#f7f7f8,#fff,#f7f7f8)}.registration-card[_ngcontent-%COMP%] com-card-header[_ngcontent-%COMP%]:is(.com-dark *){border-color:var(--color-gray-700);background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #080808 var(--tw-gradient-from-position);--tw-gradient-to: rgb(8 8 8 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: rgb(20 20 20 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #141414 var(--tw-gradient-via-p
1osition), var(--tw-gradient-to);--tw-gradient-to: #080808 var(--tw-gradient-to-position);color:var(--color-twhite)}.registration-card[_ngcontent-%COMP%] .registration-header[_ngcontent-%COMP%]{display:flex;width:100%;align-items:center;justify-content:space-between}.registration-card[_ngcontent-%COMP%] .registration-header[_ngcontent-%COMP%] .status-section[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem}.registration-card[_ngcontent-%COMP%] .registration-header[_ngcontent-%COMP%] .status-section[_ngcontent-%COMP%] .registration-title[_ngcontent-%COMP%]{margin:0;font-size:1rem;line-height:1.5rem;font-weight:600;color:var(--color-yankees-blue)}.registration-card[_ngcontent-%COMP%] .registration-header[_ngcontent-%COMP%] .status-section[_ngcontent-%COMP%] .status-badge[_ngcontent-%COMP%]{width:fit-content;border-radius:9999px;padding:.125rem .5rem;font-size:.75rem;line-height:1rem;font-weight:500}.registration-card[_ngcontent-%COMP%] .registration-header[_ngcontent-%COMP%] .status-section[_ngcontent-%COMP%] .status-badge.status-registered[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity, 1))}.registration-card[_ngcontent-%COMP%] .registration-header[_ngcontent-%COMP%] .status-section[_ngcontent-%COMP%] .status-badge.status-waitlisted[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(255 237 213 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(154 52 18 / var(--tw-text-opacity, 1))}.registration-card[_ngcontent-%COMP%] .registration-header[_ngcontent-%COMP%] .status-section[_ngcontent-%COMP%] .status-badge.status-accepted[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity, 1))}.registration-card[_ngcontent-%COMP%] .registration-header[_ngcontent-%COMP%] .status-section[_ngcontent-%COMP%] .status-badge.status-rejected[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}.registration-card[_ngcontent-%COMP%] .registration-header[_ngcontent-%COMP%] .edit-section[_ngcontent-%COMP%] .edit-link[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem;font-weight:500;--tw-text-opacity: 1;color:rgb(51 102 255 / var(--tw-text-opacity, 1));text-decoration-line:none}.registration-card[_ngcontent-%COMP%] .registration-header[_ngcontent-%COMP%] .edit-section[_ngcontent-%COMP%] .edit-link[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(41 82 204 / var(--tw-text-opacity, 1))}.registration-card[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%]{padding:1rem}.registration-card[_ngcontent-%COMP%] .rounds-section[_ngcontent-%COMP%] .rounds-title[_ngcontent-%COMP%]{margin:0;margin-bottom:.75rem;font-size:.875rem;line-height:1.25rem;font-weight:600;color:var(--color-yankees-blue)}.registration-card[_ngcontent-%COMP%] .rounds-section[_ngcontent-%COMP%] .rounds-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem}"]})}}return e})();const Qr=["editTeamMembersDialog"],qr=["problemStatementDialog"],Kr=["deactivateTeamDialog"],Zr=(e,a,n)=>["/communities",e,"hackathons",a,"fill-form",n],tc=e=>["/builds",e,"edit"],nc=e=>({parent_type:"HackathonTeam",parent_id:e}),ec=e=>["../channels",e];function oc(e,a){if(1&e){const n=t.RV6();t.j41(0,"div",20)(1,"div",21)(2,"span",22),t.EFF(3),t.k0s(),t.j41(4,"span",23),t.EFF(5),t.k0s()(),t.j41(6,"div",24)(7,"button",25),t.bIt("click",function(){const o=t.eBV(n).$implicit,r=t.XpG
1(2);return t.Njj(r.acceptInvite(o))}),t.EFF(8," Accept "),t.k0s(),t.j41(9,"button",26),t.bIt("click",function(){const o=t.eBV(n).$implicit,r=t.XpG(2);return t.Njj(r.rejectInvite(o))}),t.EFF(10," Reject "),t.k0s()()()}if(2&e){const n=a.$implicit;t.R7$(3),t.JRh(n.name),t.R7$(2),t.SpI("",null==n.hackathon_user_responses?null:n.hackathon_user_responses.length," member(s)")}}function ic(e,a){if(1&e&&(t.j41(0,"div",18)(1,"com-card")(2,"com-card-header"),t.EFF(3,"PENDING TEAM INVITES"),t.k0s(),t.j41(4,"com-card-body"),t.DNE(5,oc,11,2,"div",19),t.k0s()()()),2&e){const n=t.XpG();t.R7$(5),t.Y8G("ngForOf",n.pendingInvites)}}function ac(e,a){if(1&e&&(t.j41(0,"com-card",27)(1,"com-card-body")(2,"commudle-alert",28)(3,"a",29),t.EFF(4," Complete Application "),t.nrm(5,"fa-icon",30),t.k0s()()()()),2&e){const n=t.XpG();t.R7$(2),t.Y8G("error",!0),t.R7$(),t.Y8G("routerLink",t.sMw(3,Zr,null==n.community?null:n.community.slug,null==n.hackathon?null:n.hackathon.slug,n.hrgId)),t.R7$(2),t.Y8G("icon",n.icons.faArrowRight)}}function rc(e,a){if(1&e&&(t.j41(0,"option",36),t.EFF(1),t.k0s()),2&e){const n=a.$implicit,i=t.XpG(2);t.Y8G("ngValue",n.id)("disabled",n.registration_status!==i.EHackathonRegistrationStatus.ACCEPTED),t.R7$(),t.Lme(" ",n.name,"",n.registration_status!==i.EHackathonRegistrationStatus.ACCEPTED?" (Not Accepted Yet)":""," ")}}function cc(e,a){if(1&e){const n=t.RV6();t.j41(0,"div",31)(1,"label",32),t.EFF(2," Selected Team: "),t.j41(3,"strong"),t.EFF(4),t.k0s()(),t.j41(5,"div",33)(6,"select",34),t.mxI("ngModelChange",function(o){t.eBV(n);const r=t.XpG();return t.DH7(r.selectedTeamId,o)||(r.selectedTeamId=o),t.Njj(o)}),t.bIt("ngModelChange",function(){t.eBV(n);const o=t.XpG();return t.Njj(o.onTeamSelectionChange())}),t.DNE(7,rc,2,4,"option",35),t.k0s()()()}if(2&e){const n=t.XpG();t.R7$(4),t.JRh(null==n.selectedTeam?null:n.selectedTeam.name),t.R7$(2),t.R50("ngModel",n.selectedTeamId),t.R7$(),t.Y8G("ngForOf",n.userTeamDetails)}}function sc(e,a){if(1&e){const n=t.RV6();t.j41(0,"com-card",37)(1,"com-card-body"),t.nrm(2,"commudle-alert",38),t.j41(3,"button",39),t.bIt("click",function(){t.eBV(n);const o=t.XpG();return t.Njj(o.openProblemStatementDialog())}),t.EFF(4," Select Problem Statement "),t.k0s()()()}2&e&&(t.R7$(2),t.Y8G("info",!0)("message","Action Required: Please select a Track to continue."))}function lc(e,a){if(1&e){const n=t.RV6();t.j41(0,"button",44),t.bIt("click",function(){t.eBV(n);const o=t.XpG(2);return t.Njj(o.openProblemStatementDialog())}),t.EFF(1," Change "),t.k0s()}}function mc(e,a){if(1&e&&(t.j41(0,"div",45)(1,"div",46),t.EFF(2,"Problem Statement:"),t.k0s(),t.nrm(3,"div",47),t.k0s()),2&e){const n=t.XpG(2);t.R7$(3),t.Y8G("innerHTML",n.selectedTeam.problem_statement.title,t.npT)}}function dc(e,a){if(1&e&&(t.j41(0,"com-card",40)(1,"com-card-header")(2,"span"),t.EFF(3,"Selected Track"),t.k0s(),t.DNE(4,lc,2,0,"button",41),t.k0s(),t.j41(5,"com-card-body")(6,"div",42),t.EFF(7),t.k0s(),t.DNE(8,mc,4,1,"div",43),t.k0s()()),2&e){const n=t.XpG();t.R7$(4),t.Y8G("ngIf",n.hackathon.problem_statement_changeable&&n.selectedTeam.registration_status===n.EHackathonRegistrationStatus.ACCEPTED),t.R7$(3),t.JRh(n.selectedTeam.track.name),t.R7$(),t.Y8G("ngIf",n.selectedTeam.problem_statement)}}function gc(e,a){if(1&e&&(t.j41(0,"com-card",48)(1,"com-card-header"),t.EFF(2,"PROJECT DETAILS"),t.k0s(),t.j41(3,"com-card-body")(4,"div",49),t.EFF(5),t.k0s(),t.nrm(6,"div",50),t.k0s(),t.j41(7,"com-card-footer")(8,"a",51),t.EFF(9,"Post Updates \xa0 "),t.nrm(10,"fa-icon",30),t.k0s()()()),2&e){const n=t.XpG();t.R7$(5),t.JRh(n.selectedTeam.community_build.name),t.R7$(),t.Y8G("innerHTML",n.selectedTeam.community_build.description,t.npT),t.R7$(2),t.Y8G("routerLink",t.eq3(5,tc,n.selectedTeam.community_build.slug))("queryParams",t.eq3(7,nc,n.selectedTeam.id)),t.R7$(2),t.Y8G("icon",n.icons.faArrowRight)}}function _c(e,a){if(1&e&&(t.j41(0,"div"),t.nrm(1,"commudle-public-hackathon-registration",52),t.k0s()),2&e){const n=t.XpG();t.R7$(),t.Y8G("hackathon",n.hackathon)("hrgId",n.hrgId)("userTeamDetails",n.selectedTeam)}}function pc(e,a){if(1&e&&t.nrm(0,"app-user-profile-card-small",62),2&e){const n=t.XpG().$implicit;t.Y8G("user",n.user)}}function uc(e,a){if(1&e&&(t.j41(0,"span",63),t.EFF(1),t.k0s()),2&e){const n=t.XpG().$implicit;t.R7$(),t.JRh(n.name)}}function hc(e,a){if(1&e){const n=t.RV6();t.j41(0,"button",66),t.bIt("click",function(){t.eBV(n);
1const o=t.XpG(2),r=o.$implicit,c=o.index,p=t.XpG(2),h=t.sdS(20);return t.Njj(p.openDialogBox(h,r,p.selectedTeam,c))}),t.EFF(1," Resend Invite "),t.k0s()}}function bc(e,a){if(1&e&&(t.j41(0,"div",64),t.DNE(1,hc,2,0,"button",65),t.k0s()),2&e){const n=t.XpG().$implicit,i=t.XpG(2);t.R7$(),t.Y8G("ngIf",(null==i.selectedTeam?null:i.selectedTeam.user_id)!==n.user_id)}}function Cc(e,a){if(1&e&&(t.j41(0,"div",55)(1,"div",56),t.DNE(2,pc,1,1,"app-user-profile-card-small",57)(3,uc,2,1,"span",58),t.j41(4,"span",59),t.EFF(5),t.k0s()(),t.DNE(6,bc,2,1,"div",60),t.j41(7,"span",61),t.EFF(8),t.nI1(9,"capitalizeAndRemoveUnderscore"),t.k0s()()),2&e){const n=a.$implicit,i=t.XpG(2);t.R7$(2),t.Y8G("ngIf",n.user),t.R7$(),t.Y8G("ngIf",!n.user),t.R7$(2),t.JRh(n.user_email),t.R7$(),t.Y8G("ngIf",n.invite_status===i.EInvitationStatus.INCOMPLETE_APPLICATION||n.invite_status===i.EInvitationStatus.INVITED),t.R7$(),t.Y8G("ngClass","invite-"+n.invite_status),t.R7$(),t.SpI(" ",t.bMT(9,6,n.invite_status)," ")}}function fc(e,a){if(1&e){const n=t.RV6();t.j41(0,"div")(1,"com-card",53)(2,"com-card-header")(3,"h5"),t.EFF(4),t.k0s(),t.j41(5,"button",44),t.bIt("click",function(){t.eBV(n);const o=t.XpG();return t.Njj(o.openEditTeamMembersDialog())}),t.nrm(6,"fa-icon",30),t.EFF(7," \xa0 Edit "),t.k0s()(),t.j41(8,"com-card-body"),t.DNE(9,Cc,10,8,"div",54),t.k0s()()()}if(2&e){const n=t.XpG();t.R7$(4),t.JRh(n.selectedTeam.name),t.R7$(2),t.Y8G("icon",n.icons.faEdit),t.R7$(3),t.Y8G("ngForOf",n.selectedTeam.hackathon_user_responses)}}function Pc(e,a){if(1&e&&(t.j41(0,"div")(1,"a",67)(2,"div",68)(3,"div")(4,"p",69),t.EFF(5),t.k0s(),t.j41(6,"p",70),t.EFF(7),t.k0s(),t.j41(8,"p",71),t.EFF(9),t.k0s()()()()()),2&e){const n=a.$implicit;t.R7$(),t.Y8G("routerLink",t.eq3(4,ec,n.id)),t.R7$(4),t.JRh(n.name),t.R7$(2),t.SpI("",n.member_count," members"),t.R7$(2),t.JRh(n.description)}}function Mc(e,a){if(1&e){const n=t.RV6();t.j41(0,"com-card",72)(1,"com-card-header")(2,"span"),t.EFF(3),t.k0s(),t.j41(4,"button",73),t.bIt("click",function(){const o=t.eBV(n).dialogRef;return t.Njj(o.close())}),t.nrm(5,"fa-icon",30),t.k0s()(),t.j41(6,"com-card-body"),t.EFF(7),t.k0s(),t.j41(8,"com-card-footer")(9,"button",74),t.bIt("click",function(){const o=t.eBV(n),r=o.$implicit,c=o.dialogRef;return t.XpG().removeMember(r.hur,r.team,r.index,r.team_index),t.Njj(c.close())}),t.EFF(10," remove "),t.k0s(),t.j41(11,"button",75),t.bIt("click",function(){const o=t.eBV(n).dialogRef;return t.Njj(o.close())}),t.EFF(12,"cancel"),t.k0s()()()}if(2&e){const n=a.$implicit,i=t.XpG();t.R7$(3),t.SpI(" Are you Sure you want to remove ",n.hur.name,"?"),t.R7$(2),t.Y8G("icon",i.icons.faXmark),t.R7$(2),t.Lme(" If you remove ",n.hur.name,"(",n.hur.user_email,") from the team, they will also lose access to all the channels of this hackathon. ")}}function Oc(e,a){if(1&e){const n=t.RV6();t.j41(0,"com-card",76)(1,"com-card-header")(2,"span"),t.EFF(3,"Resend Invitation"),t.k0s(),t.j41(4,"button",73),t.bIt("click",function(){const o=t.eBV(n).dialogRef;return t.Njj(o.close())}),t.nrm(5,"nb-icon",77),t.k0s()(),t.j41(6,"com-card-body")(7,"p"),t.EFF(8," Are you sure you want to resend an invite to "),t.j41(9,"strong"),t.EFF(10),t.k0s(),t.EFF(11,"? "),t.k0s(),t.j41(12,"p"),t.EFF(13," This will resend an invitation email to "),t.j41(14,"strong"),t.EFF(15),t.k0s(),t.EFF(16," and allow them to accept or reject your hackathon team invite. "),t.k0s()(),t.j41(17,"com-card-footer")(18,"button",78),t.bIt("click",function(){const o=t.eBV(n),r=o.$implicit,c=o.dialogRef;return t.XpG().resendInviteToMember(r.hur,r.team),t.Njj(c.close())}),t.EFF(19," Resend Invite "),t.k0s(),t.j41(20,"button",79),t.bIt("click",function(){const o=t.eBV(n).dialogRef;return t.Njj(o.close())}),t.EFF(21,"Cancel"),t.k0s()()()}if(2&e){const n=a.$implicit;t.R7$(10),t.JRh(n.hur.name),t.R7$(5),t.JRh(n.hur.user_email)}}function kc(e,a){if(1&e){const n=t.RV6();t.j41(0,"com-card",80)(1,"com-card-header")(2,"span"),t.EFF(3),t.k0s(),t.j41(4,"button",73),t.bIt("click",function(){const o=t.eBV(n).dialogRef;return t.Njj(o.close())}),t.nrm(5,"fa-icon",30),t.k0s()(),t.j41(6,"com-card-body")(7,"commudle-public-hackathon-teammate-form",81),t.bIt("submitTeammateDetailsEvent",function(o){const r=t.eBV(n),c=r.$implicit,p=r.dialogRef,h=t.XpG();return t.Njj(h.submitTeammateDetails(o,p,c.hackathonUserResponse.id))}),t.k0s()()()}if(2&e){const n=a.$implicit,i=t.XpG();t.R7$(3),t.SpI("Edit ",n.selectedTeam.name," Members"),t.R7$(2),t.Y8G("icon",i.icons.faXmark),t.R7$(2),t.Y8G("hackathonUserResponse",n.hackathonUserResponse)("hackathonResponseGroup",n.hackathonResponseGroup)("hasTeammateOption",i.hasTeammateOption)("hackathon",i.hackathon)("team",n.selectedTeam)("hasSubmitButton",!0)("viewMode",!0)}}function vc(e,a){if(1&e){const n=t.RV6();t.j41(0,"com-card",82)(1,"com-card-header")(2,"span"),t.EFF(3),t.k0s(),t.j41(4,"button",73),t.bIt("click",function(){const o=t.eBV(n).dialogRef;return t.Njj(o.close())}),t.nrm(5,"nb-icon",77),t.k0s()(),t.j41(6,"com-card-body")(7,"commudle-public-hackathon-project-details-form",83),t.bIt("createOrUpdateProjectDetails",function(o){const r=t.eBV(n).dialogRef,c=t.XpG();return t.Njj(c.submitProjectDetails(o,r))}),t.k0s()()()}if(2&e){const n=a.$implicit,i=t.XpG();t.R7$(3),t.JRh(null!=i.selectedTeam&&i.selectedTeam.track?"Change Track & Problem Statement":"Select Track"),t.R7$(4),t.Y8G("hackathon",i.hackathon)("hackathonUserResponse",n.selectedTeam.hackathon_user_responses[0])("team",n.selectedTeam)("hidePreviousButton",!0)("submitButtonText","Submit")}}function wc(e,a){if(1&e){const n=t.RV6();t.j41(0,"com-card",84)(1,"com-card-header")(2,"span"),t.EFF(3,"Deactivate Your Team?"),t.k0s(),t.j41(4,"button",73),t.bIt("click",function(){const o=t.eBV(n).dialogRef;return t.Njj(o.close())}),t.nrm(5,"nb-icon",77),t.k0s()(),t.j41(6,"com-card-body")(7,"p"),t.EFF(8," You already have your own team "),t.j41(9,"strong"),t.EFF(10),t.k0s(),t.EFF(11,". To accept the invite to join "),t.j41(12,"strong"),t.EFF(13),t.k0s(),t.EFF(14,", your current team will be deactivated. "),t.k0s(),t.j41(15,"p"),t.EFF(16,"You can create a new team later if needed."),t.k0s()(),t.j41(17,"com-card-footer")(18,"button",74),t.bIt("click",function(){const o=t.eBV(n),r=o.$implicit,c=o.dialogRef,p=t.XpG();return t.Njj(p.deactivateOwnTeamAndAcceptInvite(r.hur,c))}),t.EFF(19," Deactivate My Team & Accept Invite "),t.k0s(),t.j41(20,"button",79),t.bIt("click",function(){const o=t.eBV(n).dialogRef;return t.Njj(o.close())}),t.EFF(21,"Cancel"),t.k0s()()()}if(2&e){const n=a.$implicit,i=t.XpG();t.R7$(10),t.SpI('"',null==i.ownTeams[0]?null:i.ownTeams[0].name,'"'),t.R7$(3),t.SpI('"',n.inviteTeam.name,'"')}}let yc=(()=>{class e{constructor(n,i,o,r,c,p,h,M,j){this.activatedRoute=n,this.router=i,this.hackathonService=o,this.hrgService=r,this.authService=c,this.nbDialogService=p,this.hackathonUserResponseService=h,this.toasterService=M,this.seoService=j,this.icons={faArrowRight:l.dmS,faUserMinus:l.bB2,faXmark:l.Jyw,faEdit:l.MT7,faEnvelope:l.y_8,faPlus:l.QLR},this.EHackathonRegistrationStatus=u.AY,this.subscriptions=[],this.EDiscussionType=u.yO,this.EInvitationStatus=u.zN,this.hasTeammateOption=!1,this.isSubmittingProblemStatement=!1,this.selectedTeamId=null,this.selectedTeam=null,this.pendingInvites=[],this.ownTeams=[],this.destroy$=new y.B}ngOnInit(){this.subscriptions.push(this.activatedRoute.parent.data.subscribe(n=>{this.hackathon=n.hackathon,this.community=n.community,this.hackathon.participate_types===u.$d.TEAM&&(this.hasTeammateOption=!0),this.getChannels(),this.seoService.setTags(`Team Dashboard | ${this.hackathon.name}`,`Your team dashboard for ${this.hackathon.name} hackathon`,this.hackathon?.banner_image?.url||"https://commudle.com/assets/images/commudle-logo192.png"),this.seoService.n
1oIndex(!0),this.activatedRoute.queryParams.subscribe(i=>{this.selectedTeamId=i.team_id?Number(i.team_id):null,this.syncSelectedTeam()}),this.authService.currentUser$.pipe((0,b.Q)(this.destroy$)).subscribe(i=>{this.currentUser=i,i&&this.getHackathonCurrentRegistrationDetails()})}),this.hrgService.showHackathonResponseGroup(this.hackathon.id).subscribe(n=>{this.hrgId=n.id,this.hackathonResponseGroup=n}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}getHackathonCurrentRegistrationDetails(){this.hackathonService.getHackathonCurrentRegistrationDetails(this.hackathon.id).pipe((0,b.Q)(this.destroy$)).subscribe(n=>{n&&(this.userTeamDetails=n,this.categorizeTeams(),this.syncSelectedTeam())})}categorizeTeams(){!this.userTeamDetails||!this.currentUser||(this.ownTeams=this.userTeamDetails.filter(n=>n.user_id===this.currentUser.id),this.pendingInvites=this.userTeamDetails.filter(n=>{const i=n.hackathon_user_responses?.find(o=>o.user_id===this.currentUser.id);return i&&i.invite_status===u.zN.INVITED&&n.user_id!==this.currentUser.id}))}getCurrentUserHur(n){return n.hackathon_user_responses?.find(i=>i.user_id===this.currentUser?.id)}syncSelectedTeam(){!this.userTeamDetails||0===this.userTeamDetails.length||(this.selectedTeam=this.userTeamDetails.find(n=>n.id===this.selectedTeamId),this.selectedTeam||(this.selectedTeamId=this.userTeamDetails[0].id,this.router.navigate([],{relativeTo:this.activatedRoute,queryParams:{team_id:this.selectedTeamId},queryParamsHandling:"merge",replaceUrl:!0})))}getChannels(){this.hackathonService.getHackathonUserChannels(this.hackathon.id).subscribe(n=>{this.channels=n})}onTeamSelectionChange(){this.router.navigate([],{relativeTo:this.activatedRoute,queryParams:{team_id:this.selectedTeamId},queryParamsHandling:"merge"})}openDialogBox(n,i,o,r){this.nbDialogService.open(n,{context:{hur:i,team:o,index:r}})}removeMember(n,i,o,r){this.hackathonUserResponseService.removeTeamMember(i.id,n.id).subscribe(c=>{c&&(this.toasterService.successDialog("Team member removed from your team"),this.userTeamDetails[r].hackathon_user_responses.splice(o,1))})}resendInviteToMember(n,i){this.hackathonUserResponseService.resendInviteToTeammate(i.id,n.id).subscribe(o=>{o&&this.toasterService.successDialog("Team member invite resent")})}openEditTeamMembersDialog(){this.nbDialogService.open(this.editTeamMembersDialogRef,{context:{hackathonUserResponse:this.selectedTeam.hackathon_user_responses[0],hackathonResponseGroup:this.hackathonResponseGroup,selectedTeam:this.selectedTeam}})}submitTeammateDetails(n,i,o){i.close(),this.hackathonUserResponseService.updateTeamDetails(n,o).subscribe(r=>{r&&(this.toasterService.successDialog("Team members updated successfully"),this.getHackathonCurrentRegistrationDetails())})}shouldShowProblemStatementPrompt(){return!!this.selectedTeam&&this.selectedTeam.registration_status===u.AY.ACCEPTED&&!this.selectedTeam.problem_statement}openProblemStatementDialog(){this.nbDialogService.open(this.problemStatementDialogRef,{context:{selectedTeam:this.selectedTeam}})}submitProjectDetails(n,i){this.hackathonUserResponseService.updateProjectDetails(n,this.selectedTeam.hackathon_user_responses[0].id).subscribe(o=>{o&&(this.toasterService.successDialog("Problem statement updated successfully"),i.close(),this.getHackathonCurrentRegistrationDetails(),this.isSubmittingProblemStatement=!1)})}acceptInvite(n){const i=n.hackathon_user_responses?.find(o=>o.user_id===this.currentUser.id);i&&(this.ownTeams.length>0?this.nbDialogService.open(this.deactivateTeamDialogRef,{context:{inviteTeam:n,hur:i}}):this.hackathonUserResponseService.respondToTeamInvite(i.id,"accepted").subscribe(o=>{o&&(this.toasterService.successDialog("Invite accepted successfully"),this.getHackathonCurrentRegistrationDetails())}))}rejectInvite(n){const i=n.hackathon_user_responses?.find(o=>o.user_id===this.currentUser.id);i&&this.hackathonUserResponseService.respondToTeamInvite(i.id,"rejected").subscribe(o=>{o&&(this.toasterService.successDialog("Invite rejected"),this.getHackathonCurrentRegistrationDetails())})}deactivateOwnTeamAndAcceptInvite(n,i){this.hackathonUserResponseService.deactivateOwnTeam(this.hackathon.id).subscribe({next:()=>{this.hackathonUserResponseService.respondToTeamInvite(n.id,"accepted").subscribe(o=>{o&&(this.toasterService.successDialog("Your team was deactivated and invite accepted"),i.close(),this.getHackathonCurrentRegistrationDetail
1s())})}})}static{this.\u0275fac=function(i){return new(i||e)(t.rXU(C.nX),t.rXU(C.Ix),t.rXU(O.$),t.rXU(F.$),t.rXU(_.uR),t.rXU(g.S0W),t.rXU(Z.K),t.rXU(_.tw),t.rXU(_.B2))}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["commudle-public-hackathon-user-dashboard"]],viewQuery:function(i,o){if(1&i&&(t.GBs(Qr,5),t.GBs(qr,5),t.GBs(Kr,5)),2&i){let r;t.mGM(r=t.lsd())&&(o.editTeamMembersDialogRef=r.first),t.mGM(r=t.lsd())&&(o.problemStatementDialogRef=r.first),t.mGM(r=t.lsd())&&(o.deactivateTeamDialogRef=r.first)}},standalone:!1,decls:27,vars:9,consts:[["removeTeamMember",""],["resendInvite",""],["editTeamMembersDialog",""],["problemStatementDialog",""],["deactivateTeamDialog",""],[1,"two-column-layout","medium","mobile-reverse"],[1,"main-column"],["class","pending-invites-section",4,"ngIf"],["class","application-incomplete-popup",4,"ngIf"],["class","team-selector",4,"ngIf"],["class","problem-statement-prompt",4,"ngIf"],["class","track-details",4,"ngIf"],["class","project-details",4,"ngIf"],[4,"ngIf"],[1,"right-column"],[1,"user-channels-list"],[1,"channels-list-cards"],[4,"ngFor","ngForOf"],[1,"pending-invites-section"],["class","invite-card",4,"ngFor","ngForOf"],[1,"invite-card"],[1,"invite-info"],[1,"invite-team-name"],[1,"invite-members"],[1,"invite-actions"],["comButton","","status","success","size","small","shape","semi-round",3,"click"],["comButton","","status","danger","size","small","shape","semi-round","ghost","",3,"click"],[1,"application-incomplete-popup"],["errorMessage","Your application needs to be completed to show your name in the winner list.",3,"error"],["errorContent","",1,"complete-application-link",3,"routerLink"],[3,"icon"],[1,"team-selector"],[1,"team-selector-label"],[1,"select"],["fullWidth","",1,"team-select-large",3,"ngModelChange","ngModel"],[3,"ngValue","disabled",4,"ngFor","ngForOf"],[3,"ngValue","disabled"],[1,"problem-statement-prompt"],[3,"info","message"],["comButton","","status","primary","size","small","shape","semi-round",3,"click"],[1,"track-details"],["comButton","","ghost","","status","primary","size","small","shape","semi-round",3,"click",4,"ngIf"],[1,"track-name"],["class","problem-statement-section",4,"ngIf"],["comButton","","ghost","","status","primary","size","small","shape","semi-round",3,"click"],[1,"problem-statement-section"],[1,"problem-label"],[1,"problem-name",3,"innerHTML"],[1,"project-details"],[1,"project-name"],[3,"innerHTML"],["target","_blank",3,"routerLink","queryParams"],[3,"hackathon","hrgId","userTeamDetails"],[1,"team-details-container"],["class","team-detail",4,"ngFor","ngForOf"],[1,"team-detail"],[1,"team-member-info"],["class","team-member-profile",3,"user",4,"ngIf"],["class","team-member-name",4,"ngIf"],[1,"team-member-email"],["class","resend-action",4,"ngIf"],[1,"invite-badge",3,"ngClass"],[1,"team-member-profile",3,"user"],[1,"team-member-name"],[1,"resend-action"],["comButton","","ghost","","status","danger","size","tiny","shape","semi-round",3,"click",4,"ngIf"],["comButton","","ghost","","status","danger","size","tiny","shape","semi-round",3,"click"],[3,"routerLink"],[1,"channel-list-card"],[1,"name"],[1,"members-count"],[1,"descriptions"],[1,"remove-teammate-dialogbox"],["ghost","","comButton","","size","small","shape","round",3,"click"],["comButton","","status","danger","shape","semi-round",3,"click"],["comButton","","status","primary","ghost","","shape","semi-round",3,"click"],[1,"resend-invite-dialogbox"],["icon","close"],["comButton","","status","primary","shape","semi-round",3,"click"],["comButton","","ghost","","shape","semi-round",3,"click"],[1,"edit-team-members-dialog"],[3,"submitTeammateDetailsEvent","hackathonUserResponse","hackathonResponseGroup","hasTeammateOption","hackathon","team","hasSubmitButton","viewMode"],[1,"problem-statement-dialog"],[3,"createOrUpdateProjectDetails","hackathon","hackathonUserResponse","team","hidePreviousButton","submitButtonText"],[1,"deactivate-team-dialog"]],template:function(i,o){if(1&i&&(t.j41(0,"div",5)(1,"div",6),t.DNE(2,ic,6,1,"div",7)(3,ac,6,7,"com-card",8)(4,cc,8,3,"div",9)(5,sc,5,2,"com-card",10)(6,dc,9,3,"com-card",11)(7,gc,11,9,"com-card",12)(8,_
1c,2,3,"div",13),t.k0s(),t.j41(9,"div",14),t.DNE(10,fc,10,3,"div",13),t.j41(11,"div",15)(12,"com-card")(13,"com-card-header"),t.EFF(14,"Channels"),t.k0s(),t.j41(15,"com-card-body",16),t.DNE(16,Pc,10,6,"div",17),t.k0s()()()()(),t.DNE(17,Mc,13,4,"ng-template",null,0,t.C5r)(19,Oc,22,2,"ng-template",null,1,t.C5r)(21,kc,8,9,"ng-template",null,2,t.C5r)(23,vc,8,6,"ng-template",null,3,t.C5r)(25,wc,22,2,"ng-template",null,4,t.C5r)),2&i){let r;t.R7$(2),t.Y8G("ngIf",o.pendingInvites.length>0),t.R7$(),t.Y8G("ngIf",o.selectedTeam&&(null==(r=o.getCurrentUserHur(o.selectedTeam))?null:r.invite_status)===o.EInvitationStatus.INCOMPLETE_APPLICATION),t.R7$(),t.Y8G("ngIf",o.userTeamDetails&&o.userTeamDetails.length>1),t.R7$(),t.Y8G("ngIf",o.shouldShowProblemStatementPrompt()),t.R7$(),t.Y8G("ngIf",o.userTeamDetails&&(null==o.selectedTeam?null:o.selectedTeam.track)),t.R7$(),t.Y8G("ngIf",o.userTeamDetails&&(null==o.selectedTeam?null:o.selectedTeam.community_build)),t.R7$(),t.Y8G("ngIf",o.hrgId&&o.selectedTeam),t.R7$(2),t.Y8G("ngIf",o.hrgId&&o.selectedTeam),t.R7$(6),t.Y8G("ngForOf",o.channels)}},dependencies:[m.YU,m.Sq,m.bT,f.Wk,d.xH,d.y7,d.wz,d.BC,d.vS,g.tHu,k.aY,G.C,N.J,$.L,v.v,x.W,w.H,E.k,Mt,Ot,Wr,Q.I],styles:["a[_ngcontent-%COMP%]{text-decoration-line:none}com-card[_ngcontent-%COMP%]{margin-left:0;margin-right:0}com-card[_ngcontent-%COMP%] com-card-header[_ngcontent-%COMP%]{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--color-bright-gray);padding:.5rem 1rem;font-size:1rem;line-height:1.5rem;font-weight:600;color:var(--color-yankees-blue);background:linear-gradient(135deg,#f7f7f8,#fff,#f7f7f8)}com-card[_ngcontent-%COMP%] com-card-header[_ngcontent-%COMP%]:is(.com-dark *){border-color:var(--color-gray-700);background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #080808 var(--tw-gradient-from-position);--tw-gradient-to: rgb(8 8 8 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: rgb(20 20 20 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #141414 var(--tw-gradient-via-position), var(--tw-gradient-to);--tw-gradient-to: #080808 var(--tw-gradient-to-position);color:var(--color-twhite)}.main-column[_ngcontent-%COMP%]{margin:0}@media (min-width: 768px){.main-column[_ngcontent-%COMP%]{margin-right:1.5rem}}.project-details[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .project-name[_ngcontent-%COMP%]{font-size:1rem;line-height:1.5rem;font-weight:600;color:var(--color-yankees-blue)}.project-details[_ngcontent-%COMP%] com-card-footer[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:1rem;line-height:1.5rem;font-weight:600;--tw-text-opacity: 1;color:rgb(51 102 255 / var(--tw-text-opacity, 1))}.user-channels-list[_ngcontent-%COMP%]{margin-top:1rem}.user-channels-list[_ngcontent-%COMP%] com-card[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.user-channels-list[_ngcontent-%COMP%] com-card[_ngcontent-%COMP%] com-card-header[_ngcontent-%COMP%]{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--color-bright-gray);padding:.5rem 1rem;font-size:1rem;line-height:1.5rem;font-weight:600;color:var(--color-yankees-blue);background:linear-gradient(135deg,#f7f7f8,#fff,#f7f7f8)}.user-channels-list[_ngcontent-%COMP%] com-card[_ngcontent-%COMP%] com-card-header[_ngcontent-%COMP%]:is(.com-dark *){border-color:var(--color-gray-700);background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #080808 var(--tw-gradient-from-position);--tw-gradient-to: rgb(8 8 8 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: rgb(20 20 20 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #141414 var(--tw-gradient-via-position), var(--tw-gradient-to);--tw-gradient-to: #080808 var(--tw-gradient-to-position);color:var(--color-twhite)}.channels-list-cards[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(1,minmax(0,1fr));gap:.75rem;padding:1rem}
1.channels-list-cards[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration-line:none}.channels-list-cards[_ngcontent-%COMP%] a[_ngcontent-%COMP%] .channel-list-card[_ngcontent-%COMP%]{border-radius:.5rem;border-width:1px;border-style:solid;border-color:var(--color-bright-gray);background-color:var(--color-white);padding:.75rem;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.channels-list-cards[_ngcontent-%COMP%] a[_ngcontent-%COMP%] .channel-list-card[_ngcontent-%COMP%]:hover{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.channels-list-cards[_ngcontent-%COMP%] a[_ngcontent-%COMP%] .channel-list-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;padding:0}.channels-list-cards[_ngcontent-%COMP%] a[_ngcontent-%COMP%] .channel-list-card[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{margin-bottom:.25rem;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;font-size:.875rem;line-height:1.25rem;font-weight:600;color:var(--color-yankees-blue)}.channels-list-cards[_ngcontent-%COMP%] a[_ngcontent-%COMP%] .channel-list-card[_ngcontent-%COMP%] .members-count[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem;color:var(--color-gray-500)}.channels-list-cards[_ngcontent-%COMP%] a[_ngcontent-%COMP%] .channel-list-card[_ngcontent-%COMP%] .descriptions[_ngcontent-%COMP%]{margin-top:.5rem;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:.75rem;line-height:1rem;color:var(--color-gray-500)}.team-details-container[_ngcontent-%COMP%]{margin:0;margin-top:1rem}.team-details-container[_ngcontent-%COMP%] com-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.team-details-container[_ngcontent-%COMP%] com-card-header[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{margin:0;font-size:1rem;line-height:1.5rem;font-weight:600;color:var(--color-yankees-blue)}.team-details-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:0}.team-details-container[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%]{padding:1rem}.team-details-container[_ngcontent-%COMP%] .team-detail[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem}.team-details-container[_ngcontent-%COMP%] .team-detail[_ngcontent-%COMP%] .team-member-info[_ngcontent-%COMP%]{display:flex;min-width:0px;flex:1 1 0%;flex-direction:column}.team-details-container[_ngcontent-%COMP%] .team-detail[_ngcontent-%COMP%] .team-member-info[_ngcontent-%COMP%] .team-member-profile[_ngcontent-%COMP%]{display:block}.team-details-container[_ngcontent-%COMP%] .team-detail[_ngcontent-%COMP%] .team-member-info[_ngcontent-%COMP%] .team-member-name[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.875rem;line-height:1.25rem;font-weight:500;color:var(--color-yankees-blue)}.team-details-container[_ngcontent-%COMP%] .team-detail[_ngcontent-%COMP%] .team-member-info[_ngcontent-%COMP%] .team-member-email[_ngcontent-%COMP%]{margin-left:2rem;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.75rem;line-height:1rem;color:var(--color-gray-500)}.team-details-container[_ngcontent-%COMP%] .team-detail[_ngcontent-%COMP%] .invite-badge[_ngcontent-%COMP%]{flex-shrink:0;border-radius:9999px;padding:.125rem .5rem;font-size:.75rem;line-height:1rem;font-weight:500;background-color:var(--color-gray-100);color:var(--color-gray-600)}.team-details-container[_ngcontent-%COMP%] .team-detail[_ngcontent-%COMP%] .invite-badge.invite-accepted[_ngcontent-%COMP%], .team-details-container[_ngcontent-%COMP%] .team-detail[_ngcontent-%COMP%] .invite-badge.invite-self_created[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}.team-details-container[_ngcontent-%COMP%] .team-detail[_ngcontent-%COMP%] .invite-badge.invite-application_complete[_ngcontent-%COMP%]{background-color:var(--color-gray-100);color:var(--color-gray-600)}.team-details-container[_ngcontent-%COMP%] .team-detail[_ngcontent-%COMP%] .invite-badge.invite-invited[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.team-details-container[_ngcontent-%COMP%] .team-detail[_ngcontent-%COMP%] .invite-badge.invite-incomplete_application[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(255 237 213 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(194 65 12 / var(--tw-text-opacity, 1))}.team-details-container[_ngcontent-%COMP%] .team-detail[_ngcontent-%COMP%] .invite-badge.invite-rejected[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity, 1))}.team-details-container[_ngcontent-%COMP%] .team-detail[_ngcontent-%COMP%] .resend-action[_ngcontent-%COMP%]{flex-shrink:0}.team-details-container[_ngcontent-%COMP%] .team-detail[_ngcontent-%COMP%]:not(:last-child){margin-bottom:.5rem;border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--color-bright-gray);padding-bottom:.5rem}@media (min-width: 768px){.remove-teammate-dialogbox[_ngcontent-%COMP%]{max-width:30dvw}}.remove-teammate-dialogbox[_ngcontent-%COMP%] com-card-header[_ngcontent-%COMP%], .remove-teammate-dialogbox[_ngcontent-%COMP%] com-card-footer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}@media (min-width: 768px){.resend-invite-dialogbox[_ngcontent-%COMP%]{max-width:30dvw}}.resend-invite-dialogbox[_ngcontent-%COMP%] com-card-header[_ngcontent-%COMP%], .resend-invite-dialogbox[_ngcontent-%COMP%] com-card-footer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.team-selector[_ngcontent-%COMP%]{margin-top:1rem;margin-bottom:1rem;border-radius:.5rem;border-width:1px;border-style:solid;border-color:var(--color-bright-gray);background-color:var(--color-white);padding:.75rem 1rem}.team-selector[_ngcontent-%COMP%] .team-selector-label[_ngcontent-%COMP%]{margin-bottom:.375rem;display:block;font-size:.875rem;line-height:1.25rem;font-weight:500;color:var(--color-gray-500)}.team-selector[_ngcontent-%COMP%] .select[_ngcontent-%COMP%]{display:flex;height:2rem;width:100%;cursor:pointer;align-items:center;gap:.5rem;border-radius:.375rem;border-width:1px;border-style:solid;border-color:var(--color-bright-gray);background-color:var(--color-gray-50);padding-left:.75rem;padding-right:.75rem;font-size:.875rem;line-height:1.25rem;font-weight:500;color:var(--color-yankees-blue);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.team-selector[_ngcontent-%COMP%] .select[_ngcontent-%COMP%]:hover{--tw-border-opacity: 1;border-color:rgb(133 163 255 / var(--tw-border-opacity, 1))}.team-selector[_ngcontent-%COMP%] .select[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{width:100%;cursor:pointer;border-width:0px;background-color:transparent;font-size:.875rem;line-height:1.25rem;font-weight:500;color:var(--color-yankees-blue)}.team-selector[_ngcontent-%COMP%] .select[_ngcontent-%COMP%] select[_ngcontent-%COMP%]:focus{outline:2px solid transparent;outline-offset:2px}.edit-team-members-dialog[_ngcontent-%COMP%]{max-height:90dvh;width:100%}@media (min-width: 768px){.edit-team-members-dialog[_ngcontent-%COMP%]{width:30dvw}}.edit-team-members-dialog[_ngcontent-%COMP%] com-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.problem-statement-prompt[_ngcontent-%COMP%]{margin-top:1rem;display:flex;justify-content:space-between;overflow:hidden;border-radius:.5rem}.problem-statement-prompt[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;gap:.75rem;padding:.75rem}.problem-statement-prompt[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:.875rem;line-height:1.25rem;color:var(--color-yankees-blue)}.problem-statement-prompt[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] p[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-weight:600}.problem-statement-dialog[_ngcontent-%COMP%]{max-height:90dvh}@media (min-width: 768px){.problem-statement-dialog[_ngcontent-%COMP%]{width:30dvw}}.problem-statement-dialog[_ngcontent-%COMP%] com-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.pending-invites-section[_ngcontent-%COMP%]{margin-bottom:1rem}.pending-invites-section[_ngcontent-%COMP%] com-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.pending-invites-section[_ngcontent-%COMP%] .invite-card[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding-top:.5rem;padding-bottom:.5rem}.pending-invites-section[_ngcontent-%COMP%] .invite-card[_ngcontent-%COMP%] .invite-info[_ngcontent-%COMP%]{display:flex;min-width:0px;flex-direction:column}.pending-invites-section[_ngcontent-%COMP%] .invite-card[_ngcontent-%COMP%] .invite-info[_ngcontent-%COMP%] .invite-team-name[_ng
1content-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.875rem;line-height:1.25rem;font-weight:600;color:var(--color-yankees-blue)}.pending-invites-section[_ngcontent-%COMP%] .invite-card[_ngcontent-%COMP%] .invite-info[_ngcontent-%COMP%] .invite-members[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem;color:var(--color-gray-500)}.pending-invites-section[_ngcontent-%COMP%] .invite-card[_ngcontent-%COMP%] .invite-actions[_ngcontent-%COMP%]{display:flex;flex-shrink:0;gap:.5rem}.pending-invites-section[_ngcontent-%COMP%] .invite-card[_ngcontent-%COMP%]:not(:last-child){border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--color-bright-gray)}@media (min-width: 768px){.deactivate-team-dialog[_ngcontent-%COMP%]{max-width:30dvw}}.deactivate-team-dialog[_ngcontent-%COMP%] com-card-header[_ngcontent-%COMP%], .deactivate-team-dialog[_ngcontent-%COMP%] com-card-footer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.track-details[_ngcontent-%COMP%]{margin-top:1rem;overflow:hidden;border-radius:.5rem;border-width:1px;border-style:solid;border-color:var(--color-bright-gray)}.track-details[_ngcontent-%COMP%] com-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.track-details[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%]{padding:1rem}.track-details[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .track-name[_ngcontent-%COMP%]{margin-bottom:.5rem;font-size:1rem;line-height:1.5rem;font-weight:500;color:var(--color-yankees-blue)}.track-details[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .problem-statement-section[_ngcontent-%COMP%]{margin-top:.75rem;border-radius:.5rem;border-width:1px;border-style:solid;border-color:var(--color-bright-gray);background-color:var(--color-gray-50);padding:.75rem}.track-details[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .problem-statement-section[_ngcontent-%COMP%] .problem-label[_ngcontent-%COMP%]{margin-bottom:.25rem;font-size:.75rem;line-height:1rem;font-weight:500;color:var(--color-gray-500)}.track-details[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .problem-statement-section[_ngcontent-%COMP%] .problem-name[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem;font-weight:500;color:var(--color-yankees-blue)}.application-incomplete-popup[_ngcontent-%COMP%]{margin-top:1rem;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.application-incomplete-popup[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%]{padding:1rem}.application-incomplete-popup[_ngcontent-%COMP%] .complete-application-link[_ngcontent-%COMP%]{margin-left:.25rem;display:inline-flex;cursor:pointer;align-items:center;gap:.25rem;white-space:nowrap;font-size:.875rem;line-height:1.25rem;font-weight:600;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.application-incomplete-popup[_ngcontent-%COMP%] .complete-application-link[_ngcontent-%COMP%]:hover{text-decoration-line:underline}"]})}}return e})();var Rt=s(20365);const xc=e=>["/builds",e];function Rc(e,a){1&e&&(t.j41(0,"div",17),t.nrm(1,"app-loading-spinner"),t.j41(2,"p"),t.EFF(3,"Loading marking criteria..."),t.k0s()())}function Tc(e,a){if(1&e&&(t.j41(0,"span",25),t.EFF(1),t.k0s()),2&e){t.XpG();const n=t.sdS(12),i=t.XpG();t.Y8G("nbPopover",n),t.R7$(),t.JRh(i.teamData.team.problem_statement.display_id)}}function Fc(e,a){1&e&&(t.j41(0,"span",21),t.EFF(1,"N/A"),t.k0s())}function Dc(e,a){if(1&e&&t.nrm(0,"div",26),2&e){const n=t.XpG(2);t.Y8G("innerHTML",null==n.teamData||null==n.teamData.team||null==n.teamData.team.problem_statement?null:n.teamData.team.problem_statement.title,t.npT)}}function jc(e,a){if(1&e&&(t.j41(0,"div",19)(1,"span",20),t.EFF(2,"PPT Link:"),t.k0s(),t.j41(3,"a",27),t.EFF(4),t.k0s()()),2&e){const n=t.XpG(2);t.R7$(3),t.Y8G("href",n.teamData.submission.file_attachment.url,t.B4B),t.R7$(),t.JRh(n.teamData.submission.file_attachment.name)}}function Gc(e,a){if(1&e&&(t.j41(0,"div",19)(1,"span",20),t.EFF(2,"Submission Link:"),t.k0s(),t.j41(3,"a",28),t.EFF(4),t.k0s()()),2&e){const n=t.XpG(2);t.R7$(3),t.Y8G("href",n.teamData.submission.link,t.B4B),t.R7$(),t.JRh(n.teamData.submission.link)}}function Ec(e,a){if(1&e&&(t.j41(0,"div",19)(1,"span",20),t.EFF(2,"Project:"),t.k0s(),t.j41(3,"a",29),t.EFF(4),t.k0s()()),2&e){const n=t.XpG(2);t.R7$(3),t.Y8G("routerLink",t.eq3(2,xc,n.teamData.team.community_build.slug)),t.R7$(),t.JRh(n.teamData.team.community_build.name)}}function Sc(e,a){if(1&e&&(t.j41(0,"div",18)(1,"div",19)(2,"span",20),t.EFF(3,"Track:"),t.k0s(),t.j41(4,"span",21),t.EFF(5),t.k0s()(),t.j41(6,"div",19)(7,"span",20),t.EFF(8,"Problem Statement:"),t.k0s(),t.DNE(9,Tc,2,2,"span",22)(10,Fc,2,0,"span",23)(11,Dc,1,1,"ng-template",null,0,t.C5r),t.k0s(),t.DNE(13,jc,5,2,"div",24)(14,Gc,5,2,"div",24)(15,Ec,5,4,"div",24),t.k0s()),2&e){const n=t.XpG();t.R7$(5),t.JRh((null==n.teamData||null==n.teamData.team||null==n.teamData.team.track?null:n.teamData.team.track.name)||"N/A"),t.R7$(4),t.Y8G("ngIf",null==n.teamData||null==n.teamData.team?null:n.teamData.team.problem_statement),t.R7$(),t.Y8G("ngIf",!(null!=n.teamData&&null!=n.teamData.team&&n.teamData.team.problem_statement)),t.R7$(3),t.Y8G("ngIf",null==n.teamData||null==n.teamData.submission?null:n.teamData.submission.file_attachment),t.R7$(),t.Y8G("ngIf",(null==n.teamData||null==n.teamData.submission?null:n.teamData.submission.link)&&!(null!=n.teamData&&null!=n.teamData.submission&&n.teamData.submission.file_attachment)),t.R7$(),t.Y8G("ngIf",null==n.teamData||null==n.teamData.team?null:n.teamData.team.community_build)}}function $c(e,a){if(1&e&&(t.j41(0,"div",42)(1,"label",43),t.EFF(2),t.j41(3,"span",44),t.EFF(4),t.k0s()(),t.j41(5,"div",45),t.nrm(6,"input",46),t.j41(7,"span",47),t.EFF(8),t.k0s()()()),2&e){let n,i;const o=a.$implicit,r=a.index,c=t.XpG(3);t.R7$(2),t.SpI(" ",o.text," "),t.R7$(2),t.Lme("(",o.min," - ",o.max,")"),t.R7$(2),t.xc7("--slider-progress",((null==(n=c.scoreForm.get("criteria_"+r))?null:n.value)-o.min)/(o.max-o.min)*100+"%"),t.Y8G("formControlName","criteria_"+r)("min",o.min)("max",o.max)("step",1),t.R7$(2),t.JRh((null==(i=c.scoreForm.get("criteria_"+r))?null:i.value)||o.min)}}function Ic(e,a){if(1&e&&(t.j41(0,"div",35)(1,"div",36)(2,"h5",37),t.EFF(3,"Marking Criteria"),t.k0s(),t.j41(4,"div",38)(5,"span",39),t.EFF(6,"Total Score:"),t.k0s(),t.j41(7,"span",40),t.EFF(8),t.k0s()()(),t.DNE(9,$c,9,10,"div",41),t.k0s()),2&e){const n=t.XpG(2);t.R7$(8),t.Lme("",n.totalScore," / ",n.maxTotalScore,""),t.R7$(),t.Y8G("ngForOf",n.markingCriteria)}}function zc(e,a){if(1&e&&(t.j41(0,"form",30),t.DNE(1,Ic,10,3,"div",31),t.j41(2,"div",32)(3,"label",33),t.EFF(4,"Remarks (Optional)"),t.k0s(),t.nrm(5,"textarea",34),t.k0s()()),2&e){const n=t.XpG();t.Y8G("formGroup",n.scoreForm),t.R7$(),t.Y8G("ngIf",n.hasMarkingCriteria&&n.markingCriteria.length>0)}}function Hc(e,a){1&e&&t.nrm(0,"nb-icon",48)}function Yc(e,a){1&e&&t.nrm(0,"nb-icon",48)}let Bc=(()=>{class e{constructor(n,i,o,r,c){this.dialogRef=n,this.fb=i,this.hackathonTeamRoundScoreService=o,this.toastrService=r,this.roundService=c,this.isSubmitting=!1,this.isLoadingCriteria=!0,this.markingCriteria=[],this.hasMarkingCriteria=!1,this.totalScore=0,this.maxTotalScore=0}ngOnInit(){this.loadMarkingCriteria()}loadMarkingCriteria(){this.roundService.showMarkingCriteria(this.teamData.team.round.id).subscribe({next:n=>{this.hasMarkingCriteria=n.has_marking_criteria,this.markingCriteria=n.marking_criteria||[],this.maxTotalScore=this.markingCriteria.reduce((i,o)=>i+o.max,0),this.isLoadingCriteria=!1,this.initForm()},error:()=>{this.isLoadingCriteria=!1,this.initForm()}})}initForm(){const n={},i=this.teamData?.score;this.hasMarkingCriteria&&this.markingCriteria.length>
10?this.markingCriteria.forEach((o,r)=>{n[`criteria_${r}`]=[i?.score?.[r]?.score||o.min,[d.k0.required]]}):n.total_score=[i?.total_score||1,[d.k0.required]],n.remarks=[i?.remarks||""],this.scoreForm=this.fb.group(n),this.hasMarkingCriteria&&this.markingCriteria.length>0&&(this.calculateTotalScore(),this.scoreForm.valueChanges.subscribe(()=>this.calculateTotalScore()))}calculateTotalScore(){let n=0;this.markingCriteria.forEach((i,o)=>{const r=this.scoreForm.get(`criteria_${o}`)?.value;r&&(n+=Number(r))}),this.totalScore=n}getScoreOptions(n,i){const o=[];for(let r=n;r<=i;r++)o.push(r);return o}submitScore(n){if("submitted"===n&&this.scoreForm.invalid)return void this.toastrService.warningDialog("Please fill all required fields");this.isSubmitting=!0;const i=this.prepareScoreData(n);this.hackathonTeamRoundScoreService.submitScore(i,this.teamData.score.id,this.hackathon.id).subscribe({next:o=>{this.toastrService.successDialog("submitted"===n?"Score submitted successfully":"Score saved as draft"),this.dialogRef.close(o)},error:()=>{this.toastrService.errorDialog("submitted"===n?"Failed to submit score":"Failed to save draft"),this.isSubmitting=!1}})}prepareScoreData(n){const i=this.scoreForm.value,o={remarks:i.remarks,status:n};return this.hasMarkingCriteria&&this.markingCriteria.length>0?(o.score=this.markingCriteria.map((r,c)=>({text:r.text,score:i[`criteria_${c}`]})),o.total_score=this.totalScore):o.total_score=i.total_score,o}close(){this.dialogRef.close()}static{this.\u0275fac=function(i){return new(i||e)(t.rXU(g.ybQ),t.rXU(d.ok),t.rXU(_.U3),t.rXU(_.tw),t.rXU(_.wE))}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["commudle-mentor-scoring-dialog"]],inputs:{teamData:"teamData",hackathon:"hackathon"},standalone:!1,decls:26,vars:13,consts:[["psPopover",""],[1,"scoring-dialog"],[1,"header-content"],[1,"dialog-title"],["nbButton","","ghost","","size","small","shape","round",1,"close-button",3,"click"],["icon","close"],[1,"team-info-header"],[1,"team-name"],[1,"round-badge"],["class","loading-section",4,"ngIf"],["class","info-section",4,"ngIf"],["class","score-form",3,"formGroup",4,"ngIf"],[1,"dialog-actions"],["nbButton","","ghost","",3,"click","disabled"],["nbButton","","status","basic",3,"click","disabled"],["icon","loader-outline","class","spinning",4,"ngIf"],["nbButton","","status","primary",3,"click","disabled"],[1,"loading-section"],[1,"info-section"],[1,"info-item"],[1,"info-label"],[1,"info-value"],["class","info-link","nbPopoverTrigger","click","nbPopoverPlacement","bottom",3,"nbPopover",4,"ngIf"],["class","info-value",4,"ngIf"],["class","info-item",4,"ngIf"],["nbPopoverTrigger","click","nbPopoverPlacement","bottom",1,"info-link",3,"nbPopover"],[1,"ps-popover",3,"innerHTML"],["target","_blank",1,"info-link",3,"href"],["target","_blank","rel","noopener noreferrer",1,"info-link",3,"href"],["target","_blank",1,"info-link",3,"routerLink"],[1,"score-form",3,"formGroup"],["class","criteria-section",4,"ngIf"],[1,"remarks-section"],[1,"remarks-label"],["nbInput","","fullWidth","","placeholder","Add your remarks for the team...","formControlName","remarks","rows","4"],[1,"criteria-section"],[1,"section-header"],[1,"section-title"],[1,"total-score-display"],[1,"total-label"],[1,"total-value"],["class","criteria-item",4,"ngFor","ngForOf"],[1,"criteria-item"],[1,"criteria-label"],[1,"criteria-range"],[1,"slider-container"],["type","range",1,"score-slider",3,"formControlName","min","max","step"],[1,"slider-value"],["icon","loader-outline",1,"spinning"]],template:function(i,o){1&i&&(t.j41(0,"com-card",1)(1,"com-card-header")(2,"div",2)(3,"h4",3),t.EFF(4),t.k0s(),t.j41(5,"button",4),t.bIt("click",function(){return o.close()}),t.nrm(6,"nb-icon",5),t.k0s()(),t.j41(7,"div",6)(8,"p",7),t.EFF(9),t.k0s(),t.j41(10,"span",8),t.EFF(11),t.k0s()()(),t.j41(12,"com-card-body"),t.DNE(13,Rc,4,0,"div",9)(14,Sc,16,6,"div",10)(15,zc,6,2,"form",11),t.k0s(),t.j41(16,"com-card-footer")(17,"div",12)(18,"button",13),t.bIt("click",function(){return o.close()}),t.EFF(19,"Cancel"),t.k0s(),t.j41(20,"button",14),t.bIt("click",function(){return o.submitScore("draft")}),t.DNE(21,Hc,1,0,"nb-icon",15),t.EFF(22),t.k0s(),t.j41(23,"button",16),t.bIt("click",function(){return o.submitScore("submitted")}),t.DNE(24,Yc,1,0,"nb-icon",15),t.EFF(25),t.k0s()()()()),2&i&&(t.R7$(4),t.SpI(" ","submitted"===(null==o.teamData||null==o.teamData.score?null:o.teamData.score.status)||"draft"===(null==o.teamData||null==o.teamData.score?null:o.teamData.score.status)?"Update Score":"Add Score"," "),t.R7$(5),t.JRh(null==o.teamData||null==o.teamData.team?null:o.teamData.team.name),t.R7$(2),t.JRh(null==o.teamData||null==o.teamData.team||null==o.teamData.team.round?null:o.teamData.team.round.name),t.R7$(2),t.Y8G("ngIf",o.isLoadingCriteria),t.R7$(),t.Y8G("ngIf",!o.isLoadingCriteria),t.R7$(),t.Y8G("ngIf",!o.isLoadingCriteria),t.R7$(3),t.Y8G("disabled",o.isSubmitting),t.R7$(2),t.Y8G("disabled",o.isSubmitting),t.R7$(),t.Y8G("ngIf",o.isSubmitting),t.R7$(),t.SpI(" ",o.isSubmitting?"Saving...":"Save as Draft"," "),t.R7$(),t.Y8G("disabled",o.isSubmitting||(null==o.scoreForm?null:o.scoreForm.invali
1d)),t.R7$(),t.Y8G("ngIf",o.isSubmitting),t.R7$(),t.SpI(" ",o.isSubmitting?"Submitting...":"Submit"," "))},dependencies:[m.Sq,m.bT,f.Wk,d.qT,d.me,d.MR,d.BC,d.cb,d.j4,d.JD,g.YP2,g.i6h,g.tHu,g.vs7,Rt.N,v.v,x.W,w.H,E.k],styles:[".scoring-dialog[_ngcontent-%COMP%]{max-height:90dvh}@media (min-width: 768px){.scoring-dialog[_ngcontent-%COMP%]{min-width:500px;max-width:600px}}.scoring-dialog[_ngcontent-%COMP%] com-card-header[_ngcontent-%COMP%]{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--color-bright-gray);padding:.5rem 1rem;background:linear-gradient(135deg,#f7f7f8,#fff,#f7f7f8)}.scoring-dialog[_ngcontent-%COMP%] com-card-header[_ngcontent-%COMP%]:is(.com-dark *){border-color:var(--color-gray-700);background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #080808 var(--tw-gradient-from-position);--tw-gradient-to: rgb(8 8 8 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: rgb(20 20 20 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #141414 var(--tw-gradient-via-position), var(--tw-gradient-to);--tw-gradient-to: #080808 var(--tw-gradient-to-position);color:var(--color-twhite)}.scoring-dialog[_ngcontent-%COMP%] com-card-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%]{margin-bottom:.5rem;display:flex;align-items:center;justify-content:space-between}.scoring-dialog[_ngcontent-%COMP%] com-card-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .dialog-title[_ngcontent-%COMP%]{margin:0;font-size:1rem;line-height:1.5rem;font-weight:600;color:var(--color-yankees-blue)}.scoring-dialog[_ngcontent-%COMP%] com-card-header[_ngcontent-%COMP%] .team-info-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.scoring-dialog[_ngcontent-%COMP%] com-card-header[_ngcontent-%COMP%] .team-info-header[_ngcontent-%COMP%] .team-name[_ngcontent-%COMP%]{margin:0;font-size:.875rem;line-height:1.25rem;font-weight:500;color:var(--color-yankees-blue)}.scoring-dialog[_ngcontent-%COMP%] com-card-header[_ngcontent-%COMP%] .team-info-header[_ngcontent-%COMP%] .round-badge[_ngcontent-%COMP%]{display:inline-block;border-radius:9999px;padding:.125rem .5rem;font-size:.75rem;line-height:1rem;font-weight:500;--tw-bg-opacity: 1;background-color:rgb(214 224 255 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(41 82 204 / var(--tw-text-opacity, 1))}.scoring-dialog[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%]{padding:1rem}.scoring-dialog[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .loading-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;padding-top:2rem;padding-bottom:2rem}.scoring-dialog[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .loading-section[_ngcontent-%COMP%] .spinning[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_com-spin var(--tw-animate-duration, 1s) var(--tw-animate-easing, linear) var(--tw-animate-delay, 0s) var(--tw-animate-iteration, infinite) var(--tw-animate-fill, none);font-size:1.5rem;line-height:2rem;--tw-text-opacity: 1;color:rgb(51 102 255 / var(--tw-text-opacity, 1))}.scoring-dialog[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .loading-section[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:.875rem;line-height:1.25rem;color:var(--color-gray-500)}.scoring-dialog[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .info-section[_ngcontent-%COMP%]{margin-bottom:1rem;gap:1rem;border-radius:.5rem;border-width:1px;border-style:solid;border-color:var(--color-bright-gray);background-color:var(--color-gray-50);padding:.75rem}.scoring-dialog[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .info-section[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%]{display:flex;gap:.5rem;font-size:.875rem;line-height:1.25rem}.scoring-dialog[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .info-section[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .info-label[_ngcontent-%COMP%]{flex-shrink:0;color:var(--color-gray-500)}.scoring-dialog[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .info-section[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .info-value[_ngcontent-%COMP%]{color:var(--color-yankees-blue)}.scoring-dialog[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .info-section[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .info-link[_ngcontent-%COMP%]{cursor:pointer;--tw-text-opacity: 1;color:rgb(51 102 255 / var(--tw-text-opacity, 1));text-decoration-line:none}.scoring-dialog[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .info-section[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .info-link[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(41 82 204 / var(--tw-text-opacity, 1));text-decoration-line:underline}.scoring-dialog[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .info-section[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .ps-popover[_ngcontent-%COMP%]{max-width:300px;padding:.5rem;font-size:.75rem;line-height:1rem;color:var(--color-yankees-blue)}.scoring-dialog[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .score-form[_ngcontent-%COMP%] .criteria-section[_ngcontent-%COMP%]{margin-bottom:1rem}.scoring-dialog[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .score-form[_ngcontent-%COMP%] .criteria-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%]{margin-bottom:.75rem;display:flex;align-items:center;justify-content:space-between}.scoring-dialog[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .score-form[_ngcontent-%COMP%] .criteria-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%] .section-title[_ngcontent-%COMP%]{margin:0;font-size:.875rem;line-height:1.25rem;font-weight:600;color:var(--color-yankees-blue)}.scoring-dialog[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .score-form[_ngcontent-%COMP%] .criteria-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%] .total-score-display[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(214 224 255 / var(--tw-bg-opacity, 1));padding:.25rem .75rem}.scoring-dialog[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .score-form[_ngcontent-%COMP%] .criteria-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%] .total-score-display[_ngcontent-%COMP%] .total-label[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem;font-weight:500;color:var(--color-tyankees-blue)}.scoring-dialog[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .score-form[_ngcontent-%COMP%] .criteria-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%] .total-score-display[_ngcontent-%COMP%] .total-value[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem;font-weight:600;--tw-text-opacity: 1;color:rgb(51 102 255 / var(--tw-text-opacity, 1))}.scoring-dialog[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .score-form[_ngcontent-%COMP%] .criteria-section[_ngcontent-%COMP%] .criteria-item[_ngcontent-%COMP%]{margin-bottom:.75rem}.scoring-dialog[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .score-form[_ngcontent-%COMP%] .criteria-section[_ngcontent-%COMP%] .criteria-item[_ngcontent-%COMP%] .criteria-label[_ngcontent-%COMP%]{margin-bottom:.375rem;display:block;font-size:.875rem;line-height:1.25rem;font-weight:500;color:var(--color-yankees-blue)}.scoring-dialog[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .score-form[_ngcontent-%COMP%] .criteria-section[_ngcontent-%COMP%] .criteria-item[_ngcontent-%COMP%] .criteria-label[_ngcontent-%COMP%] .criteria-range[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem;font-weight:400;color:var(--color-gray-500)}.scoring-dialog[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .score-form[_ngcontent-%COMP%] .criteria-section[_ngcontent-%COMP%] .criteria-item[_ngcontent-%COMP%] .slider-container[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem}.scoring-dialog[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .score-form[_ngcontent-%COMP%] .criteria-section[_ngcontent-%COMP%] .criteria-item[_ngcontent-%COMP%] .slider-container[_ngcontent-%COMP%] .score-slider[_ngcontent-%COMP%]{height:.375rem;flex:1 1 0%;cursor:pointer;appearance:none;border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1));background:linear-gradient(to right,var(--slider-color, #3366ff) 0%,var(--slider-color, #3366ff) var(--slider-progress, 0%),#e4e9f2 var(--slider-progress, 0%),#e4e9f2 100%);border-radius:999px}.scoring-dialog[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .score-form[_ngcontent-%COMP%] .criteria-section[_ngcontent-%COMP%] .criteria-item[_ngcontent-%COMP%] .slider-container[_ngcontent-%COMP%] .score-slider[_ngcontent-%COMP%]::-webkit-slider-thumb{height:1rem;width:1rem;cursor:pointer;appearance:none;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(51 102 255 / var(--tw-bg-opacity, 1));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);
1--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.scoring-dialog[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .score-form[_ngcontent-%COMP%] .criteria-section[_ngcontent-%COMP%] .criteria-item[_ngcontent-%COMP%] .slider-container[_ngcontent-%COMP%] .score-slider[_ngcontent-%COMP%]::-webkit-slider-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(41 82 204 / var(--tw-bg-opacity, 1))}.scoring-dialog[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .score-form[_ngcontent-%COMP%] .criteria-section[_ngcontent-%COMP%] .criteria-item[_ngcontent-%COMP%] .slider-container[_ngcontent-%COMP%] .score-slider[_ngcontent-%COMP%]::-moz-range-thumb{height:1rem;width:1rem;cursor:pointer;border-radius:9999px;border-width:0px;--tw-bg-opacity: 1;background-color:rgb(51 102 255 / var(--tw-bg-opacity, 1))}.scoring-dialog[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .score-form[_ngcontent-%COMP%] .criteria-section[_ngcontent-%COMP%] .criteria-item[_ngcontent-%COMP%] .slider-container[_ngcontent-%COMP%] .score-slider[_ngcontent-%COMP%]::-moz-range-progress{border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(51 102 255 / var(--tw-bg-opacity, 1));height:6px}.scoring-dialog[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .score-form[_ngcontent-%COMP%] .criteria-section[_ngcontent-%COMP%] .criteria-item[_ngcontent-%COMP%] .slider-container[_ngcontent-%COMP%] .slider-value[_ngcontent-%COMP%]{min-width:.5rem;text-align:center;font-size:.875rem;line-height:1.25rem;font-weight:600;--tw-text-opacity: 1;color:rgb(51 102 255 / var(--tw-text-opacity, 1));border-radius:.375rem;--tw-bg-opacity: 1;background-color:rgb(214 224 255 / var(--tw-bg-opacity, 1));padding:.125rem .5rem}.scoring-dialog[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .score-form[_ngcontent-%COMP%] .total-score-section[_ngcontent-%COMP%]{margin-bottom:1rem}.scoring-dialog[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .score-form[_ngcontent-%COMP%] .total-score-section[_ngcontent-%COMP%] .score-label[_ngcontent-%COMP%]{margin-bottom:.375rem;display:block;font-size:.875rem;line-height:1.25rem;font-weight:500;color:var(--color-yankees-blue)}.scoring-dialog[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .score-form[_ngcontent-%COMP%] .total-score-section[_ngcontent-%COMP%] .slider-container[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem}.scoring-dialog[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .score-form[_ngcontent-%COMP%] .total-score-section[_ngcontent-%COMP%] .slider-container[_ngcontent-%COMP%] .score-slider[_ngcontent-%COMP%]{height:.375rem;flex:1 1 0%;cursor:pointer;appearance:none;border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.scoring-dialog[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .score-form[_ngcontent-%COMP%] .total-score-section[_ngcontent-%COMP%] .slider-container[_ngcontent-%COMP%] .slider-value[_ngcontent-%COMP%]{min-width:.5rem;text-align:center;font-size:.875rem;line-height:1.25rem;font-weight:600;--tw-text-opacity: 1;color:rgb(41 82 204 / var(--tw-text-opacity, 1));border-radius:.375rem;--tw-bg-opacity: 1;background-color:rgb(214 224 255 / var(--tw-bg-opacity, 1));padding:.125rem .5rem}.scoring-dialog[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] .score-form[_ngcontent-%COMP%] .remarks-section[_ngcontent-%COMP%] .remarks-label[_ngcontent-%COMP%]{margin-bottom:.375rem;display:block;font-size:.875rem;line-height:1.25rem;font-weight:500;color:var(--color-yankees-blue)}.scoring-dialog[_ngcontent-%COMP%] com-card-footer[_ngcontent-%COMP%]{border-width:0px;border-top-width:1px;border-style:solid;border-color:var(--color-bright-gray);padding:.75rem 1rem}.scoring-dialog[_ngcontent-%COMP%] com-card-footer[_ngcontent-%COMP%] .dialog-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:.5rem}@keyframes _ngcontent-%COMP%_com-spin{to{transform:rotate(360deg)}}.scoring-dialog[_ngcontent-%COMP%] com-card-footer[_ngcontent-%COMP%] .dialog-actions[_ngcontent-%COMP%] .spinning[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_com-spin var(--tw-animate-duration, 1s) var(--tw-animate-easing, linear) var(--tw-animate-delay, 0s) var(--tw-animate-iteration, infinite) var(--tw-animate-fill, none)}"]})}}return e})();var Xc=s(39411),Tt=s(76144),Uc=s(67655),Nc=s(9254);const Lc=["documentViewerDialog"],Vc=["ProblemStatementView"],Ac=["addTeamDialog"],Jc=["cancelSlotDialog"],Wc=["activateSlotDialog"],Qc=["updateMeetingLocationDialog"],qc=["removeBookingDialog"],Ft=e=>["/builds",e],S=(e,a)=>a.id,Dt=(e,a)=>a.text;function Kc(e,a){1&e&&t.EFF(0," - Completed ")}function Zc(e,a){1&e&&t.EFF(0," - Ongoing ")}function ts(e,a){1&e&&t.EFF(0," - Upcoming ")}function ns(e,a){if(1&e&&t.DNE(0,Kc,1,0)(1,Zc,1,0)(2,ts,1,0),2&e){const n=t.XpG().$implicit,i=t.XpG(2);t.vxM(i.moment().isAfter(i.moment(n.end_date))?0:i.moment().isBetween(i.moment(n.date),i.moment(n.end_date),null,"[]")?1:2)}}function es(e,a){if(1&e&&(t.j41(0,"option",19),t.EFF(1),t.DNE(2,ns,3,1),t.k0s()),2&e){const n=a.$implicit;t.Y8G("value",n.id),t.R7$(),t.SpI(" ",n.name," "),t.R7$(),t.vxM(n.date&&n.end_date?2:-1)}}function os(e,a){if(1&e){const n=t.RV6();t.j41(0,"div",16)(1,"label"),t.EFF(2,"Select Round:"),t.k0s(),t.j41(3,"select",17),t.mxI("ngModelChange",function(o){t.eBV(n);const r=t.XpG();return t.DH7(r.selectedRoundId,o)||(r.selectedRoundId=o),t.Njj(o)}),t.bIt("change",function(o){t.eBV(n);const r=t.XpG();return t.Njj(r.onRoundChange(o))}),t.DNE(4,es,3,3,"option",18),t.k0s()()}if(2&e){const n=t.XpG();t.R7$(3),t.R50("ngModel",n.selectedRoundId),t.R7$(),t.Y8G("ngForOf",n.rounds)}}function is(e,a){1&e&&(t.j41(0,"div",20),t.nrm(1,"app-loading-spinner"),t.k0s())}function as(e,a){if(1&e&&(t.j41(0,"a",29),t.EFF(1),t.k0s()),2&e){const n=t.XpG(3);t.Y8G("href",n.currentMentor.meeting_location,t.B4B),t.R7$(),t.SpI(" ",n.currentMentor.meeting_location," ")}}function rs(e,a){if(1&e&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&e){const n=t.XpG(3);t.R7$(),t.JRh(n.currentMentor.meeting_location)}}function cs(e,a){if(1&e){const n=t.RV6();t.j41(0,"div",23)(1,"span",28),t.EFF(2,"Meeting Location:"),t.k0s(),t.DNE(3,as,2,2,"a",29)(4,rs,2,1,"span"),t.j41(5,"button",30),t.bIt("click",function(){t.eBV(n);const o=t.XpG(2);return t.Njj(o.openAddMeetingLocationDialog())}),t.nrm(6,"fa-icon",31),t.k0s()()}if(2&e){const n=t.XpG(2);t.R7$(3),t.vxM(n.currentMentor.meeting_location.startsWith("http://")||n.currentMentor.meeting_location.startsWith("https://")?3:4),t.R7$(3),t.Y8G("icon",n.icons.faEdit)}}function ss(e,a){if(1&e){const n=t.RV6();t.j41(0,"div",24)(1,"button",32),t.bIt("click",function(){t.eBV(n);const o=t.XpG(2);return t.Njj(o.openAddMeetingLocationDialog())}),t.nrm(2,"fa-icon",31),t.EFF(3," \xa0 Add Meeting Location "),t.k0s()()}if(2&e){const n=t.XpG(2);t.R7$(2),t.Y8G("icon",n.icons.faPlus)}}function ls(e,a){if(1&e&&(t.j41(0,"th")(1,"div",33)(2,"div",34),t.EFF(3),t.k0s(),t.j41(4,"div",34),t.EFF(5),t.k0s(),t.j41(6,"div",35),t.EFF(7),t.k0s()()()),2&e){const n=a.$implicit,i=a.index,o=t.XpG(2);t.R7$(3),t.SpI("Slot ",i+1,""),t.R7$(2),t.SpI(" ",o.moment(n.starts_at).format("DD MMM")," "),t.R7$(2),t.Lme(" ",o.moment(n.starts_at).format("h:mm A")," - ",o.moment(n.ends_at).format("h:mm A")," ")}}function ms(e,a){if(1&e&&(t.j41(0,"span",42),t.EFF(1),t.k0s()),2&e){const n=t.XpG().$implicit;
1t.Y8G("title","Current round score: "+n.hackathon_team_round_score.total_score),t.R7$(),t.SpI(" ",n.hackathon_team_round_score.total_score," ")}}function ds(e,a){if(1&e&&(t.j41(0,"span",41),t.EFF(1),t.DNE(2,ms,2,2,"span",42),t.k0s()),2&e){const n=a.$implicit,i=a.$index,o=t.XpG(4);t.R7$(),t.Lme(" ",i+1,", ",n.hackathon_team.name," "),t.R7$(),t.vxM((null==n.hackathon_team_round_score?null:n.hackathon_team_round_score.status)===o.EHackathonTeamRoundScoreStatus.SUBMITTED?2:-1)}}function gs(e,a){if(1&e){const n=t.RV6();t.j41(0,"div",38),t.bIt("click",function(){t.eBV(n);const o=t.XpG(),r=o.$implicit,c=o.index,p=t.XpG(2);return t.Njj(p.openAddTeamDialog(r,c))}),t.j41(1,"div",39),t.EFF(2),t.k0s(),t.j41(3,"div",40),t.Z7z(4,ds,3,3,"span",41,S),t.k0s()()}if(2&e){const n=t.XpG().$implicit;t.R7$(2),t.JRh(n.round_mentor_slot_bookings.length),t.R7$(2),t.Dyx(n.round_mentor_slot_bookings)}}function _s(e,a){if(1&e){const n=t.RV6();t.j41(0,"button",46),t.bIt("click",function(){t.eBV(n);const o=t.XpG(2),r=o.$implicit,c=o.index,p=t.XpG(2);return t.Njj(p.openActivateSlotDialog(r,c))}),t.nrm(1,"fa-icon",31),t.EFF(2," Activate slot "),t.k0s()}if(2&e){const n=t.XpG(4);t.R7$(),t.Y8G("icon",n.icons.faCheck)}}function ps(e,a){if(1&e){const n=t.RV6();t.j41(0,"button",47),t.bIt("click",function(){t.eBV(n);const o=t.XpG(2),r=o.$implicit,c=o.index,p=t.XpG(2);return t.Njj(p.openCancelSlotDialog(r,c))}),t.nrm(1,"fa-icon",31),t.EFF(2," Cancel slot "),t.k0s()}if(2&e){const n=t.XpG(4);t.R7$(),t.Y8G("icon",n.icons.faXmark)}}function us(e,a){if(1&e){const n=t.RV6();t.j41(0,"div",37)(1,"button",43),t.bIt("click",function(){t.eBV(n);const o=t.XpG(),r=o.$implicit,c=o.index,p=t.XpG(2);return t.Njj(p.openAddTeamDialog(r,c))}),t.nrm(2,"fa-icon",31),t.EFF(3," Add teams "),t.k0s(),t.DNE(4,_s,3,1,"button",44)(5,ps,3,1,"button",45),t.k0s()}if(2&e){const n=t.XpG().$implicit,i=t.XpG(2);t.R7$(),t.Y8G("disabled",n.status===i.ERoundMentorSlotStatus.CANCELLED||n.status===i.ERoundMentorSlotStatus.CANCELLED_BY_MENTOR||!i.selectedRound.round_mentor_slot_rule.booking_open||!i.selectedRound.round_mentor_slot_rule.mentor_manages_teams),t.R7$(),t.Y8G("icon",i.icons.faPlus),t.R7$(2),t.vxM(n.status===i.ERoundMentorSlotStatus.CANCELLED||n.status===i.ERoundMentorSlotStatus.CANCELLED_BY_MENTOR?4:5)}}function hs(e,a){if(1&e&&(t.j41(0,"td"),t.DNE(1,gs,6,1,"div",36)(2,us,6,3,"div",37),t.k0s()),2&e){const n=a.$implicit;t.R7$(),t.Y8G("ngIf",(null==n||null==n.round_mentor_slot_bookings?null:n.round_mentor_slot_bookings.length)>0),t.R7$(),t.vxM(null!=n&&null!=n.round_mentor_slot_bookings&&n.roun
1d_mentor_slot_bookings.length?-1:2)}}function bs(e,a){if(1&e&&(t.j41(0,"div",21)(1,"h3"),t.EFF(2,"My Mentorship Slot Timings"),t.k0s(),t.nrm(3,"commudle-alert",22)(4,"br"),t.DNE(5,cs,7,2,"div",23)(6,ss,4,1,"div",24),t.j41(7,"div",25)(8,"table",26)(9,"thead")(10,"tr"),t.DNE(11,ls,8,4,"th",27),t.k0s()(),t.j41(12,"tbody")(13,"tr"),t.DNE(14,hs,3,2,"td",27),t.k0s()()()()()),2&e){const n=t.XpG();t.R7$(3),t.Y8G("info",!0),t.R7$(2),t.vxM(n.currentMentor.meeting_location?5:6),t.R7$(6),t.Y8G("ngForOf",n.roundMentorSlots),t.R7$(3),t.Y8G("ngForOf",n.roundMentorSlots)}}function Cs(e,a){1&e&&(t.j41(0,"div",48)(1,"p"),t.EFF(2,"No teams assigned for this round"),t.k0s()())}function fs(e,a){1&e&&(t.qex(0),t.EFF(1,"Submitted"),t.bVm())}function Ps(e,a){1&e&&(t.qex(0),t.EFF(1,"Draft"),t.bVm())}function Ms(e,a){1&e&&(t.qex(0),t.EFF(1,"Pending"),t.bVm())}function Os(e,a){if(1&e&&(t.j41(0,"div",60)(1,"span",61),t.EFF(2,"Track"),t.k0s(),t.j41(3,"span",65),t.EFF(4),t.k0s()()),2&e){const n=t.XpG().$implicit;t.R7$(4),t.JRh(n.team.track.name)}}function ks(e,a){if(1&e){const n=t.RV6();t.j41(0,"div",60)(1,"span",61),t.EFF(2,"Problem Statement"),t.k0s(),t.j41(3,"span",66),t.bIt("click",function(o){t.eBV(n);const r=t.XpG().$implicit;return t.XpG(3).showProblemStatement(r.team.problem_statement),t.Njj(o.stopPropagation())}),t.EFF(4),t.k0s()()}if(2&e){const n=t.XpG().$implicit;t.R7$(4),t.JRh(n.team.problem_statement.display_id)}}function vs(e,a){if(1&e&&t.nrm(0,"app-user-profile-card-small",70),2&e){const n=a.$implicit;t.Y8G("user",n.user||n)}}function ws(e,a){if(1&e&&(t.j41(0,"div",68),t.Z7z(1,vs,1,1,"app-user-profile-card-small",70,S),t.k0s()),2&e){const n=t.XpG(2).$implicit;t.R7$(),t.Dyx(n.team.team_members)}}function ys(e,a){1&e&&(t.j41(0,"span",69),t.EFF(1,"No member details available"),t.k0s())}function xs(e,a){if(1&e&&(t.j41(0,"div",67),t.DNE(1,ws,3,0,"div",68)(2,ys,2,0,"span",69),t.k0s()),2&e){const n=t.XpG().$implicit;t.R7$(),t.vxM(n.team.team_members&&n.team.team_members.length>0?1:2)}}function Rs(e,a){if(1&e&&(t.j41(0,"div",60)(1,"span",61),t.EFF(2,"Total Score"),t.k0s(),t.j41(3,"span",65),t.EFF(4),t.k0s()()),2&e){const n=t.XpG().$implicit;t.R7$(4),t.JRh(n.score.total_score)}}function Ts(e,a){if(1&e&&(t.j41(0,"a",73),t.EFF(1),t.k0s()),2&e){const n=t.XpG(2).$implicit;t.Y8G("href",n.submission.file_attachment.url,t.B4B),t.R7$(),t.JRh(n.submission.file_attachment.name)}}function Fs(e,a){if(1&e&&(t.j41(0,"a",74),t.EFF(1),t.k0s()),2&e){const n=t.XpG(2).$implicit;t.Y8G("href",n.submission.link,t.B4B),t.R7$(),t.JRh(n.submission.link)}}function Ds(e,a){if(1&e&&(t.j41(0,"div",60)(1,"span",61),t.EFF(2,"Submission"),t.k0s(),t.j41(3,"span",65),t.DNE(4,Ts,2,2,"a",71)(5,Fs,2,2,"a",72),t.k0s()()),2&e){const n=t.XpG().$implicit;t.R7$(4),t.Y8G("ngIf",null==n.submission?null:n.submission.file_attachment),t.R7$(),t.Y8G("ngIf",(null==n.submission?null:n.submission.link)&&!(null!=n.submission&&n.submission.file_attachment))}}function js(e,a){if(1&e&&(t.j41(0,"div",60)(1,"span",61),t.EFF(2,"Project"),t.k0s(),t.j41(3,"a",75),t.EFF(4),t.k0s()()),2&e){const n=t.XpG().$implicit;t.R7$(3),t.Y8G("routerLink",t.eq3(2,Ft,n.team.community_build.slug)),t.R7$(),t.JRh(n.team.community_build.name)}}function Gs(e,a){1&e&&(t.j41(0,"div",60)(1,"span",61),t.EFF(2,"Submission"),t.k0s(),t.j41(3,"span",76),t.EFF(4,"No submission"),t.k0s()())}function Es(e,a){if(1&e&&(t.j41(0,"div",81)(1,"span",82),t.EFF(2),t.k0s(),t.j41(3,"span",83),t.EFF(4),t.k0s()()),2&e){const n=a.$implicit;t.R7$(2),t.JRh(n.text),t.R7$(2),t.JRh(n.score)}}function Ss(e,a){if(1&e&&(t.j41(0,"div",80),t.Z7z(1,Es,5,2,"div",81,Dt),t.k0s()),2&e){const n=t.XpG(2).$implicit;t.R7$(),t.Dyx(n.score.score)}}function $s(e,a){if(1&e){const n=t.RV6();t.j41(0,"div",77)(1,"button",78),t.bIt("click",function(){t.eBV(n);
1const o=t.XpG().$implicit,r=t.XpG(3);return t.Njj(r.showScoreDetailsMap[o.team.id]=!r.showScoreDetailsMap[o.team.id])}),t.j41(2,"span"),t.EFF(3,"Score Details"),t.k0s(),t.nrm(4,"nb-icon",31),t.k0s(),t.DNE(5,Ss,3,0,"div",79),t.k0s()}if(2&e){const n=t.XpG().$implicit,i=t.XpG(3);t.R7$(4),t.Y8G("icon",i.showScoreDetailsMap[n.team.id]?"arrow-ios-upward-outline":"arrow-ios-downward-outline"),t.R7$(),t.Y8G("ngIf",i.showScoreDetailsMap[n.team.id])}}function Is(e,a){if(1&e&&(t.j41(0,"div",85),t.nrm(1,"span",86),t.nI1(2,"stripHtmlExceptLinks"),t.nI1(3,"safeHtml"),t.j41(4,"span",83),t.EFF(5),t.nI1(6,"date"),t.k0s()()),2&e){const n=a.$implicit;t.R7$(),t.Y8G("innerHTML",t.bMT(3,4,t.bMT(2,2,n.details)),t.npT),t.R7$(4),t.JRh(t.i5U(6,6,n.created_at,"short"))}}function zs(e,a){if(1&e&&(t.j41(0,"div",80),t.DNE(1,Is,7,9,"div",84),t.k0s()),2&e){const n=t.XpG(2).$implicit;t.R7$(),t.Y8G("ngForOf",n.team.entity_updates)}}function Hs(e,a){if(1&e){const n=t.RV6();t.j41(0,"div",77)(1,"button",78),t.bIt("click",function(){t.eBV(n);const o=t.XpG().$implicit,r=t.XpG
1(3);return t.Njj(r.showUpdatesMap[o.team.id]=!r.showUpdatesMap[o.team.id])}),t.j41(2,"span"),t.EFF(3),t.k0s(),t.nrm(4,"nb-icon",31),t.k0s(),t.DNE(5,zs,2,1,"div",79),t.k0s()}if(2&e){const n=t.XpG().$implicit,i=t.XpG(3);t.R7$(3),t.SpI("Updates (",n.team.entity_updates.length,")"),t.R7$(),t.Y8G("icon",i.showUpdatesMap[n.team.id]?"arrow-ios-upward-outline":"arrow-ios-downward-outline"),t.R7$(),t.Y8G("ngIf",i.showUpdatesMap[n.team.id])}}function Ys(e,a){if(1&e&&(t.j41(0,"div",81)(1,"span",82),t.EFF(2),t.k0s(),t.j41(3,"span",83),t.EFF(4),t.k0s()()),2&e){const n=a.$implicit;t.AVh("evaluator-submitted",n.has_submitted),t.R7$(2),t.JRh(n.name),t.R7$(2),t.JRh(n.has_submitted?"Scored":"Pending")}}function Bs(e,a){if(1&e&&(t.j41(0,"div",80),t.Z7z(1,Ys,5,4,"div",87,S),t.k0s()),2&e){const n=t.XpG(2).$implicit;t.R7$(),t.Dyx(n.evaluators)}}function Xs(e,a){if(1&e){const n=t.RV6();t.j41(0,"div",77)(1,"button",78),t.bIt("click",function(){t.eBV(n);const o=t.XpG().$implicit,r=t.XpG(3);return t.Njj(r.showEvaluatorsMap[o.team.id]=!r.showEvaluatorsMap[o.team.id])}),t.j41(2,"span"),t.EFF(3),t.k0s(),t.nrm(4,"nb-icon",31),t.k0s(),t.DNE(5,Bs,3,0,"div",79),t.k0s()}if(2&e){const n=t.XpG().$implicit,i=t.XpG(3);t.R7$(3),t.SpI("Other Evaluators (",n.evaluators.length,")"),t.R7$(),t.Y8G("icon",i.showEvaluatorsMap[n.team.id]?"arrow-ios-upward-outline":"arrow-ios-downward-outline"),t.R7$(),t.Y8G("ngIf",i.showEvaluatorsMap[n.team.id])}}function Us(e,a){if(1&e){const n=t.RV6();t.j41(0,"div",88)(1,"button",89),t.bIt("click",function(){t.eBV(n);
1const o=t.XpG().$implicit,r=t.XpG(3);return t.Njj(r.openScoringDialog(o))}),t.EFF(2),t.k0s()()}if(2&e){const n=t.XpG().$implicit,i=t.XpG(3);t.R7$(),t.Y8G("disabled",!i.moment().isBetween(i.moment(null==i.selectedRound?null:i.selectedRound.date),i.moment(null==i.selectedRound?null:i.selectedRound.end_date),null,"[]")),t.R7$(),t.SpI(" ",(null==n.score?null:n.score.status)===i.EHackathonTeamRoundScoreStatus.SUBMITTED||(null==n.score?null:n.score.status)===i.EHackathonTeamRoundScoreStatus.DRAFT?"Update Score":"Add Score"," ")}}function Ns(e,a){if(1&e&&(t.j41(0,"div",53)(1,"div",54)(2,"span",55),t.EFF(3),t.k0s(),t.j41(4,"span",56),t.DNE(5,fs,2,0,"ng-container",57)(6,Ps,2,0,"ng-container",57)(7,Ms,2,0,"ng-container",57),t.k0s()(),t.j41(8,"div",58),t.DNE(9,Os,5,1,"div",59)(10,ks,5,1,"div",59),t.j41(11,"div",60)(12,"span",61),t.EFF(13,"Members"),t.k0s(),t.j41(14,"span",62),t.EFF(15),t.k0s(),t.DNE(16,xs,3,1,"ng-template",null,7,t.C5r),t.k0s(),t.DNE(18,Rs,5,1,"div",59)(19,Ds,6,2,"div",59)(20,js,5,4,"div",59)(21,Gs,5,0,"div",59)(22,$s,6,2,"div",63)(23,Hs,6,3,"div",63),t.k0s(),t.DNE(24,Xs,6,3,"div",63)(25,Us,3,2,"div",64),t.k0s()),2&e){const n=a.$implicit,i=t.sdS(17),o=t.XpG(3);t.R7$(3),t.JRh(n.team.name),t.R7$(),t.AVh("submitted","submitted"===(null==n.score?null:n.score.status))("draft","draft"===(null==n.score?null:n.score.status)),t.R7$(),t.Y8G("ngIf",(null==n.score?null:n.score.status)===o.EHackathonTeamRoundScoreStatus.SUBMITTED),t.R7$(),t.Y8G("ngIf",(null==n.score?null:n.score.status)===o.EHackathonTeamRoundScoreStatus.DRAFT),t.R7$(),t.Y8G("ngIf",(null==n.score?null:n.score.status)!==o.EHackathonTeamRoundScoreStatus.SUBMITTED&&(null==n.score?null:n.score.status)!==o.EHackathonTeamRoundScoreStatus.DRAFT),t.R7$(2),t.Y8G("ngIf",null==n.team.track?null:n.team.track.name),t.R7$(),t.Y8G("ngIf",n.team.problem_statement),t.R7$(4),t.Y8G("nbPopover",i),t.R7$(),t.SpI(" ",n.team.team_members_count," "),t.R7$(3),t.Y8G("ngIf",null!=(null==n.score?null:n.score.total_score)),t.R7$(),t.Y8G("ngIf",(null==n.submission?null:n.submission.file_attachment)||(null==n.submission?null:n.submission.link)||n.team.community_build),t.R7$(),t.Y8G("ngIf",n.team.community_build),t.R7$(),t.Y8G("ngIf",!(null!=n.submission&&n.submission.file_attachment||null!=n.submission&&n.submission.link||n.team.community_build)),t.R7$(),t.Y8G("ngIf",(null==n.score?null:n.score.score)&&n.score.score.length>0),t.R7$(),t.Y8G("ngIf",n.team.entity_updates&&n.team.entity_updates.length>0),t.R7$(),t.Y8G("ngIf",n.evaluators&&n.evaluators.length>0),t.R7$(),t.Y8G("ngIf",null==o.selectedRound?null:o.selectedRound.has_marking_criteria)}}function Ls(e,a){if(1&e&&(t.j41(0,"div",51),t.DNE(1,Ns,26,20,"div",52),t.k0s()),2&e){const n=t.XpG(2);t.R7$(),t.Y8G("ngForOf",n.teamDetails)}}function Vs(e,a){if(1&e&&(t.j41(0,"div",49),t.DNE(1,Ls,2,1,"div",50),t.k0s()),2&e){const n=t.XpG();t.R7$(),t.Y8G("ngIf",!n.isLoading&&n.teamDetails.length>0)}}function As(e,a){if(1&e&&t.nrm(0,"img",115),2&e){const n=t.XpG().$implicit;t.Y8G("src",n.photo.i32,t.B4B)("alt",n.name)("username",n.username)}}function Js(e,a){if(1&e&&(t.j41(0,"div",116)(1,"span"),t.EFF(2),t.k0s()()),2&e){const n=t.XpG().$implicit;t.Y8G("username",n.username),t.R7$(2),t.JRh(n.name.charAt(0).toUpperCase())}}function Ws(e,a){if(1&e&&(t.j41(0,"div",110)(1,"div",111),t.DNE(2,As,1,3,"img",112)(3,Js,3,2,"div",113),t.k0s(),t.j41(4,"div",114)(5,"span",82),t.EFF(6),t.k0s(),t.j41(7,"span",83),t.EFF(8),t.k0s()()()),2&e){const n=a.$implicit;t.AVh("evaluator-submitted",n.has_submitted),t.R7$(2),t.Y8G("ngIf",null==n.photo?null:n.photo.i32),t.R7$(),t.Y8G("ngIf",!(null!=n.photo&&n.photo.i32)),t.R7$(),t.Y8G("username",n.username),t.R7$(2),t.JRh(n.name),t.R7$(),t.AVh("status-submitted",n.has_submitted),t.R7$(),t.SpI(" ",n.has_submitted?"Scored":"Pending"," ")}}function Qs(e,a){if(1&e&&(t.j41(0,"div",98)(1,"span",107),t.EFF(2,"Other Evaluators:"),t.k0s(),t.j41(3,"div",108),t.Z7z(4,Ws,9,9,"div",109,S),t.k0s()()),2&e){const n=t.XpG().$implicit;t.R7$(4),t.Dyx(n.evaluators)}}function qs(e,a){if(1&e){const n=t.RV6();t.j41(0,"span",117),t.bIt("click",function(){t.eBV(n);
1const o=t.XpG().$implicit,r=t.XpG(3);return t.Njj(r.showProblemStatement(o.team.problem_statement))}),t.EFF(1),t.k0s()}if(2&e){const n=t.XpG().$implicit;t.R7$(),t.SpI(" ",n.team.problem_statement.display_id," ")}}function Ks(e,a){1&e&&(t.j41(0,"span"),t.EFF(1,"N/A"),t.k0s())}function Zs(e,a){if(1&e&&t.nrm(0,"app-user-profile-card-small",70),2&e){const n=a.$implicit;t.Y8G("user",n.user||n)}}function tl(e,a){if(1&e&&(t.j41(0,"div",68),t.Z7z(1,Zs,1,1,"app-user-profile-card-small",70,S),t.k0s()),2&e){const n=t.XpG(2).$implicit;t.R7$(),t.Dyx(n.team.team_members)}}function nl(e,a){1&e&&(t.j41(0,"span",69),t.EFF(1,"No member details available"),t.k0s())}function el(e,a){if(1&e&&(t.j41(0,"div",67),t.DNE(1,tl,3,0,"div",68)(2,nl,2,0,"span",69),t.k0s()),2&e){const n=t.XpG().$implicit;t.R7$(),t.vxM(n.team.team_members&&n.team.team_members.length>0?1:2)}}function ol(e,a){if(1&e&&(t.j41(0,"div",102)(1,"strong"),t.EFF(2,"PPT Link:"),t.k0s(),t.j41(3,"a",118),t.EFF(4),t.k0s(),t.j41(5,"span",119),t.EFF(6),t.nI1(7,"date"),t.k0s()()),2&e){const n=t.XpG().$implicit;t.R7$(3),t.Y8G("href",n.submission.file_attachment.url,t.B4B),t.R7$(),t.SpI(" ",n.submission.file_attachment.name," "),t.R7$(2),t.SpI("(",t.i5U(7,3,n.submission.created_at,"
1short"),")")}}function il(e,a){if(1&e&&(t.j41(0,"div",102)(1,"strong"),t.EFF(2,"Submission Link:"),t.k0s(),t.j41(3,"a",29),t.EFF(4),t.k0s(),t.j41(5,"span",119),t.EFF(6),t.nI1(7,"date"),t.k0s()()),2&e){const n=t.XpG().$implicit;t.R7$(3),t.Y8G("href",n.submission.link,t.B4B),t.R7$(),t.SpI(" ",n.submission.link," "),t.R7$(2),t.SpI("(",t.i5U(7,3,n.submission.created_at,"short"),")")}}function al(e,a){if(1&e&&(t.j41(0,"div",103)(1,"strong"),t.EFF(2,"Project:"),t.k0s(),t.j41(3,"a",120),t.EFF(4),t.k0s()()),2&e){const n=t.XpG().$implicit;t.R7$(3),t.Y8G("routerLink",t.eq3(2,Ft,n.team.community_build.slug)),t.R7$(),t.SpI(" ",n.team.community_build.name," ")}}function rl(e,a){if(1&e&&(t.j41(0,"li"),t.nrm(1,"span",122),t.nI1(2,"stripHtmlExceptLinks"),t.nI1(3,"safeHtml"),t.j41(4,"span",119),t.EFF(5),t.nI1(6,"date"),t.k0s()()),2&e){const n=a.$implicit;t.R7$(),t.Y8G("innerHTML",t.bMT(3,4,t.bMT(2,2,n.details)),t.npT),t.R7$(4),t.SpI("(",t.i5U(6,6,n.created_at,"short"),")")}}function cl(e,a){if(1&e){const n=t.RV6();t.j41(0,"button",123),t.bIt("click",function(){t.eBV(n);
1const o=t.XpG(2).$implicit,r=t.XpG(3);return t.Njj(r.toggleUpdateExpansion("list_"+o.team.id))}),t.EFF(1),t.k0s()}if(2&e){const n=t.XpG(2).$implicit,i=t.XpG(3);t.R7$(),t.SpI(" ",i.expandedUpdates["list_"+n.team.id]?"View Less":"View More ("+(n.team.entity_updates.length-2)+")"," ")}}function sl(e,a){if(1&e&&(t.j41(0,"div",104)(1,"strong"),t.EFF(2,"Updates:"),t.k0s(),t.j41(3,"ol"),t.DNE(4,rl,7,9,"li",27),t.k0s(),t.DNE(5,cl,2,1,"button",121),t.k0s()),2&e){const n=t.XpG().$implicit,i=t.XpG(3);t.R7$(4),t.Y8G("ngForOf",i.expandedUpdates["list_"+n.team.id]?n.team.entity_updates:n.team.entity_updates.slice(0,2)),t.R7$(),t.Y8G("ngIf",n.team.entity_updates.length>2)}}function ll(e,a){1&e&&(t.j41(0,"span",105),t.EFF(1,"No submission"),t.k0s())}function ml(e,a){if(1&e&&t.EFF(0),2&e){const n=t.XpG().$implicit;t.SpI(" ",n.score.total_score," ")}}function dl(e,a){1&e&&t.EFF(0," - ")}function gl(e,a){if(1&e&&(t.j41(0,"tr")(1,"td"),t.EFF(2),t.k0s(),t.j41(3,"td"),t.EFF(4),t.k0s()()),2&e){const n=a.$implicit;t.R7$(2),t.JRh(n.text),t.R7$(2),t.JRh(n.score)}}function _l(e,a){if(1&e&&(t.j41(0,"table",124)(1,"tbody"),t.Z7z(2,gl,5,2,"tr",null,Dt),t.k0s()()),2&e){const n=t.XpG(2).$implicit;t.R7$(2),t.Dyx(n.score.score)}}function pl(e,a){if(1&e&&t.EFF(0),2&e){const n=t.XpG(2).$implicit;t.SpI(" ",n.score.total_score," ")}}function ul(e,a){if(1&e&&t.DNE(0,_l,4,0,"table",124)(1,pl,1,1),2&e){const n=t.XpG().$implicit;t.vxM(null!=n.score&&n.score.score&&n.score.score.length>0?0:1)}}function hl(e,a){1&e&&t.EFF(0," - ")}function bl(e,a){1&e&&(t.nrm(0,"nb-icon",125),t.EFF(1," Submitted "))}function Cl(e,a){1&e&&(t.nrm(0,"nb-icon",126),t.EFF(1," Draft "))}function fl(e,a){1&e&&(t.nrm(0,"nb-icon",127),t.EFF(1," Pending "))}function Pl(e,a){if(1&e){const n=t.RV6();t.j41(0,"button",89),t.bIt("click",function(){t.eBV(n);
1const o=t.XpG(2).$implicit,r=t.XpG(3);return t.Njj(r.openScoringDialog(o))}),t.EFF(1),t.k0s()}if(2&e){const n=t.XpG(2).$implicit,i=t.XpG(3);t.Y8G("disabled",!i.moment().isBetween(i.moment(null==i.selectedRound?null:i.selectedRound.date),i.moment(null==i.selectedRound?null:i.selectedRound.end_date),null,"[]")),t.R7$(),t.SpI(" ",(null==n.score?null:n.score.status)===i.EHackathonTeamRoundScoreStatus.SUBMITTED||(null==n.score?null:n.score.status)===i.EHackathonTeamRoundScoreStatus.DRAFT?"Update Score":"Add Score"," ")}}function Ml(e,a){if(1&e){const n=t.RV6();t.j41(0,"button",130),t.bIt("click",function(){t.eBV(n);const o=t.XpG(2).$implicit,r=t.XpG(3);return t.Njj(r.openScoringDialog(o))}),t.EFF(1),t.k0s()}if(2&e){const n=t.XpG(2).$implicit,i=t.XpG(3);t.Y8G("disabled",!i.moment().isBetween(i.moment(null==i.selectedRound?null:i.selectedRound.date),i.moment(null==i.selectedRound?null:i.selectedRound.end_date),null,"[]")||!0),t.R7$(),t.SpI(" ",(null==n.score?null:n.score.status)===i.EHackathonTeamRoundScoreStatus.SUBMITTED||(null==n.score?null:n.score.status)===i.EHackathonTeamRoundScoreStatus.DRAFT?"Update Score":"Add Score"," ")}}function Ol(e,a){1&e&&t.DNE(0,Pl,2,2,"button",128)(1,Ml,2,2,"button",129),2&e&&t.vxM(0)}function kl(e,a){1&e&&(t.j41(0,"span",106),t.EFF(1,"-"),t.k0s())}function vl(e,a){if(1&e&&(t.j41(0,"tr")(1,"td",96)(2,"div",97)(3,"span"),t.EFF(4),t.k0s(),t.DNE(5,Qs,6,0,"div",98),t.k0s()(),t.j41(6,"td"),t.EFF(7),t.k0s(),t.j41(8,"td"),t.DNE(9,qs,2,1,"span",99)(10,Ks,2,0,"span",57),t.k0s(),t.j41(11,"td")(12,"span",100),t.EFF(13),t.k0s(),t.DNE(14,el,3,1,"ng-template",null,8,t.C5r),t.k0s(),t.j41(16,"td")(17,"div",101),t.DNE(18,ol,8,6,"div",102)(19,il,8,6,"div",102)(20,al,5,4,"div",103)(21,sl,6,2,"div",104)(22,ll,2,0,"span",105),t.k0s()(),t.j41(23,"td"),t.DNE(24,ml,1,1)(25,dl,1,0),t.k0s(),t.j41(26,"td"),t.DNE(27,ul,2,1)(28,hl,1,0),t.k0s(),t.j41(29,"td")(30,"span",56),t.DNE(31,bl,2,0)(32,Cl,2,0)(33,fl,2,0),t.k0s()(),t.j41(34,"td"),t.DNE(35,Ol,2,1)(36,kl,2,0,"span",106),t.k0s()()),2&e){const n=a.$implicit,i=t.sdS(15),o=t.XpG(3);t.R7$(4),t.JRh(n.team.name),t.R7$(),t.vxM(n.evaluators&&n.evaluators.length>0?5:-1),t.R7$(2),t.JRh((null==n.team.track?null:n.team.track.name)||"N/A"),t.R7$(2),t.Y8G("ngIf",n.team.problem_statement),t.R7$(),t.Y8G("ngIf",!n.team.problem_statement),t.R7$(2),t.Y8G("nbPopover",i),t.R7$(),t.SpI(" ",n.team.team_members_count," "),t.R7$(5),t.vxM(null!=n.submission&&n.submission.file_attachment?18:null!=n.submission&&n.submission.link?19:-1),t.R7$(2),t.vxM(n.team.community_build?20:-1),t.R7$(),t.vxM(n.team.entity_updates&&n.team.entity_updates.length>0?21:-1),t.R7$(),t.vxM(null!=n.submission&&n.submission.file_attachment||null!=n.submission&&n.submission.link||n.team.community_build||n.team.entity_updates&&0!==n.team.entity_updates.length?-1:22),t.R7$(2),t.vxM(null!=(null==n.score?null:n.score.total_score)?24:25),t.R7$(3),t.vxM((null==n.score?null:n.score.status)===o.EHackathonTeamRoundScoreStatus.SUBMITTED||(null==n.score?null:n.score.status)===o.EHackathonTeamRoundScoreStatus.DRAFT?27:28),t.R7$(3),t.AVh("submitted","submitted"===(null==n.score?null:n.score.status))("draft","draft"===(null==n.score?null:n.score.status)),t.R7$(),t.vxM((null==n.score?null:n.score.status)===o.EHackathonTeamRoundScoreStatus.SUBMITTED?31:(null==n.score?null:n.score.status)===o.EHackathonTeamRoundScoreStatus.DRAFT?32:(null==n.score?null:n.score.status)===o.EHackathonTeamRoundScoreStatus.NOT_CREATED?33:-1),t.R7$(4),t.vxM(null!=o.selectedRound&&o.selectedRound.has_marking_criteria?35:36)}}function wl(e,a){if(1&e&&(t.j41(0,"table",92)(1,"thead")(2,"tr")(3,"th",93),t.EFF(4,"Team Name"),t.k0s(),t.j41(5,"th",93),t.EFF(6,"Track"),t.k0s(),t.j41(7,"th",94),t.EFF(8,"Problem Statement"),t.k0s(),t.j41(9,"th",94),t.EFF(10,"Members"),t.k0s(),t.j41(11,"th",93),t.EFF(12,"Submission & Updates"),t.k0s(),t.j41(13,"th",94),t.EFF(14,"Total Score"),t.k0s(),t.j41(15,"th",95),t.EFF(16,"Score Details"),t.k0s(),t.j41(17,"th",95),t.EFF(18,"Status"),t.k0s(),t.j41(19,"th",95),t.EFF(20,"Actions"),t.k0s()()(),t.j41(21,"tbody"),t.DNE(22,vl,37,19,"tr",27),t.k0s()()),2&e){const n=t.XpG(2);t.R7$(22),t.Y8G("ngForOf",n.teamDetails)}}function yl(e,a){if(1&e&&(t.j41(0,"div",90),t.DNE(1,wl,23,1,"table",91),t.k0s()),2&e){const n=t.XpG();t.R7$(),t.Y8G("ngIf",!n.isLoading&&n.teamDetails.length>0)}}function xl(e,a){if(1&e){const n=t.RV6();t.j41(0,"com-card",131)(1,"com-card-header")(2,"div"),t.EFF(3),t.k0s(),t.j41(4,"button",132),t.bIt("click",function(){const o=t.eBV(n).dialogRef;return t.Njj(o.close())}),t.nrm(5,"nb-icon",133),t.k0s()(),t.j41(6,"com-card-body"),t.nrm(7,"p",134),t.nI1(8,"safeHtml"),t.k0s(),t.j41(9,"com-card-footer")(10,"button",135),t.bIt("click",function(){const o=t.eBV(n).dialogRef;return t.Njj(o.close())}),t.EFF(11,"Close"),t.k0s()()()}if(2&e){const n=a.$implicit;t.R7$(3),t.JRh(null==n.ps?null:n.ps.display_id),t.R7$(4),t.Y8G("innerHTML",t.bMT(8,2,null==n.ps?null:n.ps.title),t.npT)}}function Rl(e,a){1&e&&(t.j41(0,"div",141)(1,"p"),t.EFF(2,"No teams available to assign"),t.k0s()())}function Tl(e,a){if(1&e){const n=t.RV6();t.j41(0,"div",144)(1,"nb-tag",145),t.bIt("remove",function(){const o=t.eBV(n).$implicit,r=t.XpG
1(3);return t.Njj(r.removeTeamBooking(o.id))}),t.k0s()()}if(2&e){const n=a.$implicit;t.R7$(),t.Y8G("text",n.hackathon_team.name)("removable",!0)}}function Fl(e,a){if(1&e&&(t.j41(0,"div",142)(1,"h4"),t.EFF(2,"Assigned Teams"),t.k0s(),t.j41(3,"div",143),t.Z7z(4,Tl,2,2,"div",144,S),t.k0s()()),2&e){const n=t.XpG(2);t.R7$(4),t.Dyx(null==n.selectedSlot?null:n.selectedSlot.round_mentor_slot_bookings)}}function Dl(e,a){if(1&e&&(t.j41(0,"span",42),t.EFF(1),t.k0s()),2&e){const n=t.XpG().$implicit;t.Y8G("title","Current round score: "+n.hackathon_team_round_score.total_score),t.R7$(),t.SpI(" ",n.hackathon_team_round_score.total_score," ")}}function jl(e,a){if(1&e){const n=t.RV6();t.j41(0,"div",148),t.bIt("click",function(){const o=t.eBV(n).$implicit,r=t.XpG(2).dialogRef,c=t.XpG();return t.Njj(c.assignTeam(o.id,r))}),t.j41(1,"span"),t.EFF(2),t.DNE(3,Dl,2,2,"span",42),t.k0s(),t.j41(4,"button",149),t.EFF(5,"Assign"),t.k0s()()}if(2&e){const n=a.$implicit,i=t.XpG(3);t.R7$(2),t.SpI("",n.name," "),t.R7$(),t.vxM((null==n.hackathon_team_round_score?null:n.hackathon_team_round_score.status)===i.EHackathonTeamRoundScoreStatus.SUBMITTED?3:-1)}}function Gl(e,a){if(1&e&&(t.j41(0,"div",146)(1,"h4"),t.EFF(2,"Available Teams"),t.k0s(),t.DNE(3,jl,6,2,"div",147),t.k0s()),2&e){const n=t.XpG(2);t.R7$(3),t.Y8G("ngForOf",n.availableTeams)}}function El(e,a){if(1&e){const n=t.RV6();t.j41(0,"com-card",136)(1,"com-card-header")(2,"div"),t.EFF(3,"Add Team to Slot"),t.k0s(),t.j41(4,"button",132),t.bIt("click",function(){const o=t.eBV(n).dialogRef;return t.Njj(o.close())}),t.nrm(5,"nb-icon",133),t.k0s()(),t.j41(6,"com-card-body"),t.DNE(7,Rl,3,0,"div",137)(8,Fl,6,0,"div",138)(9,Gl,4,1,"div",139),t.k0s(),t.j41(10,"com-card-footer")(11,"button",140),t.bIt("click",function(){const o=t.eBV(n).dialogRef;return t.Njj(o.close())}),t.EFF(12,"Close"),t.k0s()()()}if(2&e){const n=t.XpG();t.R7$(7),t.Y8G("ngIf",0===n.availableTeams.length),t.R7$(),t.Y8G("ngIf",(null==n.selectedSlot||null==n.selectedSlot.round_mentor_slot_bookings?null:n.selectedSlot.round_mentor_slot_bookings.length)>0),t.R7$(),t.Y8G("ngIf",n.availableTeams.length>0)}}function Sl(e,a){if(1&e){const n=t.RV6();t.j41(0,"com-card",150)(1,"com-card-header")(2,"div"),t.EFF(3,"Cancel Slot"),t.k0s(),t.j41(4,"button",132),t.bIt("click",function(){const o=t.eBV(n).dialogRef;return t.Njj(o.close(!1))}),t.nrm(5,"nb-icon",133),t.k0s()(),t.j41(6,"com-card-body")(7,"p"),t.EFF(8,"Are you sure you want to cancel this slot?"),t.k0s()(),t.j41(9,"com-card-footer")(10,"button",151),t.bIt("click",function(){const o=t.eBV(n).dialogRef;return t.XpG().cancelSlot(),t.Njj(o.close(!1))}),t.EFF(11,"Yes, Cancel"),t.k0s(),t.j41(12,"button",140),t.bIt("click",function(){const o=t.eBV(n).dialogRef;return t.Njj(o.close(!1))}),t.EFF(13,"No"),t.k0s()()()}}function $l(e,a){if(1&e){const n=t.RV6();t.j41(0,"com-card",150)(1,"com-card-header")(2,"div"),t.EFF(3,"Update Meeting Location"),t.k0s(),t.j41(4,"button",132),t.bIt("click",function(){const o=t.eBV(n).dialogRef;return t.Njj(o.close())}),t.nrm(5,"nb-icon",133),t.k0s()(),t.j41(6,"com-card-body")(7,"div",152)(8,"label",153),t.EFF(9,"Meeting Location/URL"),t.k0s(),t.j41(10,"input",154),t.mxI("ngModelChange",function(o){t.eBV(n);const r=t.XpG();return t.DH7(r.meetingLocation,o)||(r.meetingLocation=o),t.Njj(o)}),t.k0s()()(),t.j41(11,"com-card-footer")(12,"button",155),t.bIt("click",function(){const o=t.eBV(n).dialogRef,r=t.XpG();return t.Njj(r.updateMeetingLocation(o))}),t.EFF(13,"Update"),t.k0s(),t.j41(14,"button",140),t.bIt("click",function(){const o=t.eBV(n).dialogRef;return t.Njj(o.close())}),t.EFF(15,"Cancel"),t.k0s()()()}if(2&e){const n=t.XpG();t.R7$(10),t.R50("ngModel",n.meetingLocation)}}function Il(e,a){if(1&e){const n=t.RV6();t.j41(0,"com-card",150)(1,"com-card-header")(2,"div"),t.EFF(3,"Activate Slot"),t.k0s(),t.j41(4,"button",132),t.bIt("click",function(){const o=t.eBV(n).dialogRef;return t.Njj(o.close(!1))}),t.nrm(5,"nb-icon",133),t.k0s()(),t.j41(6,"com-card-body")(7,"p"),t.EFF(8,"Are you sure you want to activate this slot?"),t.k0s()(),t.j41(9,"com-card-footer")(10,"button",156),t.bIt("click",function(){const o=t.eBV(n).dialogRef;return t.XpG().activateSlot(),t.Njj(o.close(!1))}),t.EFF(11," Yes, Activate "),t.k0s(),t.j41(12,"button",140),t.bIt("click",function(){const o=t.eBV(n).dialogRef;return t.Njj(o.close(!1))}),t.EFF(13,"No"),t.k0s()()()}}function zl(e,a){if(1&e){const n=t.RV6();t.j41(0,"com-card",150)(1,"com-card-header")(2,"div"),t.EFF(3,"Remove Team"),t.k0s(),t.j41(4,"button",132),t.bIt("click",function(){const o=t.eBV(n).dialogRef;return t.Njj(o.close(!1))}),t.nrm(5,"nb-icon",133),t.k0s()(),t.j41(6,"com-card-body")(7,"p"),t.EFF(8,"Are you sure you want to remove this team from the slot?"),t.k0s()(),t.j41(9,"com-card-footer")(10,"button",151),t.bIt("click",function(){const o=t.eBV(n).dialogRef;return t.Njj(o.close(!0))}),t.EFF(11,"Yes, Remove"),t.k0s(),t.j41(12,"button",140),t.bIt("click",function(){const o=t.eBV(n).dialogRef;return t.Njj(o.close(!1))}),t.EFF(13,"No"),t.k0s()()()}}function Hl(e,a){if(1&e){const n=t.RV6();t.j41(0,"com-card",157)(1,"com-card-header",158)(2,"div")(3,"h3"),t.EFF(4),t.k0s(),t.j41(5,"p"),t.EFF(6),t.k0s()(),t.j41(7,"button",159),t.bIt("click",function(){const o=t.eBV(n).dialogRef;return t.Njj(o.close())}),t.nrm(8,"nb-icon",133),t.k0s()(),t.j41(9,"com-card-body"),t.nrm(10,"ngx-doc-viewer",160),t.k0s()()}if(2&e){const n=a.$implicit;t.R7$(4),t.JRh(n.roundName),t.R7$(2),t.JRh(n.teamName),t.R7$(4),t.Y8G("url",n.url)}}let jt=(()=>{class e{constructor(n,i,o,r,c,p,h,M,j,Y,B){this.activatedRoute=n,this.hackathonTeamRoundScoreService=i,this.dialogService=o,this.roundService=r,this.roundMentorSlotService=c,this.hackathonTeamService=p,this.roundMentorSlotBookingService=h,this.toastrService=M,this.cdr=j,this.roundMentorSlotBookingChannel=Y,this.hackathonJudgeService=B,this.rounds=[],this.teamDetails=[],this.isLoading=!0,this.moment=T(),this.EHackathonTeamRoundScoreStatus=u.Kk,this.availableTeams=[],this.ERoundMentorSlotStatus=u.pf,this.destroy$=new y.B,this.icons={faPlus:l.QLR,faXmark:l.Jyw,faEdit:l.MT7,faCheck:l.e68,faFilePowerpoint:l.zkx,faLink:l.CQO}
1,this.meetingLocation="",this.expandedUpdates={},this.showScoreDetailsMap={},this.showUpdatesMap={},this.showEvaluatorsMap={}}ngOnInit(){this.activatedRoute.parent.data.pipe((0,b.Q)(this.destroy$)).subscribe(n=>{this.hackathon=n.hackathon,this.fetchRounds(),this.subscribeToChannel()})}ngOnDestroy(){this.roundMentorSlotBookingChannel.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}fetchRounds(){this.roundService.mentorSlotIndex(this.hackathon.id,u.ag.HACKATHON).subscribe(n=>{if(this.rounds=n,this.rounds.length>0){const i=T()(),o=this.rounds.find(c=>i.isBetween(T()(c.date),T()(c.end_date),null,"[]")),r=this.rounds.find(c=>i.isBefore(T()(c.date)));this.selectedRound=o||r||this.rounds[0],this.selectedRoundId=this.selectedRound.id,this.roleDetails(),this.fetchTeams()}else this.isLoading=!1})}fetchTeams(){this.hackathonTeamRoundScoreService.showDetails(this.hackathon.id,this.selectedRound.id).subscribe(n=>{this.teamDetails=n,this.isLoading=!1})}onRoundChange(n){this.isLoading=!0,this.selectedRoundId=Number(n.target.value),this.selectedRound=this.rounds.find(i=>i.id===this.selectedRoundId),this.loadMentorSlots(),this.fetchTeams()}openScoringDialog(n){this.dialogService.open(Bc,{context:{teamData:n,hackathon:this.hackathon}}).onClose.pipe((0,b.Q)(this.destroy$)).subscribe(o=>{o&&(this.teamDetails.find(r=>r.team.id===o.hackathon_team_id).score=o)})}showProblemStatement(n){this.dialogService.open(this.problemStatementView,{context:{ps:n}})}loadMentorSlots(){this.currentMentor&&this.roundMentorSlotService.indexByRoundMentor(this.selectedRound.id,this.currentMentor.id).pipe((0,b.Q)(this.destroy$)).subscribe(n=>{this.roundMentorSlots=n})}openAddTeamDialog(n,i){this.selectedSlot=n,this.selectedSlotIndex=i,this.loadAvailableTeams(),this.dialogService.open(this.addTeamDialog)}loadAvailableTeams(){this.hackathonTeamService.teamsByEvaluator(this.selectedRound.id,this.currentMentor.id).pipe((0,b.Q)(this.destroy$)).subscribe(n=>{const i=this.selectedSlot?.round_mentor_slot_bookings?.map(o=>o.hackathon_team_id)||[];this.availableTeams=n.filter(o=>!o.slot_assigned&&!i.includes(o.id))})}assignTeam(n,i){this.roundMentorSlotBookingService.createBooking(n,this.selectedSlot.id,this.currentMentor.id).pipe((0,b.Q)(this.destroy$)).subscribe({next:()=>{this.toastrService.successDialog("Team assigned successfully"),this.loadAvailableTeams()}})}openCancelSlotDialog(n,i){this.selectedSlot=n,this.selectedSlotIndex=i,this.cancelSlot()}cancelSlot(){this.roundMentorSlotService.updateStatus(this.selectedSlot.id,u.pf.CANCELLED_BY_MENTOR).pipe((0,b.Q)(this.destroy$)).subscribe({next:()=>{this.toastrService.successDialog("Slot cancelled successfully"),this.selectedSlot.status=u.pf.CANCELLED_BY_MENTOR}})}openActivateSlotDialog(n,i){this.selectedSlot=n,this.selectedSlotIndex=i,this.activateSlot()}activateSlot(){this.roundMentorSlotService.updateStatus(this.selectedSlot.id,u.pf.OPEN).pipe((0,b.Q)(this.destroy$)).subscribe({next:()=>{this.toastrService.successDialog("Slot activated successfully"),this.selectedSlot.status=u.pf.OPEN}})}removeTeamBooking(n){this.dialogService.open(this.removeBookingDialog).onClose.subscribe(i=>{i&&this.roundMentorSlotBookingService.destroy(n).pipe((0,b.Q)(this.destroy$)).subscribe({next:()=>{this.toastrService.successDialog("Team removed successfully"),this.loadAvailableTeams(),this.cdr.markForCheck()}})})}openAddMeetingLocationDialog(){this.meetingLocation=this.currentMentor?.meeting_location||"",this.dialogService.open(this.updateMeetingLocationDialog)}updateMeetingLocation(n){this.hackathonJudgeService.updateMeetingUrl(this.currentMentor.id,this.meetingLocation.trim()).subscribe({next:()=>{this.toastrService.successDialog("Meeting location updated successfully"),this.currentMentor.meeting_location=this.meetingLocation,n.close()},error:()=>{this.toastrService.errorDialog("Failed to update meeting location")}})}roleDetails(){this.hackathonJudgeService.roleDetails(this.hackathon.id).subscribe(n=>{n&&(this.currentMentor=n.mentor,this.loadMentorSlots())})}subscribeToChannel(){this.roundMentorSlotBookingChannel.subscribe(this.hackathon.slug),this.roundMentorSlotBookingChannel.channelData$.pipe((0,b.Q)(this.destroy$)).subscribe(n=>{n&&this.handleChannelData(n)})}handleChannelData(n){switch(n.action){case this.roundMentorSlotBookingChannel.ACTIONS.BOOK:case this.roundMentorSlotBookingChannel.ACTIONS.CANCEL:{const i=n.booking,o=this.roundMentorSlots?.find(r=>r.id===i.round_mentor_slot_id);if(o){const r=o.round_mentor_slot_bookings.findIndex(c=>c.id===i.id);-1!==r?o.round_mentor_slot_bookings[r]=i:o.round_mentor_slot_bookings=[i,...o.round_mentor_slot_bookings],this.roundMentorSlots=[...this.roundMentorSlots],this.cdr.markForCheck()}break}case this.roundMentorSlotBookingChannel.ACTIONS.DESTROY:{const i=n.booking_id;this.roundMentorSlots?.forEach(o=>
1{o.round_mentor_slot_bookings=o.round_mentor_slot_bookings.filter(r=>r.id!==i)}),this.roundMentorSlots=[...this.roundMentorSlots],this.cdr.markForCheck();break}}}toggleUpdateExpansion(n){this.expandedUpdates[n]=!this.expandedUpdates[n]}openDocumentViewer(n,i,o){this.dialogService.open(this.documentViewerDialog,{context:{roundName:n,teamName:i,url:o}})}openExternalLink(n){n&&window.open(n,"_blank","noopener,noreferrer")}static{this.\u0275fac=function(i){return new(i||e)(t.rXU(C.nX),t.rXU(_.U3),t.rXU(g.S0W),t.rXU(_.wE),t.rXU(_.T1),t.rXU(_.kq),t.rXU(_.Iv),t.rXU(_.tw),t.rXU(t.gRc),t.rXU(Xc.S),t.rXU(at.U))}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["commudle-public-hackathon-mentor-dashboard"]],viewQuery:function(i,o){if(1&i&&(t.GBs(Lc,5),t.GBs(Vc,5),t.GBs(Ac,5),t.GBs(Jc,5),t.GBs(Wc,5),t.GBs(Qc,5),t.GBs(qc,5)),2&i){let r;t.mGM(r=t.lsd())&&(o.documentViewerDialog=r.first),t.mGM(r=t.lsd())&&(o.problemStatementView=r.first),t.mGM(r=t.lsd())&&(o.addTeamDialog=r.first),t.mGM(r=t.lsd())&&(o.cancelSlotDialog=r.first),t.mGM(r=t.lsd())&&(o.activateSlotDialog=r.first),t.mGM(r=t.lsd())&&(o.updateMeetingLocationDialog=r.first),t.mGM(r=t.lsd())&&(o.removeBookingDialog=r.first)}},standalone:!1,decls:26,vars:6,consts:[["ProblemStatementView",""],["addTeamDialog",""],["cancelSlotDialog",""],["updateMeetingLocationDialog",""],["activateSlotDialog",""],["removeBookingDialog",""],["documentViewerDialog",""],["mobileMembersPopover",""],["membersPopover",""],[1,"header-content"],["class","round-selector",4,"ngIf"],["class","loading-state",4,"ngIf"],["class","mentor-slots-section",4,"ngIf"],["class","empty-state",4,"ngIf"],["class","teams-mobile-cards",4,"appBreakpoints"],["class","teams-table-wrapper",4,"appBreakpoints"],[1,"round-selector"],[1,"round-select",3,"ngModelChange","change","ngModel"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"loading-state"],[1,"mentor-slots-section"],["message","Mentorship slot length and the number of teams in a particular slot are decided by the hackathon managers. You can choose to cancel a particular slot if you are not available. If you need more slots to be enabled, please connect with the hackathon managers.",3,"info"],[1,"meeting-location-display"],[1,"meeting-location-add"],[1,"slots-table-wrapper","custom-scrollbar"],[1,"slots-table"],[4,"ngFor","ngForOf"],[1,"meeting-label"],["target","_blank","rel","noopener noreferrer",3,"href"],["comButton","","shape","semi-round","size","tiny","status","basic",3,"click"],[3,"icon"],["comButton","","shape","semi-round","size","small","status","basic",3,"click"],[1,"slot-header"],[1,"slot-number"],[1,"slot-time"],["class","team-cell-wrapper",3,"click",4,"ngIf"],[1,"no-teams-actions"],[1,"team-cell-wrapper",3,"click"],[1,"team-count-badge"],[1,"team-summary","custom-scrollbar"],[1,"team-name"],[1,"scored",3,"title"],[1,"no-teams-compact","add-btn",3,"click","disabled"],[1,"no-teams-compact","activate-btn"],[1,"no-teams-compact","cancel-btn"],[1,"no-teams-compact","activate-btn",3,"click"],[1,"no-teams-compact","cancel-btn",3,"click"],[1,"empty-state"],[1,"teams-mobile-cards"],["class","teams-mobile-cards-grid",4,"ngIf"],[1,"teams-mobile-cards-grid"],["class","team-mobile-card",4,"ngFor","ngForOf"],[1,"team-mobile-card"],[1,"team-mobile-header"],[1,"team-mobile-name"],[1,"status-badge"],[4,"ngIf"],[1,"team-mobile-details"],["class","team-mobile-row",4,"ngIf"],[1,"team-mobile-row"],[1,"team-mobile-label"],["nbPopoverTrigger","click","nbPopoverPlacement","bottom",1,"team-mobile-value","members-count-trigger",3,"nbPopover"],["class","team-mobile-evaluators",4,"ngIf"],["class","team-mobile-actions",4,"ngIf"],[1,"team-mobile-value"],[1,"team-mobile-value","ps-link",3,"click"],[1,"members-popover"],[1,"members-popover-list"],[1,"members-popover-empty"],[3,"user"],["target","_blank","class","submission-link",3,"href",4,"ngIf"],["target","_blank","rel","noopener noreferrer","class","submission-link",3,"href",4,"ngIf"],["target","_blank",1,"submission-link",3,"href"],["target","_blank","rel","noopener noreferrer",1,"submission-link",3,"href"],["target","_blank",1,"team-mobile-value","submission-link",3,"routerLink"],[1,"team-mobile-value","no-submission"],[1,"team-mobile-evaluators"],[1,"evaluators-toggle",3,"click"],["class","evaluators-list",4,"ngIf"],[1,"evaluators-list"],[1,"evaluator-item"],[1,"evaluator-name"],[1,"evaluator-status"],["class","evaluator-item evaluator-item-col",4,"ngFor","ngForOf"],[1,"evaluator-item","evaluator-item-col"],[1,"evaluator-name",3,"innerHTML"],[1,"evaluator-item",3,"evaluator-submitted"],[1,"team-mobile-actions"],["comButton","","shape","semi-round","size","small","status","primary",3,"click","disabled"],[1,"team
1s-table-wrapper"],["class","teams-table",4,"ngIf"],[1,"teams-table"],[1,"col-lg"],[1,"col-sm"],[1,"col-md"],[1,"team-name","col-team-name"],[1,"team-name-wrapper"],[1,"evaluators-section"],["class","ps-link",3,"click",4,"ngIf"],["nbPopoverTrigger","click","nbPopoverPlacement","bottom",1,"members-count-trigger",3,"nbPopover"],[1,"submission-details"],[1,"ppt-link"],[1,"project-link"],[1,"updates-list"],[1,"no-submission"],[1,"no-scoring"],[1,"evaluators-label"],[1,"evaluators-cards"],[1,"evaluator-card",3,"evaluator-submitted"],[1,"evaluator-card"],[1,"evaluator-avatar-wrapper"],["appMiniUserProfile","","class","evaluator-avatar",3,"src","alt","username",4,"ngIf"],["class","evaluator-avatar-placeholder","appMiniUserProfile","",3,"username",4,"ngIf"],["appMiniUserProfile","",1,"evaluator-info",3,"username"],["appMiniUserProfile","",1,"evaluator-avatar",3,"src","alt","username"],["appMiniUserProfile","",1,"evaluator-avatar-placeholder",3,"username"],[1,"ps-link",3,"click"],["target","_blank",3,"href"],[1,"date-time"],["target","_blank",3,"routerLink"],["comButton","","ghost","","shape","semi-round","size","tiny","status","primary",3,"click",4,"ngIf"],[1,"update-details",3,"innerHTML"],["comButton","","ghost","","shape","semi-round","size","tiny","status","primary",3,"click"],[1,"inner-score-table"],["icon","checkmark-circle-outline"],["icon","clock-outline"],["icon","minus-circle-outline"],["comButton","","shape","semi-round","size","small","status","primary",3,"disabled"],["comButton","","shape","semi-round","size","small","status","primary","nbTooltip","Another mentor has already submitted a score for this team","nbTooltipPlacement","top",3,"disabled"],["comButton","","shape","semi-round","size","small","status","primary","nbTooltip","Another mentor has already submitted a score for this team","nbTooltipPlacement","top",3,"click","disabled"],[1,"problem-statement-dialog"],["ghost","","comButton","","size","small","shape","round",3,"click"],["icon","close"],[3,"innerHTML"],["comButton","","shape","semi-round","status","primary","outline","",3,"click"],[1,"dialog-box-card","assign-team"],["class","no-teams-message",4,"ngIf"],["class","assigned-teams",4,"ngIf"],["class","teams-list-dialog",4,"ngIf"],["comButton","","shape","semi-round",3,"click"],[1,"no-teams-message"],[1,"assigned-teams"],[1,"team-tags"],[1,"tag"],["status","success",3,"remove","text","removable"],[1,"teams-list-dialog"],["class","team-item",3,"click",4,"ngFor","ngForOf"],[1,"team-item",3,"click"],["comButton","","shape","semi-round","size","tiny","status","primary"],[1,"dialog-box-card"],["comButton","","shape","semi-round","status","danger",3,"click"],[1,"form-group"],["for","meetingLocation"],["type","text","id","meetingLocation","nbInput","","fullWidth","","placeholder","Enter meeting URL or location (leave blank to delete)",3,"ngModelChange","ngModel"],["comButton","","shape","semi-round","status","primary",3,"click"],["comButton","","shape","semi-round","status","success",3,"click"],[1,"document-viewer-dialog"],[1,"com-flex","com-justify-between","com-items-center"],["comButton","","ghost","","shape","round",3,"click"],["viewer","google",2,"width","100%","height","80vh",3,"url"]],template:function(i,o){1&i&&(t.j41(0,"com-card")(1,"com-card-header")(2,"div",9)(3,"span"),t.EFF(4,"Mentor Dashboard"),t.k0s(),t.DNE(5,os,5,2,"div",10),t.k0s()(),t.j41(6,"com-card-body"),t.DNE(7,is,2,0,"div",11)(8,bs,15,4,"div",12)(9,Cs,3,0,"div",13)(10,Vs,2,1,"div",14)(11,yl,2,1,"div",15),t.k0s()(),t.DNE(12,xl,12,4,"ng-template",null,0,t.C5r)(14,El,13,3,"ng-template",null,1,t.C5r)(16,Sl,14,0,"ng-template",null,2,t.C5r)(18,$l,16,1,"ng-template",null,3,t.C5r)(20,Il,14,0,"ng-template",null,4,t.C5r)(22,zl,14,0,"ng-template",null,5,t.C5r)(24,Hl,11,3,"ng-template",null,6,t.C5r)),2&i&&(t.R7$(5),t.Y8G("ngIf",o.rounds.length>0),t.R7$(2),t.Y8G("ngIf",o.isLoading),t.R7$(),t.Y8G("ngIf",o.currentMentor&&(null==o.roundMentorSlots?null:o.roundMentorSlots.length)>0&&!o.isLoading),t.R7$(),t.Y8G("ngIf",!o.isLoading&&0===o.teamDetails.length),t.R7$(),t.Y8G("appBreakpoints","<=md"),t.R7$(),t.Y8G("appBreakpoints",">md"))},dependencies:[m.Sq,m.bT,f.Wk,d.xH,d.y7,d.me,d.wz,d.BC,d.vS,g.i6h,g.tHu,g.BmQ,g.iPJ,g.vs7,k.aY,Tt.$j,Rt.N,G.C,vt.j,N.J,$.L,v.v,x.W,w.H,E.k,D.G,X.S,m.vh,Uc.$,Nc.M],styles:["com-card[_ngcontent-%COMP%]{margin:0;margin-top:1rem}com-card[_ngcontent-%COMP%] com-card-header[_ngcontent-%COMP%]{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--color-bright-gray);padding:.5rem 1rem;font-size:1rem;line-height:1.5rem;font-weight:600;color:var(--color-yankees-blue);background:linear-gradient(135deg,#f7f7f8,#fff,#f7f7f8)}com-card[_ngcontent-%COMP%] com-card-header[_ngcontent-%COMP%]:is(.com-dark *){border-color:var(--color-gray-700);background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #080808 var(--tw-gradient-from-position);--tw-gradient-to: rgb(8 8 8 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: rgb(20 20 20 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #141414 var(--tw-gradient-via-p
1osition), var(--tw-gradient-to);--tw-gradient-to: #080808 var(--tw-gradient-to-position);color:var(--color-twhite)}com-card[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%]{overflow:hidden;padding:1rem}.header-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}@media (min-width: 640px){.header-content[_ngcontent-%COMP%]{flex-direction:row;align-items:center;justify-content:space-between;gap:.75rem}}.header-content[_ngcontent-%COMP%] .round-selector[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}@media (min-width: 640px){.header-content[_ngcontent-%COMP%] .round-selector[_ngcontent-%COMP%]{flex-direction:row;align-items:center;gap:.5rem}}.header-content[_ngcontent-%COMP%] .round-selector[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem;font-weight:500;color:var(--color-gray-500)}.header-content[_ngcontent-%COMP%] .round-selector[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:is(.com-dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.header-content[_ngcontent-%COMP%] .round-selector[_ngcontent-%COMP%] .round-select[_ngcontent-%COMP%]{width:100%;border-radius:.375rem;border-width:1px;border-style:solid;border-color:var(--color-bright-gray);background-color:var(--color-gray-50);padding:.375rem .75rem;font-size:.875rem;line-height:1.25rem;color:var(--color-yankees-blue)}@media (min-width: 640px){.header-content[_ngcontent-%COMP%] .round-selector[_ngcontent-%COMP%] .round-select[_ngcontent-%COMP%]{width:auto;min-width:250px}}.header-content[_ngcontent-%COMP%] .round-selector[_ngcontent-%COMP%] .round-select[_ngcontent-%COMP%]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-sha
1dow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(51 102 255 / var(--tw-ring-opacity, 1))}.header-content[_ngcontent-%COMP%] .round-selector[_ngcontent-%COMP%] .round-select[_ngcontent-%COMP%]:is(.com-dark *){border-color:var(--color-gray-600);background-color:var(--color-gray-800);color:var(--color-twhite)}.mentor-slots-section[_ngcontent-%COMP%]{margin-bottom:1.5rem;border-bottom-width:1px;border-color:var(--color-bright-gray);padding-bottom:1.5rem}.mentor-slots-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;margin-bottom:.75rem;font-size:.875rem;line-height:1.25rem;font-weight:600;color:var(--color-yankees-blue)}.mentor-slots-section[_ngcontent-%COMP%] .slots-table-wrapper[_ngcontent-%COMP%]{width:100%;overflow-x:auto}.mentor-slots-section[_ngcontent-%COMP%] .slots-table-wrapper[_ngcontent-%COMP%] .slots-table[_ngcontent-%COMP%]{width:100%;min-width:max-content;border-collapse:collapse}.mentor-slots-section[_ngcontent-%COMP%] .slots-table-wrapper[_ngcontent-%COMP%] .slots-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%]{background-color:var(--color-gray-50)}.mentor-slots-section[_ngcontent-%COMP%] .slots-table-wrapper[_ngcontent-%COMP%] .slots-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:.5rem 1rem;text-align:center;font-size:.75rem;line-height:1rem;font-weight:600;color:var(--color-gray-600);white-space:nowrap;border-width:1px;border-color:var(--color-bright-gray);min-width:180px}.mentor-slots-section[_ngcontent-%COMP%] .slots-table-wrapper[_ngcontent-%COMP%] .slots-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%] .slot-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.125rem}.mentor-slots-section[_ngcontent-%COMP%] .slots-table-wrapper[_ngcontent-%COMP%] .slots-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%] .slot-header[_ngcontent-%COMP%] .slot-number[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem;font-weight:600}.mentor-slots-section[_ngcontent-%COMP%] .slots-table-wrapper[_ngcontent-%COMP%] .slots-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%] .slot-header[_ngcontent-%COMP%] .slot-time[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem;font-weight:400;color:var(--color-gray-500)}.mentor-slots-section[_ngcontent-%COMP%] .slots-table-wrapper[_ngcontent-%COMP%] .slots-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-width:1px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1));padding:.75rem 1rem;vertical-align:top;min-width:180px}.mentor-slots-section[_ngcontent-%COMP%] .slots-table-wrapper[_ngcontent-%COMP%] .slots-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .team-cell-wrapper[_ngcontent-%COMP%]{position:relative;min-height:7rem;width:100%;cursor:pointer}.mentor-slots-section[_ngcontent-%COMP%] .slots-table-wrapper[_ngcontent-%COMP%] .slots-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .team-cell-wrapper[_ngcontent-%COMP%] .team-count-badge[_ngcontent-%COMP%]{position:absolute;top:.25rem;right:.25rem;z-index:2;display:flex;height:1.5rem;width:1.5rem;align-items:center;justify-content:center;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(51 102 255 / var(--tw-bg-opacity, 1));font-size:.75rem;line-height:1rem;font-weight:700;color:var(--color-white);--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
1--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.mentor-slots-section[_ngcontent-%COMP%] .slots-table-wrapper[_ngcontent-%COMP%] .slots-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .team-cell-wrapper[_ngcontent-%COMP%] .team-summary[_ngcontent-%COMP%]{display:flex;max-height:7rem;width:100%;flex-direction:column;gap:.5rem;overflow-y:auto;padding:.5rem}.mentor-slots-section[_ngcontent-%COMP%] .slots-table-wrapper[_ngcontent-%COMP%] .slots-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .team-cell-wrapper[_ngcontent-%COMP%] .team-summary[_ngcontent-%COMP%] .team-name[_ngcontent-%COMP%]{padding-left:.75rem;padding-right:.75rem;font-size:.875rem;line-height:1.25rem;font-weight:500;--tw-text-opacity: 1;color:rgb(51 102 255 / var(--tw-text-opacity, 1))}.mentor-slots-section[_ngcontent-%COMP%] .slots-table-wrapper[_ngcontent-%COMP%] .slots-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .team-cell-wrapper[_ngcontent-%COMP%] .team-summary[_ngcontent-%COMP%] .team-name[_ngcontent-%COMP%] .scored[_ngcontent-%COMP%]{font-weight:600;--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.mentor-slots-section[_ngcontent-%COMP%] .slots-table-wrapper[_ngcontent-%COMP%] .slots-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .no-teams-actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.mentor-slots-section[_ngcontent-%COMP%] .slots-table-wrapper[_ngcontent-%COMP%] .slots-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .no-teams-actions[_ngcontent-%COMP%] .no-teams-compact[_ngcontent-%COMP%]{display:flex;flex:1 1 0%;cursor:pointer;flex-direction:column;align-items:center;justify-content:center;gap:.25rem;border-radius:.25rem;border-style:none;background-color:transparent;padding:.5rem;font-size:.75rem;line-height:1rem}.mentor-slots-section[_ngcontent-%COMP%] .slots-table-wrapper[_ngcontent-%COMP%] .slots-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .no-teams-actions[_ngcontent-%COMP%] .no-teams-compact[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem}.mentor-slots-section[_ngcontent-%COMP%] .slots-table-wrapper[_ngcontent-%COMP%] .slots-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .no-teams-actions[_ngcontent-%COMP%] .no-teams-compact.add-btn[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(51 102 255 / var(--tw-text-opacity, 1))}.mentor-slots-section[_ngcontent-%COMP%] .slots-table-wrapper[_ngcontent-%COMP%] .slots-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .no-teams-actions[_ngcontent-%COMP%] .no-teams-compact.add-btn[_ngcontent-%COMP%]:hover{--tw-bg-opacity: 1;background-color:rgb(214 224 255 / var(--tw-bg-opacity, 1))}.mentor-slots-section[_ngcontent-%COMP%] .slots-table-wrapper[_ngcontent-%COMP%] .slots-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .no-teams-actions[_ngcontent-%COMP%] .no-teams-compact.cancel-btn[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.mentor-slots-section[_ngcontent-%COMP%] .slots-table-wrapper[_ngcontent-%COMP%] .slots-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .no-teams-actions[_ngcontent-%COMP%] .no-teams-compact.cancel-btn[_ngcontent-%COMP%]:hover{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}.mentor-slots-section[_ngcontent-%COMP%] .slots-table-wrapper[_ngcontent-%COMP%] .slots-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .no-teams-actions[_ngcontent-%COMP%] .no-teams-compact.activate-btn[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.mentor-slots-section[_ngcontent-%COMP%] .slots-table-wrapper[_ngcontent-%COMP%] .slots-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .no-teams-actions[_ngcontent-%COMP%] .no-teams-compact.activate-btn[_ngcontent-%COMP%]:hover{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}.mentor-slots-section[_ngcontent-%COMP%] .slots-table-wrapper[_ngcontent-%COMP%] .slots-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .no-teams-actions[_ngcontent-%COMP%] .no-teams-compact[_ngcontent-%COMP%]:disabled{cursor:not-allowed;opacity:.5}.mentor-slots-section[_ngcontent-%COMP%] .slots-table-wrapper[_ngcontent-%COMP%] .slots-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .no-teams-actions[_ngcontent-%COMP%] .no-teams-compact[_ngcontent-%COMP%]:disabled:hover{background-color:transparent}.mentor-slots-section[_ngcontent-%COMP%] .slots-table-wrapper[_ngcontent-%COMP%] .slots-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .slot-cancelled[_ngcontent-%COMP%]{text-align:center;font-size:.875rem;line-height:1.25rem;font-weight:600;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.dialog-box-card[_ngcontent-%COMP%]{min-width:400px}.dialog-box-card[_ngcontent-%COMP%] .no-teams-message[_ngcontent-%COMP%]{padding-top:1rem;padding-bottom:1rem;text-align:center;color:var(--color-gray-600)}.dialog-box-card[_ngcontent-%COMP%] .teams-list-dialog[_ngcontent-%COMP%]{display:flex;max-height:400px;flex-direction:column;gap:.5rem;overflow-y:auto}.dialog-box-card[_ngcontent-%COMP%] .teams-list-dialog[_ngcontent-%COMP%] .team-item[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;border-radius:.25rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1));padding:.75rem;cursor:pointer;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.dialog-box-card[_ngcontent-%COMP%] .teams-list-dialog[_ngcontent-%COMP%] .team-item[_ngcontent-%COMP%]:hover{background-color:var(--color-gray-50)}.dialog-box-card[_ngcontent-%COMP%] .teams-list-dialog[_ngcontent-%COMP%] .team-item[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem;color:var(--color-gray-800)}.dialog-box-card[_ngcontent-%COMP%] .teams-list-dialog[_ngcontent-%COMP%] .team-item[_ngcontent-%COMP%] .scored[_ngcontent-%COMP%]{font-weight:600;--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.loading-state[_ngcontent-%COMP%]{width:100%;align-items:center}.loading-state[_ngcontent-%COMP%] .round-selector[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.loading-state[_ngcontent-%COMP%] .round-selector[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem;font-weight:500;color:var(--color-gray-700)}.loading-state[_ngcontent-%COMP%] .round-selector[_ngcontent-%COMP%] .round-select[_ngcontent-%COMP%]{min-width:250px;border-radius:.25rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1));padding:.5rem .75rem;color:var(--color-yankees-blue)}.loading-state[_ngcontent-%COMP%] .round-selector[_ngcontent-%COMP%] .round-select[_ngcontent-%COMP%]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-sha
1dow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(51 102 255 / var(--tw-ring-opacity, 1))}.loading-state[_ngcontent-%COMP%]{padding-top:3rem;padding-bottom:3rem;text-align:center}.loading-state[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--color-gray-500)}.empty-state[_ngcontent-%COMP%]{border-radius:.5rem;background-color:var(--color-gray-100);padding-top:3rem;padding-bottom:3rem;text-align:center}.empty-state[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--color-gray-600)}.teams-table-wrapper[_ngcontent-%COMP%]{width:100%;overflow-x:auto}.teams-table[_ngcontent-%COMP%]{width:100%;min-width:800px;border-collapse:collapse;table-layout:fixed}.teams-table[_ngcontent-%COMP%] .col-sm[_ngcontent-%COMP%]{width:8%}.teams-table[_ngcontent-%COMP%] .col-md[_ngcontent-%COMP%]{width:12%}.teams-table[_ngcontent-%COMP%] .col-lg[_ngcontent-%COMP%]{width:20%}.teams-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%]{background-color:var(--color-gray-50)}.teams-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:.5rem 1rem;text-align:left;font-size:.75rem;line-height:1rem;font-weight:600;color:var(--color-gray-600);border-bottom-width:1px;border-color:var(--color-bright-gray)}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{border-bottom-width:1px;border-color:var(--color-bright-gray);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{background-color:var(--color-gray-50)}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.5rem 1rem;font-size:.875rem;line-height:1.25rem;color:var(--color-yankees-blue)}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td.team-name[_ngcontent-%COMP%]{font-weight:500;color:var(--color-gray-900)}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td.team-name[_ngcontent-%COMP%] .team-name-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td.team-name[_ngcontent-%COMP%] .team-name-wrapper[_ngcontent-%COMP%] .evaluators-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td.team-name[_ngcontent-%COMP%] .team-name-wrapper[_ngcontent-%COMP%] .evaluators-section[_ngcontent-%COMP%] .evaluators-label[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem;font-weight:400;color:var(--color-gray-500)}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td.team-name[_ngcontent-%COMP%] .team-name-wrapper[_ngcontent-%COMP%] .evaluators-section[_ngcontent-%COMP%] .evaluators-cards[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td.team-name[_ngcontent-%COMP%] .team-name-wrapper[_ngcontent-%COMP%] .evaluators-section[_ngcontent-%COMP%] .evaluators-cards[_ngcontent-%COMP%] .evaluator-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;border-radius:.25rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1));padding:.375rem;text-decoration-line:none;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td.team-name[_ngcontent-%COMP%] .team-name-wrapper[_ngcontent-%COMP%] .evaluators-section[_ngcontent-%COMP%] .evaluators-cards[_ngcontent-%COMP%] .evaluator-card[_ngcontent-%COMP%]:hover{background-color:var(--color-gray-50)}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td.team-name[_ng
1content-%COMP%] .team-name-wrapper[_ngcontent-%COMP%] .evaluators-section[_ngcontent-%COMP%] .evaluators-cards[_ngcontent-%COMP%] .evaluator-card.evaluator-submitted[_ngcontent-%COMP%]{--tw-border-opacity: 1;border-color:rgb(187 247 208 / var(--tw-border-opacity, 1))}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td.team-name[_ngcontent-%COMP%] .team-name-wrapper[_ngcontent-%COMP%] .evaluators-section[_ngcontent-%COMP%] .evaluators-cards[_ngcontent-%COMP%] .evaluator-card[_ngcontent-%COMP%] .evaluator-avatar-wrapper[_ngcontent-%COMP%]{flex-shrink:0}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td.team-name[_ngcontent-%COMP%] .team-name-wrapper[_ngcontent-%COMP%] .evaluators-section[_ngcontent-%COMP%] .evaluators-cards[_ngcontent-%COMP%] .evaluator-card[_ngcontent-%COMP%] .evaluator-avatar-wrapper[_ngcontent-%COMP%] .evaluator-avatar[_ngcontent-%COMP%]{height:1.5rem;width:1.5rem;border-radius:9999px;object-fit:cover}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td.team-name[_ngcontent-%COMP%] .team-name-wrapper[_ngcontent-%COMP%] .evaluators-section[_ngcontent-%COMP%] .evaluators-cards[_ngcontent-%COMP%] .evaluator-card[_ngcontent-%COMP%] .evaluator-avatar-wrapper[_ngcontent-%COMP%] .evaluator-avatar-placeholder[_ngcontent-%COMP%]{display:flex;height:1.5rem;width:1.5rem;align-items:center;justify-content:center;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(51 102 255 / var(--tw-bg-opacity, 1))}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td.team-name[_ngcontent-%COMP%] .team-name-wrapper[_ngcontent-%COMP%] .evaluators-section[_ngcontent-%COMP%] .evaluators-cards[_ngcontent-%COMP%] .evaluator-card[_ngcontent-%COMP%] .evaluator-avatar-wrapper[_ngcontent-%COMP%] .evaluator-avatar-placeholder[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:10px;font-weight:600;color:var(--color-white)}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td.team-name[_ngcontent-%COMP%] .team-name-wrapper[_ngcontent-%COMP%] .evaluators-section[_ngcontent-%COMP%] .evaluators-cards[_ngcontent-%COMP%] .evaluator-card[_ngcontent-%COMP%] .evaluator-info[_ngcontent-%COMP%]{display:flex;flex-direction:column}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td.team-name[_ngcontent-%COMP%] .team-name-wrapper[_ngcontent-%COMP%] .evaluators-section[_ngcontent-%COMP%] .evaluators-cards[_ngcontent-%COMP%] .evaluator-card[_ngcontent-%COMP%] .evaluator-info[_ngcontent-%COMP%] .evaluator-name[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem;font-weight:500;color:var(--color-gray-900)}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td.team-name[_ngcontent-%COMP%] .team-name-wrapper[_ngcontent-%COMP%] .evaluators-section[_ngcontent-%COMP%] .evaluators-cards[_ngcontent-%COMP%] .evaluator-card[_ngcontent-%COMP%] .evaluator-info[_ngcontent-%COMP%] .evaluator-status[_ngcontent-%COMP%]{font-size:10px;font-weight:500;--tw-text-opacity: 1;color:rgb(234 88 12 / var(--tw-text-opacity, 1))}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td.team-name[_ngcontent-%COMP%] .team-name-wrapper[_ngcontent-%COMP%] .evaluators-section[_ngcontent-%COMP%] .evaluators-cards[_ngcontent-%COMP%] .evaluator-card[_ngcontent-%COMP%] .evaluator-info[_ngcontent-%COMP%] .evaluator-status.status-submitted[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .status-badge[_ngcontent-%COMP%]{display:flex;width:max-content;align-items:center;gap:.25rem;border-radius:.25rem;padding:.25rem .5rem;font-size:.75rem;line-height:1rem;font-weight:500;background-color:var(--color-gray-100);color:var(--color-gray-600)}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .status-badge.draft[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(254 249 195 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(133 77 14 / var(--tw-text-opacity, 1))}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .status-badge.submitted[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity, 1))}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .no-scoring[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .ps-link[_ngcontent-%COMP%]{cursor:pointer;--tw-text-opacity: 1;color:rgb(51 102 255 / var(--tw-text-opacity, 1));text-decoration-line:underline}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .ps-link[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(41 82 204 / var(--tw-text-opacity, 1))}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .submission-link[_ngcontent-%COMP%]{word-break:break-all;--tw-text-opacity: 1;color:rgb(51 102 255 / var(--tw-text-opacity, 1));text-decoration-line:underline}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .submission-link[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(41 82 204 / var(--tw-text-opacity, 1))}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .submission-comments[_ngcontent-%COMP%]{margin-top:.25rem;font-size:.75rem;line-height:1rem;font-style:italic;color:var(--color-gray-500)}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .no-submission[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .submission-detail
1s[_ngcontent-%COMP%]{display:flex;max-width:400px;flex-direction:column;gap:.5rem}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .submission-details[_ngcontent-%COMP%] .ppt-link[_ngcontent-%COMP%], .teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .submission-details[_ngcontent-%COMP%] .project-link[_ngcontent-%COMP%], .teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .submission-details[_ngcontent-%COMP%] .updates-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .submission-details[_ngcontent-%COMP%] .ppt-link[_ngcontent-%COMP%] .submission-chip[_ngcontent-%COMP%], .teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .submission-details[_ngcontent-%COMP%] .project-link[_ngcontent-%COMP%] .submission-chip[_ngcontent-%COMP%], .teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .submission-details[_ngcontent-%COMP%] .updates-list[_ngcontent-%COMP%] .submission-chip[_ngcontent-%COMP%]{cursor:pointer}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .submission-details[_ngcontent-%COMP%] .ppt-link[_ngcontent-%COMP%] strong[_ngcontent-%COMP%], .teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .submission-details[_ngcontent-%COMP%] .project-link[_ngcontent-%COMP%] strong[_ngcontent-%COMP%], .teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .submission-details[_ngcontent-%COMP%] .updates-list[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem;font-weight:600;color:var(--color-gray-700)}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .submission-details[_ngcontent-%COMP%] .ppt-link[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .submission-details[_ngcontent-%COMP%] .project-link[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .submission-details[_ngcontent-%COMP%] .updates-list[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{overflow-wrap:break-word;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(51 102 255 / var(--tw-text-opacity, 1));text-decoration-line:underline}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .submission-details[_ngcontent-%COMP%] .ppt-link[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .submission-details[_ngcontent-%COMP%] .project-link[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .submission-details[_ngcontent-%COMP%] .updates-list[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(41 82 204 / var(--tw-text-opacity, 1))}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .submission-details[_ngcontent-%COMP%] .ppt-link[_ngcontent-%COMP%] .update-details[_ngcontent-%COMP%], .teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .submission-details[_ngcontent-%COMP%] .project-link[_ngcontent-%COMP%] .update-details[_ngcontent-%COMP%], .teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .submission-detail
1s[_ngcontent-%COMP%] .updates-list[_ngcontent-%COMP%] .update-details[_ngcontent-%COMP%]{word-break:break-word;overflow-wrap:break-word}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .submission-details[_ngcontent-%COMP%] .ppt-link[_ngcontent-%COMP%] .update-details[_ngcontent-%COMP%] p, .teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .submission-details[_ngcontent-%COMP%] .project-link[_ngcontent-%COMP%] .update-details[_ngcontent-%COMP%] p, .teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .submission-details[_ngcontent-%COMP%] .updates-list[_ngcontent-%COMP%] .update-details[_ngcontent-%COMP%] p{margin:0}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .submission-details[_ngcontent-%COMP%] .ppt-link[_ngcontent-%COMP%] .date-time[_ngcontent-%COMP%], .teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .submission-details[_ngcontent-%COMP%] .project-link[_ngcontent-%COMP%] .date-time[_ngcontent-%COMP%], .teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .submission-details[_ngcontent-%COMP%] .updates-list[_ngcontent-%COMP%] .date-time[_ngcontent-%COMP%]{margin-left:.25rem;font-size:.75rem;line-height:1rem;color:var(--color-gray-500)}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .submission-details[_ngcontent-%COMP%] .updates-list[_ngcontent-%COMP%]{width:9rem}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .submission-details[_ngcontent-%COMP%] .updates-list[_ngcontent-%COMP%] ol[_ngcontent-%COMP%]{margin:0;padding-left:1rem}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .submission-details[_ngcontent-%COMP%] .updates-list[_ngcontent-%COMP%] ol[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-bottom:.25rem;font-size:.75rem;line-height:1rem;color:var(--color-gray-700)}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .submission-details[_ngcontent-%COMP%] .updates-list[_ngcontent-%COMP%] ol[_ngcontent-%COMP%] li[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{padding:0}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .submission-details[_ngcontent-%COMP%] .updates-list[_ngcontent-%COMP%] ol[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .update-details[_ngcontent-%COMP%]{width:9rem;word-break:break-word;overflow-wrap:break-word}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .submission-details[_ngcontent-%COMP%] .updates-list[_ngcontent-%COMP%] ol[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .update-details[_ngcontent-%COMP%] p{margin:0}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .submission-details[_ngcontent-%COMP%] .updates-list[_ngcontent-%COMP%] ol[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .update-details[_ngcontent-%COMP%] img{max-height:200px;max-width:200px;object-fit:contain}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .submission-details[_ngcontent-%COMP%] .updates-list[_ngcontent-%COMP%] ol[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .date-time[_ngcontent-%COMP%]{margin-left:.25rem;font-size:.75rem;line-height:1rem;color:var(--color-gray-500)}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .inner-score-table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .inner-score-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--color-bright-gray)}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .inner-score-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child{border-bottom-width:0px}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .inner-score-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.25rem .5rem;font-size:.75rem;line-height:1rem;color:var(--color-gray-700)}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .inner-score-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{font-weight:500}.teams-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .inner-score-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{text-align:right;font-weight:600}.problem-statement-dialog[_ngcontent-%COMP%]{max-height:500px;width:100%;max-width:90vw}@media (min-width: 768px){.problem-statement-dialog[_ngcontent-%COMP%]{width:600px}}.problem-statement-dialog[_ngcontent-%COMP%] com-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.problem-statement-dialog[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%]{max-height:350px;overflow-y:auto;overflow-wrap:break-word}.problem-statement-dialog[_ngcontent-%COMP%] com-card-footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.dialog-box-card[_ngcontent-%COMP%] com-card-header[_ngcontent-%COMP%], .dialog-box-card[_ngcontent-%COMP%] com-card-footer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.dialog-box-card[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:0;color:var(--color-gray-700)}.meeting-location-display[_ngcontent-%COMP%]{margin-bottom:1rem;padding:.75rem}.meeting-location-display[_ngcontent-%COMP%] .meeting-label[_ngcontent-%COMP%]{margin-right:.5rem;font-size:.875rem;line-height:1.25rem;font-weight:500}.meeting-location-display[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(51 102 255 / var(--tw-text-opacity, 1));text-decoration-line:underline}.meeting-location-display[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(41 82 204 / var(--tw-text-opacity, 1))}.meeting-location-add[_ngcontent-%COMP%]{margin-bottom:1rem}.assign-team[_ngcontent-%COMP%]{max-height:90dvh;width:100%}@media (min-width: 768px){.assign-team[_ngcontent-%COMP%]{width:40dvw}}.assign-team[_ngcontent-%COMP%] .team-tags[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.assign-team[_ngcontent-%COMP%] .team-tags[_ngcontent-%COMP%] .tag[_ngcontent-%COMP%]{padding:.25rem}.members-count-trigger[_ngcontent-%COMP%]{cursor:pointer;font-weight:600;--tw-text-opacity: 1;color:rgb(51 102 255 / var(--tw-text-opacity, 1));text-decoration-line:underline;text-underline-offset:2px}.members-count-trigger[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(41 82 204 / var(--tw-text-opacity, 1))}
1.members-popover[_ngcontent-%COMP%]{min-width:200px;max-width:300px;padding:.75rem}.members-popover[_ngcontent-%COMP%] .members-popover-list[_ngcontent-%COMP%]{display:flex;max-height:300px;flex-direction:column;overflow-y:auto}.members-popover[_ngcontent-%COMP%] .members-popover-list[_ngcontent-%COMP%] app-user-profile-card-small[_ngcontent-%COMP%]{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--color-bright-gray);padding-top:.5rem;padding-bottom:.5rem}.members-popover[_ngcontent-%COMP%] .members-popover-list[_ngcontent-%COMP%] app-user-profile-card-small[_ngcontent-%COMP%]:last-child{border-bottom-width:0px}.members-popover[_ngcontent-%COMP%] .members-popover-empty[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.document-viewer-dialog[_ngcontent-%COMP%]{max-height:95vh;width:100%}@media (min-width: 768px){.document-viewer-dialog[_ngcontent-%COMP%]{width:90vw}}.document-viewer-dialog[_ngcontent-%COMP%] com-card-header[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;padding:1rem}.document-viewer-dialog[_ngcontent-%COMP%] com-card-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;font-size:1.125rem;line-height:1.75rem;font-weight:600;color:var(--color-gray-900)}.document-viewer-dialog[_ngcontent-%COMP%] com-card-header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;margin-top:.25rem;font-size:.875rem;line-height:1.25rem;color:var(--color-gray-600)}.document-viewer-dialog[_ngcontent-%COMP%] com-card-body[_ngcontent-%COMP%]{overflow:hidden;padding:0}.teams-mobile-cards-grid[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.25rem}.teams-mobile-cards[_ngcontent-%COMP%]{margin-top:1rem;display:flex;flex-direction:column;gap:1.25rem}.teams-mobile-cards[_ngcontent-%COMP%] .team-mobile-card[_ngcontent-%COMP%]{border-radius:.5rem;border-width:1px;border-style:solid;border-color:var(--color-bright-gray);background-color:var(--color-white);padding:.75rem}.teams-mobile-cards[_ngcontent-%COMP%] .team-mobile-card[_ngcontent-%COMP%] .team-mobile-header[_ngcontent-%COMP%]{margin-bottom:.75rem;display:flex;align-items:center;justify-content:space-between}.teams-mobile-cards[_ngcontent-%COMP%] .team-mobile-card[_ngcontent-%COMP%] .team-mobile-header[_ngcontent-%COMP%] .team-mobile-name[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem;font-weight:600;color:var(--color-yankees-blue)}.teams-mobile-cards[_ngcontent-%COMP%] .team-mobile-card[_ngcontent-%COMP%] .team-mobile-header[_ngcontent-%COMP%] .status-badge[_ngcontent-%COMP%]{border-radius:9999px;background-color:var(--color-gray-100);padding:.125rem .5rem;font-size:.75rem;line-height:1rem;font-weight:500;color:var(--color-gray-600)}.teams-mobile-cards[_ngcontent-%COMP%] .team-mobile-card[_ngcontent-%COMP%] .team-mobile-header[_ngcontent-%COMP%] .status-badge.submitted[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}.teams-mobile-cards[_ngcontent-%COMP%] .team-mobile-card[_ngcontent-%COMP%] .team-mobile-header[_ngcontent-%COMP%] .status-badge.draft[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(254 249 195 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(161 98 7 / var(--tw-text-opacity, 1))}.teams-mobile-cards[_ngcontent-%COMP%] .team-mobile-card[_ngcontent-%COMP%] .team-mobile-details[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem}.teams-mobile-cards[_ngcontent-%COMP%] .team-mobile-card[_ngcontent-%COMP%] .team-mobile-details[_ngcontent-%COMP%] .team-mobile-row[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;gap:.5rem}.teams-mobile-cards[_ngcontent-%COMP%] .team-mobile-card[_ngcontent-%COMP%] .team-mobile-details[_ngcontent-%COMP%] .team-mobile-row[_ngcontent-%COMP%] .team-mobile-label[_ngcontent-%COMP%]{flex-shrink:0;font-size:.75rem;line-height:1rem;font-weight:500;color:var(--color-gray-500)}.teams-mobile-cards[_ngcontent-%COMP%] .team-mobile-card[_ngcontent-%COMP%] .team-mobile-details[_ngcontent-%COMP%] .team-mobile-row[_ngcontent-%COMP%] .team-mobile-value[_ngcontent-%COMP%]{text-align:right;font-size:.75rem;line-height:1rem;color:var(--color-yankees-blue)}.teams-mobile-cards[_ngcontent-%COMP%] .team-mobile-card[_ngcontent-%COMP%] .team-mobile-details[_ngcontent-%COMP%] .team-mobile-row[_ngcontent-%COMP%] .ps-link[_ngcontent-%COMP%], .teams-mobile-cards[_ngcontent-%COMP%] .team-mobile-card[_ngcontent-%COMP%] .team-mobile-details[_ngcontent-%COMP%] .team-mobile-row[_ngcontent-%COMP%] .members-count-trigger[_ngcontent-%COMP%]{cursor:pointer;--tw-text-opacity: 1;color:rgb(51 102 255 / var(--tw-text-opacity, 1));text-decoration-line:underline}.teams-mobile-cards[_ngcontent-%COMP%] .team-mobile-card[_ngcontent-%COMP%] .team-mobile-details[_ngcontent-%COMP%] .team-mobile-row[_ngcontent-%COMP%] .submission-link[_ngcontent-%COMP%]{word-break:break-all;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(51 102 255 / var(--tw-text-opacity, 1));text-decoration-line:none}.teams-mobile-cards[_ngcontent-%COMP%] .team-mobile-card[_ngcontent-%COMP%] .team-mobile-details[_ngcontent-%COMP%] .team-mobile-row[_ngcontent-%COMP%] .submission-link[_ngcontent-%COMP%]:hover{text-decoration-line:underline}.teams-mobile-cards[_ngcontent-%COMP%] .team-mobile-card[_ngcontent-%COMP%] .team-mobile-details[_ngcontent-%COMP%] .team-mobile-row[_ngcontent-%COMP%] .no-submission[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.teams-mobile-cards[_ngcontent-%COMP%] .team-mobile-card[_ngcontent-%COMP%] .team-mobile-details[_ngcontent-%COMP%] .team-mobile-row-col[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}.teams-mobile-cards[_ngcontent-%COMP%] .team-mobile-card[_ngcontent-%COMP%] .team-mobile-details[_ngcontent-%COMP%] .team-mobile-score-details[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;width:100%;flex-direction:column;gap:.375rem}.teams-mobile-cards[_ngcontent-%COMP%] .team-mobile-card[_ngcontent-%COMP%] .team-mobile-details[_ngcontent-%COMP%] .team-mobile-score-details[_ngcontent-%COMP%] .score-item[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;border-radius:.25rem;background-color:var(--color-gray-50);padding:.375rem .5rem;font-size:.75rem;line-height:1rem}.teams-mobile-cards[_ngcontent-%COMP%] .team-mobile-card[_ngcontent-%COMP%] .team-mobile-details[_ngcontent-%COMP%] .team-mobile-score-details[_ngcontent-%COMP%] .score-item[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child{font-weight:500;color:var(--color-yankees-blue)}.teams-mobile-cards[_ngcontent-%COMP%] .team-mobile-card[_ngcontent-%COMP%] .team-mobile-details[_ngcontent-%COMP%] .team-mobile-score-details[_ngcontent-%COMP%] .score-item[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:last-child{color:var(--color-gray-600)}.teams-mobile-cards[_ngcontent-%COMP%] .team-mobile-card[_ngcontent-%COMP%] .team-mobile-details[_ngcontent-%COMP%] .team-mobile-submission[_ngcontent-%COMP%]{margin-top:.25rem;display:flex;flex-direction:column;gap:.25rem}.teams-mobile-cards[_ngcontent-%COMP%] .team-mobile-card[_ngcontent-%COMP%] .team-mobile-details[_ngcontent-%COMP%] .team-mobile-submission[_ngcontent-%COMP%] .project-label[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem;color:var(--color-gray-500)}.teams-mobile-cards[_ngcontent-%COMP%] .team-mobile-card[_ngcontent-%COMP%] .team-mobile-details[_ngcontent-%COMP%] .team-mobile-submission[_ngcontent-%COMP%] .submission-link[_ngcontent-%COMP%]{word-break:break-all;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(51 102 255 / var(--tw-text-opacity, 1));text-decoration-line:none}.teams-mobile-cards[_ngcontent-%COMP%] .team-mobile-card[_ngcontent-%COMP%] .team-mobile-details[_ngcontent-%COMP%] .team-mobile-submission[_ngcontent-%COMP%] .submission-link[_ngcontent-%COMP%]:hover{text-decoration-line:underline}.teams-mobile-cards[_ngcontent-%COMP%] .team-mobile-card[_ngcontent-%COMP%] .team-mobile-details[_ngcontent-%COMP%] .team-mobile-submission[_ngcontent-%COMP%] .no-submission[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.teams-mobile-cards[_ngcontent-%COMP%] .team-mobile-card[_ngcontent-%COMP%] .team-mobile-actions[_ngcontent-%COMP%], .teams-mobile-cards[_ngcontent-%COMP%] .team-mobile-card[_ngcontent-%COMP%] .team-mobile-evaluators[_ngcontent-%COMP%]{margin-top:.75rem;border-width:0px;border-top-width:1px;border-style:solid;border-color:var(--color-bright-gray);padding-top:.75rem}.teams-mobile-cards[_ngcontent-%COMP%] .team-mobile-card[_ngcontent-%COMP%] .team-mobile-evaluators[_ngcontent-%COMP%] .evaluators-toggle[_ngcontent-%COMP%]{display:flex;width:100%;cursor:pointer;align-items:center;justify-content:space-between;border-width:0px;background-color:transparent;padding:0;font-size:.75rem;line-height:1rem;font-weight:500;color:var(--color-gray-500)}.teams-mobile-cards[_ngcontent-%COMP%] .team-mobile-card[_ngcontent-%COMP%] .team-mobile-evaluators[_ngcontent-%COMP%] .evaluators-toggle[_ngcontent-%COMP%] nb-icon[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem;color:var(--color-gray-500)}.teams-mobile-cards[_ngcontent-%COMP%] .team-mobile-card[_ngcontent-%COMP%] .team-mobile-evaluators[_ngcontent-%COMP%] .evaluators-list[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-direction:column;gap:.375rem}.teams-mobile-cards[_ngcontent-%COMP%] .team-mobile-card[_ngcontent-%COMP%] .team-mobile-evaluators[_ngcontent-%COMP%] .evaluators-list[_ngcontent-%COMP%] .evaluator-item[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;border-radius:.25rem;background-color:var(--color-gray-50);padding:.375rem .5rem}.teams-mobile-cards[_ngcontent-%COMP%] .team-mobile-card[_ngcontent-%COMP%] .team-mobile-evaluators[_ngcontent-%COMP%] .evaluators-list[_ngcontent-%COMP%] .evaluator-item.evaluator-item-col[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;gap:.25rem}.teams-mobile-cards[_ngcontent-%COMP%] .team-mobile-card[_ngcontent-%COMP%] .team-mobile-evaluators[_ngcontent-%COMP%] .evaluators-list[_ngcontent-%COMP%] .evaluator-item.evaluator-submitted[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1))}.teams-mobile-cards[_ngcontent-%COMP%] .team-mobile-card[_ngcontent-%COMP%] .team-mobile-evaluators[_ngcontent-%COMP%] .evaluators-list[_ngcontent-%COMP%] .evaluator-item[_ngcontent-%COMP%] .evaluator-name[_ng
1content-%COMP%]{font-size:.75rem;line-height:1rem;color:var(--color-yankees-blue)}.teams-mobile-cards[_ngcontent-%COMP%] .team-mobile-card[_ngcontent-%COMP%] .team-mobile-evaluators[_ngcontent-%COMP%] .evaluators-list[_ngcontent-%COMP%] .evaluator-item[_ngcontent-%COMP%] .evaluator-meta[_ngcontent-%COMP%]{display:flex;width:100%;align-items:center;justify-content:space-between;gap:.5rem}.teams-mobile-cards[_ngcontent-%COMP%] .team-mobile-card[_ngcontent-%COMP%] .team-mobile-evaluators[_ngcontent-%COMP%] .evaluators-list[_ngcontent-%COMP%] .evaluator-item[_ngcontent-%COMP%] .evaluator-meta[_ngcontent-%COMP%] .view-more-btn[_ngcontent-%COMP%]{cursor:pointer;border-width:0px;background-color:transparent;padding:0;font-size:.75rem;line-height:1rem;font-weight:500;--tw-text-opacity: 1;color:rgb(51 102 255 / var(--tw-text-opacity, 1))}.teams-mobile-cards[_ngcontent-%COMP%] .team-mobile-card[_ngcontent-%COMP%] .team-mobile-evaluators[_ngcontent-%COMP%] .evaluators-list[_ngcontent-%COMP%] .evaluator-item[_ngcontent-%COMP%] .evaluator-status[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem;color:var(--color-gray-500)}.teams-mobile-cards[_ngcontent-%COMP%] .team-mobile-card[_ngcontent-%COMP%] .team-mobile-evaluators[_ngcontent-%COMP%] .evaluators-list[_ngcontent-%COMP%] .evaluator-item[_ngcontent-%COMP%] .evaluator-status.status-submitted[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}"]})}}return e})();var H=s(42455),Yl=s(7673),Bl=s(5964),Xl=s(96697),Ul=s(25558),Nl=s(99437),Ll=s(63309);const Jl=f.iI.forChild([{path:"",resolve:{community:te.i,hackathon:oe},children:[{path:"",component:Zn,children:[{path:"",component:eo},{path:"schedule",component:oo},{path:"tracks",component:Oi},{path:"judges",component:_o},{path:"prizes",component:yo},{path:"winners",component:Lo},{path:"projects",component:ii},{path:"channels",component:L},{path:"channels/:community_channel_id",component:L},{path:"channels/join/:token",component:L},{path:"channels/email-join/:email_token",component:L},{path:"user-dashboard",component:yc,canActivate:[H.q,(()=>{class e{constructor(n,i,o){this.hackathonService=n,this.authService=i,this.errorHandler=o}canActivate(n,i){const o=n.parent?.params.hackathon_id||n.parent?.parent?.params.hackathon_id;return this.authService.currentUser$.pipe((0,Bl.p)(r=>void 0!==r),(0,Xl.s)(1),(0,Ul.n)(()=>this.hackathonService.getHackathonCurrentRegistrationDetails(o).pipe((0,pt.T)(r=>!!(r&&r.length>0&&r.some(c=>c.registration_status===u.AY.ACCEPTED))||(this.errorHandler.handleError(404,"Page not found"),!1)),(0,Nl.W)(()=>(this.errorHandler.handleError(404,"Page not found"),(0,Yl.of)(!1))))))}static{this.\u0275fac=function(i){return new(i||e)(t.KVO(O.$),t.KVO(U.E),t.KVO(Ll.N_))}}static{this.\u0275prov=t.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})()]},{path:"mentor-dashboard",component:jt,canActivate:[H.q]},{path:"judge-dashboard",component:jt,canActivate:[H.q]}]},{path:"fill-form/:hackathon_response_group_id",component:Wa,canActivate:[H.q]},{path:"fill-form/:hackathon_response_group_id/submitted",component:V,canActivate:[H.q]}]}]);var Wl=s(10049),Ql=s(32489),ql=s(23675),Kl=s(35759),Zl=s(39335),Gt=s(17366),tm=s(62469);let nm=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=t.$C({type:e})}static{this.\u0275inj=t.G2t({imports:[m.MD,Jl,d.YN,d.X1,g.P5N,g.pty,g.lVF,g.x$5,g.QyE,g.clu,g.IB0,g.nZv,g.VcP,g.ZTu,g.Ofb,g.DkL,k.dX,Tt.EE,Wl.u,kt.u_,Ql.g,ql.CommunityChannelsModule,Gt.Vj,Gt.Hz,tm.g,bt.J,tt.W,nt.O,Kl.T,Zl.Z,Pt.T]})}}return e})()}}]);
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.