PageSourceSearch

https://www.codedex.io/_next/static/chunks/pages/home-62b19996aa926f63.js

js codedex.io collected 2026-09-25 14:56:37 UTC 118,758 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[229],{27484:function(n){var e,r,i,s,o,c,p,f,m,x,g,b,v,w,j,k,H,C,N,V,_,S;n.exports=(e="millisecond",r="second",i="minute",s="hour",o="week",c="month",p="quarter",f="year",m="date",x="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v=function(n,e,r){var i=String(n);return!i||i.length>=e?n:""+Array(e+1-i.length).join(r)+n},(j={})[w="en"]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(n){var e=["th","st","nd","rd"],r=n%100;return"["+n+(e[(r-20)%10]||e[r]||"th")+"]"}},k="$isDayjsObject",H=function(n){return n instanceof _||!(!n||!n[k])},C=function t(n,e,r){var i;if(!n)return w;if("string"==typeof n){var s=n.toLowerCase();j[s]&&(i=s),e&&(j[s]=e,i=s);var o=n.split("-");if(!i&&o.length>1)return t(o[0])}else{var c=n.name;j[c]=n,i=c}return!r&&i&&(w=i),i||!r&&w},N=function(n,e){if(H(n))return n.clone();var r="object"==typeof e?e:{};return r.date=n,r.args=arguments,new _(r)},(V={s:v,z:function(n){var e=-n.utcOffset(),r=Math.abs(e);return(e<=0?"+":"-")+v(Math.floor(r/60),2,"0")+":"+v(r%60,2,"0")},m:function t(n,e){if(n.date()<e.date())return-t(e,n);var r=12*(e.year()-n.year())+(e.month()-n.month()),i=n.clone().add(r,c),s=e-i<0,o=n.clone().add(r+(s?-1:1),c);return+(-(r+(e-i)/(s?i-o:o-i))||0)},a:function(n){return n<0?Math.ceil(n)||0:Math.floor(n)},p:function(n){return({M:c,y:f,w:o,d:"day",D:m,h:s,m:i,s:r,ms:e,Q:p})[n]||String(n||"").toLowerCase().replace(/s$/,"")},u:function(n){return void 0===n}}).l=C,V.i=H,V.w=function(n,e){return N(n,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})},S=(_=function(){function M(n){this.$L=C(n.locale,null,!0),this.parse(n),this.$x=this.$x||n.x||{},this[k]=!0}var n=M.prototype;return n.parse=function(n){this.$d=function(n){var e=n.date,r=n.utc;if(null===e)return new Date(NaN);if(V.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var i=e.match(g);if(i){var s=i[2]-1||0,o=(i[7]||"0").substring(0,3);return r?new Date(Date.UTC(i[1],s,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)):new Date(i[1],s,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)}}return new Date(e)}(n),this.init()},n.init=function(){var n=this.$d;this.$y=n.getFullYear(),this.$M=n.getMonth(),this.$D=n.getDate(),this.$W=n.getDay(),this.$H=n.getHours(),this.$m=n.getMinutes(),this.$s=n.getSeconds(),this.$ms=n.getMilliseconds()},n.$utils=function(){return V},n.isValid=function(){return this.$d.toString()!==x},n.isSame=function(n,e){var r=N(n);return this.startOf(e)<=r&&r<=this.endOf(e)},n.isAfter=function(n,e){return N(n)<this.startOf(e)},n.isBefore=function(n,e){return this.endOf(e)<N(n)},n.$g=function(n,e,r){return V.u(n)?this[e]:this.set(r,n)},n.unix=function(){return Math.floor(this.valueOf()/1e3)},n.valueOf=function(){return this.$d.getTime()},n.startOf=function(n,e){var p=this,x=!!V.u(e)||e,g=V.p(n),l=function(n,e){var r=V.w(p.$u?Date.UTC(p.$y,e,n):new Date(p.$y,e,n),p);return x?r:r.endOf("day")},$=function(n,e){return V.w(p.toDate()[n].apply(p.toDate("s"),(x?[0,0,0,0]:[23,59,59,999]).slice(e)),p)},b=this.$W,v=this.$M,w=this.$D,j="set"+(this.$u?"UTC":"");switch(g){case f:return x?l(1,0):l(31,11);case c:return x?l(1,v):l(0,v+1);case o:var k=this.$locale().weekStart||0,H=(b<k?b+7:b)-k;return l(x?w-H:w+(6-H),v);case"day":case m:return $(j+"Hours",0);case s:return $(j+"Minutes",1);case i:return $(j+"Seconds",2);case r:return $(j+"Milliseconds",3);default:return this.clone()}},n.endOf=function(n){return this.startOf(n,!1)},n.$set=function(n,o){var p,x=V.p(n),g="set"+(this.$u?"UTC":""),b=((p={}).day=g+"Date",p[m]=g+"Date",p[c]=g+"Month",p[f]=g+"FullYear",p[s]=g+"Hours",p[i]=g+"Minutes",p[r]=g+"Seconds",p[e]=g+"Milliseconds",p)[x],v="day"===x?this.$D+(o-this.$W):o;if(x===c||x===f){var w=this.clone().set(m,1);w.$d[b](v),w.init(),this.$d=w.set(m,Math.min(this.$D,w.daysInMonth())).$d}else b&&this.$d[b](v);return this.init(),this},n.set=function(n,e){return this.clone().$set(n,e)},n.get=function(n){return this[V.p(n)]()},n.add=function(n,e){var p,m=this;n=Number(n);var x=V.p(e),y=function(e){var r=N(m);return V.w(r.date(r.date()+Math.round(e*n)),m)};if(x===c)return this.set(c,this.$M+n);if(x===f)return this.set(f,this.$y+n);if("day"===x)return y(1);if(x===o)return y(7);var g=((p={})[i]=6e4,p[s]=36e5,p[r]=1e3,p)[x]||1,b=this.$d.getTime()+n*g;return V.w(b,this)},n.subtract=function(n,e){return this.add(-1*n,e)},n.format=function(n){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||x;var i=n||"YYYY-MM-DDTHH:mm:ssZ",s=V.z(this),o=this.$H,c=this.$m,p=this.$M,f=r.weekdays,m=r.months,g=r.meridiem,h=function(n,r,s,o){return n&&(n[r]||n(e,i))||s[r].slice(0,o)},d=function(n){return V.s(o%12||12,n,"0")},v=g||function(n,e,r){var i=n<12?"AM":"PM";return r?i.toLowerCase():i};return i.replace(b,function(n,i){return i||function(n){switch(n){case"YY":return String(e.$y).slice(-2);case"YYYY":return V.s(e.$y,4,"0");case"M":return p+1;case"MM":return V.s(p+1,2,"0");case"MMM":return h(r.monthsShort,p,m,3);case"MMMM":return h(m,p);case"D":return e.$D;case"DD":return V.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(r.weekdaysMin,e.$W,f,2);case"ddd":return h(r.weekdaysShort,e.$W,f,3);case"dddd":return f[e.$W];case"H":return String(o);case"HH":return V.s(o,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return v(o,c,!0);case"A":return v(o,c,!1);case"m":return String(c);case"mm":return V.s(c,2,"0");case"s":return String(e.$s);case"ss":return V.s(e.$s,2,"0");case"SSS":return V.s(e.$ms,3,"0");case"Z":return s}return null}(n)||s.replace(":","")})},n.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},n.diff=function(n,e,m){var x,g=this,b=V.p(e),v=N(n),w=(v.utcOffset()-this.utcOffset())*6e4,j=this-v,D=function(){return V.m(g,v)};switch(b){case f:x=D()/12;break;case c:x=D();break;case p:x=D()/3;break;case o:x=(j-w)/6048e5;break;case"day":x=(j-w)/864e5;break;case s:x=j/36e5;break;case i:x=j/6e4;break;case r:x=j/1e3;break;default:x=j}return m?x:V.a(x)},n.daysInMonth=function(){return this.endOf(c).$D},n.$locale=function(){return j[this.$L]},n.locale=function(n,e){if(!n)return this.$L;var r=this.clone(),i=C(n,e,!0);return i&&(r.$L=i),r},n.clone=function(){return V.w(this.$d,this)},n.toDate=function(){return new Date(this.valueOf())},n.toJSON=function(){return this.isValid()?this.toISOString():null},n.toISOString=function(){return this.$d.toISOString()},n.toString=function(){return this.$d.toUTCString()},M}()).prototype,N.prototype=S,[["$ms",e],["$s",r],["$m",i],["$H",s],["$W","day"],["$M",c],["$y",f],["$D",m]].forEac
1h(function(n){S[n[1]]=function(e){return this.$g(e,n[0],n[1])}}),N.extend=function(n,e){return n.$i||(n(e,_,N),n.$i=!0),N},N.locale=C,N.isDayjs=H,N.unix=function(n){return N(1e3*n)},N.en=j[w],N.Ls=j,N.p={},N)},28734:function(n){n.exports=function(n,e){var r=e.prototype,i=r.format;r.format=function(n){var e=this,r=this.$locale();if(!this.isValid())return i.bind(this)(n);var s=this.$utils(),o=(n||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(n){switch(n){case"Q":return Math.ceil((e.$M+1)/3);case"Do":return r.ordinal(e.$D);case"gggg":return e.weekYear();case"GGGG":return e.isoWeekYear();case"wo":return r.ordinal(e.week(),"W");case"w":case"ww":return s.s(e.week(),"w"===n?1:2,"0");case"W":case"WW":return s.s(e.isoWeek(),"W"===n?1:2,"0");case"k":case"kk":return s.s(String(0===e.$H?24:e.$H),"k"===n?1:2,"0");case"X":return Math.floor(e.$d.getTime()/1e3);case"x":return e.$d.getTime();case"z":return"["+e.offsetName()+"]";case"zzz":return"["+e.offsetName("long")+"]";default:return n}});return i.bind(this)(o)}}},1646:function(n){var e,r,i,s,o,c,p,f,m,x,g,b,v;n.exports=(i=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,s=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,o={years:31536e6,months:2628e6,days:864e5,hours:36e5,minutes:6e4,seconds:1e3,milliseconds:1,weeks:6048e5},c=function(n){return n instanceof b},p=function(n,e,r){return new b(n,r,e.$l)},f=function(n){return r.p(n)+"s"},m=function(n){return n<0},x=function(n){return m(n)?Math.ceil(n):Math.floor(n)},g=function(n,e){return n?m(n)?{negative:!0,format:""+Math.abs(n)+e}:{negative:!1,format:""+n+e}:{negative:!1,format:""}},b=function(){function l(n,e,r){var i=this;if(this.$d={},this.$l=r,void 0===n&&(this.$ms=0,this.parseFromMilliseconds()),e)return p(n*o[f(e)],this);if("number"==typeof n)return this.$ms=n,this.parseFromMilliseconds(),this;if("object"==typeof n)return Object.keys(n).forEach(function(e){i.$d[f(e)]=n[e]}),this.calMilliseconds(),this;if("string"==typeof n){var c=n.match(s);if(c){var m=c.slice(2).map(function(n){return null!=n?Number(n):0});return this.$d.years=m[0],this.$d.months=m[1],this.$d.weeks=m[2],this.$d.days=m[3],this.$d.hours=m[4],this.$d.minutes=m[5],this.$d.seconds=m[6],this.calMilliseconds(),this}}return this}var n=l.prototype;return n.calMilliseconds=function(){var n=this;this.$ms=Object.keys(this.$d).reduce(function(e,r){return e+(n.$d[r]||0)*o[r]},0)},n.parseFromMilliseconds=function(){var n=this.$ms;this.$d.years=x(n/31536e6),n%=31536e6,this.$d.months=x(n/2628e6),n%=2628e6,this.$d.days=x(n/864e5),n%=864e5,this.$d.hours=x(n/36e5),n%=36e5,this.$d.minutes=x(n/6e4),n%=6e4,this.$d.seconds=x(n/1e3),n%=1e3,this.$d.milliseconds=n},n.toISOString=function(){var n=g(this.$d.years,"Y"),e=g(this.$d.months,"M"),r=+this.$d.days||0;this.$d.weeks&&(r+=7*this.$d.weeks);var i=g(r,"D"),s=g(this.$d.hours,"H"),o=g(this.$d.minutes,"M"),c=this.$d.seconds||0;this.$d.milliseconds&&(c+=this.$d.milliseconds/1e3,c=Math.round(1e3*c)/1e3);var p=g(c,"S"),f=n.negative||e.negative||i.negative||s.negative||o.negative||p.negative,m=s.format||o.format||p.format?"T":"",x=(f?"-":"")+"P"+n.format+e.format+i.format+m+s.format+o.format+p.format;return"P"===x||"-P"===x?"P0D":x},n.toJSON=function(){return this.toISOString()},n.format=function(n){var e={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return(n||"YYYY-MM-DDTHH:mm:ss").replace(i,function(n,r){return r||String(e[n])})},n.as=function(n){return this.$ms/o[f(n)]},n.get=function(n){var e=this.$ms,r=f(n);return"milliseconds"===r?e%=1e3:e="weeks"===r?x(e/o[r]):this.$d[r],e||0},n.add=function(n,e,r){var i;return i=e?n*o[f(e)]:c(n)?n.$ms:p(n,this).$ms,p(this.$ms+i*(r?-1:1),this)},n.subtract=function(n,e){return this.add(n,e,!0)},n.locale=function(n){var e=this.clone();return e.$l=n,e},n.clone=function(){return p(this.$ms,this)},n.humanize=function(n){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!n)},n.valueOf=function(){return this.asMilliseconds()},n.milliseconds=function(){return this.get("milliseconds")},n.asMilliseconds=function(){return this.as("milliseconds")},n.seconds=function(){return this.get("seconds")},n.asSeconds=function(){return this.as("seconds")},n.minutes=function(){return this.get("minutes")},n.asMinutes=function(){return this.as("minutes")},n.hours=function(){return this.get("hours")},n.asHours=function(){return this.as("hours")},n.days=function(){return this.get("days")},n.asDays=function(){return this.as("days")},n.weeks=function(){return this.get("weeks")},n.asWeeks=function(){return this.as("weeks")},n.months=function(){return this.get("months")},n.asMonths=function(){return this.as("months")},n.years=function(){return this.get("years")},n.asYears=function(){return this.as("years")},l}(),v=function(n,e,r){return n.add(e.years()*r,"y").add(e.months()*r,"M").add(e.days()*r,"d").add(e.hours()*r,"h").add(e.minutes()*r,"m").add(e.seconds()*r,"s").add(e.milliseconds()*r,"ms")},function(n,i,s){e=s,r=s().$utils(),s.duration=function(n,e){return p(n,{$l:s.locale()},e)},s.isDuration=c;var o=i.prototype.add,f=i.prototype.subtract;i.prototype.add=function(n,e){return c(n)?v(this,n,1):o.bind(this)(n,e)},i.prototype.subtract=function(n,e){return c(n)?v(this,n,-1):f.bind(this)(n,e)}})},29387:function(n){var e,r;n.exports=(e={year:0,month:1,day:2,hour:3,minute:4,second:5},r={},function(n,i,s){var o,a=function(n,e,i){void 0===i&&(i={});var s,o,c,p,f=new Date(n);return(void 0===(s=i)&&(s={}),(p=r[c=e+"|"+(o=s.timeZoneName||"short")])||(p=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,
1year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:o}),r[c]=p),p).formatToParts(f)},u=function(n,r){for(var i=a(n,r),o=[],c=0;c<i.length;c+=1){var p=i[c],f=p.type,m=p.value,x=e[f];x>=0&&(o[x]=parseInt(m,10))}var g=o[3],b=o[0]+"-"+o[1]+"-"+o[2]+" "+(24===g?0:g)+":"+o[4]+":"+o[5]+":000",v=+n;return(s.utc(b).valueOf()-(v-=v%1e3))/6e4},c=i.prototype;c.tz=function(n,e){void 0===n&&(n=o);var r,i=this.utcOffset(),c=this.toDate(),p=c.toLocaleString("en-US",{timeZone:n}),f=Math.round((c-new Date(p))/1e3/60),m=-(15*Math.round(c.getTimezoneOffset()/15))-f;if(Number(m)){if(r=s(p,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(m,!0),e){var x=r.utcOffset();r=r.add(i-x,"minute")}}else r=this.utcOffset(0,e);return r.$x.$timezone=n,r},c.offsetName=function(n){var e=this.$x.$timezone||s.tz.guess(),r=a(this.valueOf(),e,{timeZoneName:n}).find(function(n){return"timezonename"===n.type.toLowerCase()});return r&&r.value};var p=c.startOf;c.startOf=function(n,e){if(!this.$x||!this.$x.$timezone)return p.call(this,n,e);var r=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return p.call(r,n,e).tz(this.$x.$timezone,!0)},s.tz=function(n,e,r){var i=r&&e,c=r||e||o,p=u(+s(),c);if("string"!=typeof n)return s(n).tz(c);var f=function(n,e,r){var i=n-60*e*1e3,s=u(i,r);if(e===s)return[i,e];var o=u(i-=60*(s-e)*1e3,r);return s===o?[i,s]:[n-60*Math.min(s,o)*1e3,Math.max(s,o)]}(s.utc(n,i).valueOf(),p,c),m=f[0],x=f[1],g=s(m).utcOffset(x);return g.$x.$timezone=c,g},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(n){o=n}})},70178:function(n){var e,r,i;n.exports=(e="minute",r=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g,function(n,s,o){var c=s.prototype;o.utc=function(n){var e={date:n,utc:!0,args:arguments};return new s(e)},c.utc=function(n){var r=o(this.toDate(),{locale:this.$L,utc:!0});return n?r.add(this.utcOffset(),e):r},c.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var p=c.parse;c.parse=function(n){n.utc&&(this.$u=!0),this.$utils().u(n.$offset)||(this.$offset=n.$offset),p.call(this,n)};var f=c.init;c.init=function(){if(this.$u){var n=this.$d;this.$y=n.getUTCFullYear(),this.$M=n.getUTCMonth(),this.$D=n.getUTCDate(),this.$W=n.getUTCDay(),this.$H=n.getUTCHours(),this.$m=n.getUTCMinutes(),this.$s=n.getUTCSeconds(),this.$ms=n.getUTCMilliseconds()}else f.call(this)};var m=c.utcOffset;c.utcOffset=function(n,s){var o=this.$utils().u;if(o(n))return this.$u?0:o(this.$offset)?m.call(this):this.$offset;if("string"==typeof n&&null===(n=function(n){void 0===n&&(n="");var e=n.match(r);if(!e)return null;var s=(""+e[0]).match(i)||["-",0,0],o=s[0],c=60*+s[1]+ +s[2];return 0===c?0:"+"===o?c:-c}(n)))return this;var c=16>=Math.abs(n)?60*n:n,p=this;if(s)return p.$offset=c,p.$u=0===n,p;if(0!==n){var f=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(p=this.local().add(c+f,e)).$offset=c,p.$x.$localOffset=f}else p=this.utc();return p};var x=c.format;c.format=function(n){var e=n||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return x.call(this,e)},c.valueOf=function(){var n=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*n},c.isUTC=function(){return!!this.$u},c.toISOString=function(){return this.toDate().toISOString()},c.toString=function(){return this.toDate().toUTCString()};var g=c.toDate;c.toDate=function(n){return"s"===n&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():g.call(this)};var b=c.diff;c.diff=function(n,e,r){if(n&&this.$u===n.$u)return b.call(this,n,e,r);var i=this.local(),s=o(n).local();return b.call(i,s,e,r)}})},94309:function(n,e,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/home",function(){return r(86116)}])},5478:function(n,e,r){"use strict";var i=r(82729),s=r(85893),o=r(19521),c=r(41664),p=r.n(c),f=r(609),m=r(9473);function _templateObject(){let n=(0,i._)(["\n  padding: 16px;\n  border-radius: 4px;\n  display: flex;\n  align-items: center;\n  gap: 16px;\n\n  p,\n  span {\n    margin: 0px;\n  }\n\n  p {\n    color: ",';\n    font-family: "Mulish", sans-serif;\n    font-size: 16px;\n    font-style: normal;\n    font-weight: 500;\n    line-height: 150%;\n  }\n\n  span {\n    font-style: normal;\n    font-weight: 700;\n    line-height: 150%;\n    text-decoration-line: underline;\n    text-decoration-thickness: 1px;\n    text-underline-offset: 2px;\n  }\n']);
1return _templateObject=function(){return n},n}let x=o.default.div.withConfig({componentId:"sc-7c74cba6-0"})(_templateObject(),n=>{let{theme:e}=n;return e.mode,e.colors.palette.grey["950"]});e.Z=function(n){let{type:e,includeLink:r="",textContent:i}=n;(0,m.v9)(f.o4);let o={error:(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",children:[(0,s.jsx)("rect",{width:"2",height:"2",transform:"matrix(1 0 0 -1 11.5 9)",fill:"#F43F5E"}),(0,s.jsx)("rect",{width:"2",height:"6",transform:"matrix(1 0 0 -1 11.5 17)",fill:"#F43F5E"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.5 3H7.5V5H5.5V7H3.5V17H5.5V19H7.5V21H17.5V19H19.5V17H21.5V7H19.5V5H17.5V3ZM17.5 5V7H19.5V17H17.5V19H7.5V17H5.5V7H7.5V5H17.5Z",fill:"#F43F5E"})]}),success:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 6H20V8H18V6ZM16 10V8H18V10H16ZM14 12V10H16V12H14ZM12 14H14V12H12V14ZM10 16H12V14H10V16ZM8 16V18H10V16H8ZM6 14H8V16H6V14ZM6 14H4V12H6V14Z",fill:"#84CC16"})})},c={error:{border:"#FECDD3",background:"#FFF1F2",textAccent:"#020617"},success:{border:"#D9F99D",background:"#F7FEE7",textAccent:"#020617"}}[e];return(0,s.jsxs)(x,{"data-aos":"fade-down","data-aos-duration":"400",style:{border:"2px solid ".concat(c.border),backgroundColor:c.background},className:"alert-bar",children:[(0,s.jsx)("div",{className:"icon",children:o[e]}),(0,s.jsxs)("p",{children:[i," ",r&&(0,s.jsx)(p(),{href:r,style:{all:"unset"},target:"_blank",children:(0,s.jsx)("span",{style:{color:c.textAccent},className:"nes-pointer",children:"View submission"})})]})]})}},14363:function(n,e,r){"use strict";var i=r(85893);e.Z=function(n){let{fill:e="black"}=n;return(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",children:[(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 2H12V4H8V6H6V8H4V12H2V20H4V24H6V26H8V28H12V30H20V28H24V26H26V24H28V20H30V12H28V8H26V6H24V4H20V2ZM20 4V6H24V8H26V12H28V20H26V24H24V26H20V28H12V26H8V24H6V20H4V12H6V8H8V6H12V4H20Z",fill:"#020617"}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 4H12V6H8V8H6V12H4V20H6V24H8V26H12V28H20V26H24V24H26V20H28V12H26V8H24V6H20V4Z",fill:"#14ADFF"}),(0,i.jsx)("rect",{x:"4",y:"12",width:"6",height:"8",fill:"#75D1FF"}),(0,i.jsx)("rect",{x:"10",y:"10",width:"12",height:"12",fill:"#EFF8FF"}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 26H8V24H6V20H12V22V24V26Z",fill:"#0080D4"}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 6H8V8H6V12H12V10V8V6Z",fill:"#2CBAFF"}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 6H24V8H26V12H20V10V8V6Z",fill:"#2CBAFF"}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 26H24V24H26V20H20V22V24V26Z",fill:"#75D1FF"}),(0,i.jsx)("rect",{x:"22",y:"12",width:"6",height:"8",fill:"#B6E4FF"}),(0,i.jsx)("rect",{x:"12",y:"4",width:"8",height:"6",fill:"#75D1FF"})]})}},71417:function(n,e,r){"use strict";var i=r(85893);e.Z=function(n){let{color:e="#64748B",...r}=n;return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 2.5H17V4.5H19H21V8.5V10.5V22.5H19H5H3V10.5V8.5V4.5H5H7V2.5H9V4.5H15V2.5ZM5 8.5H19V6.5H5V8.5ZM5 10.5V20.5H19V10.5H5Z",fill:e})})}},8920:function(n,e,r){"use strict";var i=r(85893);e.Z=function(n){let{fill:e="black"}=n;return(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",children:[(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5 0H16.5V2H14.5V8H12.5V14H10.5V12H8.5V10H6.5V12H4.5V16H2.5V22H4.5V26H6.5V28H8.5V30H10.5V32H22.5V30H24.5V28H26.5V26H28.5V22H30.5V16H28.5V12H26.5V8H24.5V6H22.5V4H20.5V2H18.5V0ZM18.5 2V4H20.5V6H22.5V8H24.5V12H26.5V16H28.5V22H26.5V26H24.5V28H22.5V30H10.5V28H8.5V26H6.5V22H4.5V16H6.5V12H8.5V14H10.5V16H12.5V14H14.5V8H16.5V2H18.5Z",fill:"#020617"}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5 2H16.5V8H14.5V14H12.5V16H10.5V14H8.5V12H6.5V16H4.5V22H6.5V26H8.5V28H10.5V30H12.5H14.5H16.5H18.5H20.5H22.5V28H24.5V26H26.5V22H28.5V16H26.5V12H24.5V8H22.5V6H20.5V4H18.5V2Z",fill:"#FF7A00"}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5 10H20.5V12H22.5V16H24.5V24H22.5V26H20.5V28H18.5H12.5V26H10.5V24H8.5V18H10.5V20H12.5H14.5V18H16.5V12H18.5V10Z",fill:"#FDE047"})]})}},65919:function(n,e,r){"use strict";var i=r(85893);e.Z=function(n){let{...e}=n;return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:(0,i.jsx)("path",{d:"M9.75 16.5H8.25V13.5H3V10.5H4.5V12H13.5V10.5H15V13.5H9.75V16.5ZM6 10.5H4.5V9H6V10.5ZM13.5 10.5H12V9H13.5V10.5ZM7.5 9H6V6H7.5V9ZM12 9H10.5V6H12V9ZM13.5 6H12V3H6V6H4.5V1.5H13.5V6Z",fill:"#475569"})})}},11575:function(n,e,r){"use strict";var i=r(67294),s=r(15195);e.Z=function(){let[n,e]=(0,i.useState)((0,s.G)());return(0,i.useEffect)(()=>{let n=setInterval(()=>{e((0,s.G)())},1e3);return()=>{clearInterval(n)}},[]),n}},48872:function(n,e,r){"use strict";
1var i=r(82729),s=r(85893),o=r(19521),c=r(20759),p=r(41664),f=r.n(p),m=r(14733),x=r(67294),g=r(9473),b=r(609),v=r(28010);function _templateObject(){let n=(0,i._)(['\n  flex: 1;\n  min-width: 0;\n  font-family: "Mulish", sans-serif;\n  background: ',";\n\n  "," {\n    min-height: 330px;\n  }\n\n  "," {\n    height: 351px;\n  }\n\n  .inner-container {\n    height: calc(100% - 4px);\n    background: ",";\n    display: flex;\n    flex-direction: column;\n\n    .image-container {\n      height: 180px;\n      margin: 2px;\n\n      img {\n        width: 100%;\n        height: 100%;\n        object-fit: cover;\n\n        clip-path: polygon(\n          4px 0px,\n          4px 2px,\n          2px 2px,\n          2px 4px,\n          0px 4px,\n          0px 100%,\n          100% 100%,\n          100% calc(100% - 4px),\n          100% calc(100% - 4px),\n          100% 4px,\n          calc(100% - 2px) 4px,\n          calc(100% - 2px) 2px,\n          calc(100% - 4px) 2px,\n          calc(100% - 4px) 0px\n        );\n      }\n    }\n\n    .content-container {\n      flex: 1;\n      padding: 16px;\n      display: flex;\n      flex-direction: column;\n      gap: 24px;\n\n      .text-container {\n        display: flex;\n        flex-direction: column;\n        gap: 4px;\n        flex: 1;\n\n        .label {\n          color: ",";\n          font-size: 12px;\n          font-weight: 600;\n          line-height: 150%;\n          letter-spacing: 1.68px;\n          text-transform: uppercase;\n\n          &.draft {\n            color: ",";\n            font-weight: 700;\n          }\n        }\n\n        .title {\n          color: ",";\n          font-size: 18px;\n          font-weight: 700;\n          line-height: 150%;\n          display: -webkit-box;\n          -webkit-box-orient: vertical;\n          text-overflow: ellipsis;\n          -webkit-line-clamp: 2;\n          overflow: hidden;\n        }\n      }\n\n      .diff-container {\n        display: flex;\n        gap: 8px;\n        max-width: 100%;\n        overflow: hidden;\n        position: relative;\n\n        .diff-tag {\n          padding: 5px 12px;\n          display: flex;\n          align-items: center;\n          gap: 8px;\n          width: fit-content;\n          border-radius: 100px;\n\n          background-color: ",";\n\n          p {\n            color: ",";\n            font-size: 12px;\n            font-weight: 700;\n            letter-spacing: 1.68px;\n          }\n        }\n\n        .second-tag {\n          padding: 5px 12px;\n          display: flex;\n          justify-content: center;\n          align-items: center;\n          border-radius: 100px;\n          white-space: nowrap;\n          background-color: ",";\n\n          p {\n            font-size: 12px;\n            font-weight: 700;\n            line-height: normal;\n            letter-spacing: 1.68px;\n            text-transform: uppercase;\n            color: ",";\n          }\n        }\n\n        .fade {\n          position: absolute;\n          right: 0px;\n\n          background: ",";\n\n          width: 56px;\n          height: 100%;\n        }\n      }\n    }\n\n    :hover {\n      background: ",";\n    }\n  }\n"]);return _templateObject=function(){return n},n}let w=(0,o.default)(c.Z).withConfig({componentId:"sc-b091db8f-0"})(_templateObject(),n=>{let{theme:e}=n;return e.colors.background.grey.tertiary},n=>{let{theme:e}=n;return e.breakpoints.xs},n=>{let{theme:e}=n;return e.breakpoints.sm},n=>{let{theme:e}=n;return e.colors.background.grey.primary},n=>{let{theme:e}=n;return e.colors.text.tertiary},n=>{let{theme:e}=n;return e.colors.text.accent.yellow},n=>{let{theme:e}=n;return e.colors.text.primary},n=>{let{theme:e}=n;return e.colors.background.grey.tertiary},n=>{let{theme:e}=n;return e.colors.text.secondary},n=>{let{theme:e}=n;return e.colors.background.grey.tertiary},n=>{let{theme:e}=n;return e.colors.text.secondary},n=>{let{theme:e}=n;return"dark"==e.mode?"linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #020617 100%)":"linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #fff 100%)"},n=>{let{theme:e}=n;return e.colors.background.grey.secondary}),j={Python:"blue-tag",JavaScript:"yellow-tag"};e.Z=function(n){var e;let{projectInternalTitle:r,filter:i=null,newTab:o=!1,isDraft:p=!1}=n,k=(0,g.v9)((0,v.Y9)({projectInternalTitle:r})),H=(0,g.v9)(b.o4)||"dark",C="dark"===H,N=null==k?void 0:null===(e=k.tags)||void 0===e?void 0:e.filter(n=>!["Beginner","Intermediate","Advanced"].includes(n))[0],V=(0,x.useRef)(null),[_,S]=(0,x.useState)(!1);if((0,x.useEffect)(()=>{let n=V.current;if(n){let e=n.scrollWidth>n.clientWidth;S(e)}},[]),N&&(!i||(null==k?void 0:k.tags.includes(i))))return(0,s.jsx)(w,{borderColor:C?"475569":"CBD5E1",children:(0,s.jsxs)(f(),{href:k.link,style:{all:"unset"},target:o?"_blank":"_self",children:[" ",(0,s.jsxs)(c.Z,{borderColor:C?"475569":"CBD5E1",className:"inner
1-container nes-pointer",children:[(0,s.jsx)("div",{className:"image-container",children:(0,s.jsx)("img",{src:k.image,alt:""})}),(0,s.jsxs)("div",{className:"content-container",children:[(0,s.jsxs)("div",{className:"text-container",children:[(0,s.jsx)("p",{className:"label ".concat(p?"draft":""),children:p?"Draft":"Tutorial"}),(0,s.jsx)("p",{className:"title",children:k.title})]}),(0,s.jsxs)("div",{className:"diff-container",ref:V,children:[(0,s.jsx)("div",{className:"second-tag ".concat(j[N]?j[N]:"blue-tag"),children:(0,s.jsx)("p",{children:N})}),(0,s.jsx)(m.Z,{level:k.tags.includes("Advanced")?3:k.tags.includes("Intermediate")?2:1}),_&&(0,s.jsx)("div",{className:"fade"})]})]})]})]})})}},29697:function(n,e,r){"use strict";var i=r(82729),s=r(85893),o=r(19521),c=r(9473),p=r(37009),f=r(84849),m=r(609);function _templateObject(){let n=(0,i._)(["\n  flex: 1;\n  display: flex;\n  gap: 12px;\n\n  .svg-container {\n    flex-shrink: 0;\n    display: flex;\n    justify-content: center;\n    align-items: center;\n\n    img {\n      width: 32px;\n      height: 32px;\n    }\n  }\n\n  .copy {\n    .num {\n      color: ",';\n      font-family: "PixelGridM";\n      font-size: 14px;\n      font-weight: 700;\n      letter-spacing: 0.42px;\n    }\n\n    .text {\n      color: ',";\n\n      font-size: 14px;\n\n      font-weight: 500;\n      line-height: 150%;\n    }\n  }\n\n  &.nes-pointer:hover .copy .text {\n    text-decoration: underline;\n  }\n"]);return _templateObject=function(){return n},n}let x=o.default.div.withConfig({componentId:"sc-edcbfeb0-0"})(_templateObject(),n=>{let{theme:e}=n;return e.colors.text.primary},n=>{let{theme:e}=n;return e.colors.text.secondary});e.Z=function(n){let{svg:e=null,imgSrc:r=!1,numText:i,description:o,showLoader:g=!1,onClick:b}=n,v=(0,c.v9)(m.o4)||"dark",w="dark"===v,j=(0,c.v9)(p.k9);return(0,s.jsx)(s.Fragment,{children:j&&!g?(0,s.jsx)(f.Z,{width:"100%",className:"skeleton",baseColor:w?"#0F172A":"#F1F5F9",highlightColor:w?"#1E293B":"#F8FAFC",height:38}):(0,s.jsxs)(x,{className:b?"nes-pointer":"",onClick:b,children:[(0,s.jsx)("div",{className:"svg-container",children:r?(0,s.jsx)("img",{src:r,alt:"rank image"}):(0,s.jsxs)(s.Fragment,{children:[" ",e]})}),(0,s.jsxs)("div",{className:"copy",children:[(0,s.jsx)("p",{className:"num",children:i}),(0,s.jsx)("p",{className:"text",children:o})]})]})})}},27936:function(n,e,r){"use strict";var i=r(82729),s=r(85893),o=r(19521);function _templateObject(){let n=(0,i._)(["\n  position: absolute;\n  width: 30vw;\n  height: 0px;\n  z-index: 10;\n  overflow: hidden;\n\n  h1,\n  p {\n    height: 10rem;\n  }\n"]);return _templateObject=function(){return n},n}let c=o.default.main.withConfig({componentId:"sc-e8309d9d-0"})(_templateObject());e.Z=function(n){let{h1:e,description:r="",canonical:i=""}=n;return e?(0,s.jsxs)(c,{children:[(0,s.jsx)("h1",{children:e}),r?(0,s.jsx)("p",{className:"description",children:r}):null,i?(0,s.jsx)("link",{rel:"canonical",href:i}):null]}):null}},6742:function(n,e,r){"use strict";r.d(e,{Z:function(){return postcard_ProfilePostCard}});var i=r(82729),s=r(85893),o=r(19521),c=r(3649),p=r(37719),f=r(67294),m=r(63877),x=r(65919);function _templateObject(){let n=(0,i._)(["\n  display: flex;\n  justify-content: space-between;\n\n  p {\n    margin: 0px;\n  }\n\n  .header-wrapper {\n    display: flex;\n    flex-direction: column;\n    gap: 8px;\n    .header {\n      display: flex;\n      align-items: center;\n      gap: 8px;\n\n      .images {\n        display: flex;\n\n        img {\n          border-radius: 50%;\n        }\n\n        .author {\n          width: 24px;\n          height: 24px;\n          object-fit: cover;\n        }\n\n        .channel {\n          width: 24px;\n          height: 24px;\n          background-color: ",";\n          border: 2px solid ",";\n          box-sizing: content-box;\n          margin-left: -10px;\n          margin-top: 8px;\n        }\n\n        img {\n          flex-shrink: 0;\n        }\n      }\n\n      .names {\n        display: flex;\n        flex-direction: column;\n\n        .author-name {\n          display: flex;\n          align-items: center;\n          align-items: center;\n          gap: 4px;\n\n          color: ",";\n          font-size: 14px;\n          font-weight: 700;\n          line-height: 150%;\n\n          .name {\n            /* flex: 1; */\n          }\n\n          span {\n            color: ",";\n            font-size: 14px;\n            font-weight: 500;\n            line-height: 150%;\n          }\n\n          .dot {\n            margin-top: -5px;\n          }\n        }\n\n        .community-name {\n          display: flex;\n          align-items: center;\n          gap: 2px;\n          color: ",";\n          font-size: 14px;\n          font-style: normal;\n          font-weight: 500;\n          line-height: 150%;\n\n          svg {\n            path {\n              fill: ",";\n            }\n          }\n        }\n      }\n    }\n\n    .pinned {\n      width: fit-content;\n      padding: 0px 12px;\n      border-radius: 100px;\n      background-color: ",";\n      display: flex;\n      align-items: center;\n      gap: 8px;\n      height: 25px;\n\n      p {\n        color: ",";\n        font-size: 12px;\n        font-style: normal;\n        font-weight: 700;\n        line-height: normal;\n        letter-spacing: 1.68px;\n        text-transform: uppercase;\n      }\n\n      svg {\n        path {\n          fill: ",";\n        }\n      }\n    }\n  }\n\n  .dropdown-toggle {\n    padding: 8px;\n    border-radius: 4px;\n    transition-duration: 0.2s;\n    position: relative;\n    z-index: 1;\n\n    .dots {\n      path {\n        fill: ",";\n      }\n    }\n\n    :hover {\n      background-color: ",";\n\n      .dots {\n        path {\n          fill: ",";\n        }\n      }\n    }\n  }\n"]);
1return _templateObject=function(){return n},n}let g=o.default.div.withConfig({componentId:"sc-59069aef-0"})(_templateObject(),n=>{let{theme:e}=n;return e.colors.background.grey.tertiary},n=>{let{theme:e}=n;return e.colors.background.grey.primary},n=>{let{theme:e}=n;return e.colors.text.primary},n=>{let{theme:e}=n;return e.colors.text.tertiary},n=>{let{theme:e}=n;return e.colors.text.tertiary},n=>{let{theme:e}=n;return e.colors.text.tertiary},n=>{let{theme:e}=n;return e.colors.background.grey.tertiary},n=>{let{theme:e}=n;return e.colors.text.secondary},n=>{let{theme:e}=n;return e.colors.text.secondary},n=>{let{theme:e}=n;return e.colors.text.tertiary},n=>{let{theme:e}=n;return e.colors.background.grey.tertiary},n=>{let{theme:e}=n;return e.colors.text.accent.blue}),b=(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",children:(0,s.jsx)("path",{d:"M4 2.66602H6.66602V0H8V2.66602H10.666V4H8V6.66602H10.666V8H8V10.666H6.66602V8H4V10.666H2.66602V8H0V6.66602H2.66602V4H0V2.66602H2.66602V0H4V2.66602ZM4 4V6.66602H6.66602V4H4Z",fill:"#64748B"})});var postcard_ProfilePostHeader=function(n){let{authorData:e,community:r,createdAt:i,pinned:o}=n,c=(0,p.A3)({channel:r}),v=(0,f.useMemo)(()=>(0,m.F)(i),[i]);return(0,s.jsx)(g,{children:(0,s.jsxs)("div",{className:"header-wrapper",children:[o&&(0,s.jsxs)("div",{className:"pinned",children:[(0,s.jsx)(x.Z,{}),(0,s.jsx)("p",{children:"Pinned"})]}),(0,s.jsxs)("div",{className:"header",children:[(0,s.jsxs)("div",{className:"images",children:[(0,s.jsx)("img",{src:null==e?void 0:e.photoURL,alt:"Profile Picture",className:"author"}),(0,s.jsx)("img",{src:null==c?void 0:c.imgSrc,alt:"Community Picture",className:"channel"})]}),(0,s.jsxs)("div",{className:"names",children:[(0,s.jsxs)("div",{className:"author-name",children:[(0,s.jsx)("p",{className:"name",children:null==e?void 0:e.name}),(0,s.jsx)("span",{className:"dot",children:"."}),(0,s.jsx)("span",{children:v})]}),(0,s.jsxs)("span",{className:"community-name",children:[b,null==c?void 0:c.displayName]})]})]})]})})},v=r(25935),w=r(72163),j=r(47581),k=r(94646);function ProfilePostBody_templateObject(){let n=(0,i._)(["\n  flex: 1;\n  min-height: 0;\n  overflow: hidden;\n\n  ","\n  &.limit-mobile {\n    "," {\n      max-height: 60px;\n    }\n\n    "," {\n      max-height: fit-content;\n    }\n  }\n\n  * {\n    font-size: 14px;\n  }\n"]);return ProfilePostBody_templateObject=function(){return n},n}let H=o.default.div.withConfig({componentId:"sc-98c9f0da-0"})(ProfilePostBody_templateObject(),n=>{let{clamp:e}=n;return e&&"\n    display: -webkit-box;\n    -webkit-line-clamp: 1;\n    -webkit-box-orient: vertical;\n  "},n=>{let{theme:e}=n;return e.breakpoints.xs},n=>{let{theme:e}=n;return e.breakpoints.sm});var postcard_ProfilePostBody=function(n){let{content:e,hasAsset:r}=n,{customEmojis:i}=(0,k.i)(),o=(0,j.X)(e,i),c=o.replace(/`([^`]+)`/g,'<span class="backtick-code-block">$1</span>');return(0,s.jsx)(H,{className:r&&"limit-mobile",clamp:r,children:(0,s.jsx)(w.Z,{children:(0,v.ZP)(c)})})},C=r(92152),N=r(79352);function ProfilePostImage_templateObject(){let n=(0,i._)(["\n  height: 120px;\n  margin: 0px -12px;\n  backdrop-filter: blur(15px);\n  background: rgba(255, 255, 255, 0.3);\n  flex: 1;\n\n  .media {\n    position: relative;\n    height: 100%;\n  }\n\n  .play-button {\n    position: absolute;\n    top: 50%;\n    left: 50%;\n    transform: translate(-50%, -50%);\n    z-index: 1;\n    opacity: 0.8;\n    transition: opacity 0.2s;\n  }\n\n  :hover {\n    .play-button {\n      opacity: 0;\n    }\n  }\n\n  .post-image {\n    width: auto;\n    height: 100%;\n  }\n"]);return ProfilePostImage_templateObject=function(){return n},n}let V=o.default.div.withConfig({componentId:"sc-17d9d270-0"})(ProfilePostImage_templateObject());var postcard_ProfilePostImage=function(n){var e,r;let{images:i,videoFiles:o}=n,c=i[0],p=null==o?void 0:o[0],f=null!==(r=null!==(e=null==c?void 0:c.url)&&void 0!==e?e:null==p?void 0:p.thumbNailUrl)&&void 0!==r?r:null==p?void 0:p.backgroundImageUrl;return f?(0,s.jsx)(V,{children:(0,s.jsxs)("div",{className:"media",children:[p&&(0,s.jsx)(N.Xt2,{color:"#F1F5F9",className:"play-button",size:52}),(0,s.jsx)(C.Z,{src:f,alt:"post image",className:"post-image"})]})}):null},_=r(75193),S=r(9473),O=r(609),Z=r(41664),F=r.n(Z);
1function ProfilePostCard_templateObject(){let n=(0,i._)(["\n  flex-shrink: 0;\n  background-color: ",";\n\n  "," {\n    width: 100%;\n    height: fit-content;\n    max-height: 380px;\n    padding-bottom: 4px;\n  }\n\n  "," {\n    width: 320px;\n    height: 380px;\n    padding-bottom: 0px;\n  }\n\n  .inner-wrapper {\n    height: calc(100% - 4px);\n    background-color: ",";\n    padding: 14px;\n    display: flex;\n    flex-direction: column;\n    gap: 12px;\n\n    .title {\n      color: ",";\n      font-size: 16px;\n      font-style: normal;\n      font-weight: 700;\n      line-height: 150%;\n      display: -webkit-box;\n      -webkit-box-orient: vertical;\n      -webkit-line-clamp: 2;\n      align-self: stretch;\n      overflow: hidden;\n      flex-shrink: 0;\n    }\n\n    :hover {\n      transition-duration: 0.2s;\n      background-color: ",";\n    }\n\n    .tooltip {\n      display: none;\n    }\n  }\n"]);return ProfilePostCard_templateObject=function(){return n},n}let P=(0,o.default)(c.Z).withConfig({componentId:"sc-42b5332f-0"})(ProfilePostCard_templateObject(),n=>{let{theme:e}=n;return e.colors.background.grey.tertiary},n=>{let{theme:e}=n;return e.breakpoints.xs},n=>{let{theme:e}=n;return e.breakpoints.sm},n=>{let{theme:e}=n;return e.colors.background.grey.primary},n=>{let{theme:e}=n;return e.colors.text.primary},n=>{let{theme:e}=n;return e.colors.background.grey.secondary});var postcard_ProfilePostCard=function(n){var e;let{post:r}=n,i=(0,S.v9)(O.f8),o=(null==r?void 0:r.communityName)==="monthly-challenge"?"/community/monthly-challenge/submission/".concat(null==r?void 0:r.postId):"/community/".concat(null==r?void 0:r.communityName,"/").concat(null==r?void 0:r.postId);return(0,s.jsx)(F(),{href:o,style:{textDecoration:"none"},children:(0,s.jsx)(P,{children:(0,s.jsxs)(c.Z,{className:"inner-wrapper",children:[(0,s.jsx)(postcard_ProfilePostHeader,{authorData:null==r?void 0:r.authorData,community:null==r?void 0:r.communityName,createdAt:null==r?void 0:r.createdAt,pinned:null==r?void 0:r.pinnedByOwner}),(0,s.jsx)("p",{className:"title",children:null==r?void 0:r.title}),(0,s.jsx)(postcard_ProfilePostImage,{images:null==r?void 0:r.images,videoFiles:null==r?void 0:r.videoFiles}),(0,s.jsx)(postcard_ProfilePostBody,{content:null==r?void 0:r.content,hasAsset:(null==r?void 0:r.images.length)!=0||(null==r?void 0:null===(e=r.videoFiles)||void 0===e?void 0:e.length)!=0}),(0,s.jsx)(_.Z,{post:r,uid:i,absoluteButtons:!0})]})})})}},75193:function(n,e,r){"use strict";r.d(e,{Z:function(){return post_PostStats}});var i=r(82729),s=r(85893),o=r(19521),c=r(97481),p=r(75469),f=r(47264),m=r(67294),CommentButtons=function(n){let{comments:e}=n,[r,i]=(0,m.useState)(!1),[o,c]=(0,m.useState)(null);return(0,s.jsxs)(p.Z,{onMouseEnter:()=>{let n=setTimeout(()=>{i(!0)},750);c(n)},onMouseLeave:()=>{o&&(clearTimeout(o),c(null)),i(!1)},className:"post-comment-btn",children:[(0,s.jsx)(f.Z,{className:"post-icon"}),0!=e&&(0,s.jsx)("p",{className:"button-num",children:e})]})},community_PostShareIcon=function(n){let{color:e="#64748B",...r}=n;return(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...r,children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 5H12V9H6V11H4V17H6V15H12V19H14V17H16V15H18V13H20V11H18V9H16V7H14V5Z",fill:"#64748B"})})},x=r(16877),g=r(96068),b=r(3649),v=r(5592),w=r(609),j=r(9473);function _templateObject(){let n=(0,i._)(["\n  position: absolute;\n  top: calc(100% + 10px);\n  padding: 8px;\n  width: 180px;\n\n  background-color: ",";\n  z-index: 1;\n"]);return _templateObject=function(){return n},n}let k=(0,o.default)(b.Z).withConfig({componentId:"sc-69c9cb13-0"})(_templateObject(),n=>{let{theme:e}=n;return e.colors.background.grey.primary});var stats_CopyPostLink=function(n){let{community:e,postId:r}=n,i=(0,j.v9)(w.o4)||"dark",[o,c]=(0,m.useState)(!1),[p,f]=(0,m.useState)(null);return(0,s.jsx)(k,{borderColor:"dark"===i?"475569":"CBD5E1",className:"copy-link-confirm",children:(0,s.jsx)(x.Z,{svg:o?(0,s.jsx)(v.Z,{fill:"#15ACFF"}):(0,s.jsx)(g.Z,{}),text:o?"Link Copied":"Copy Link",onClick:function(){let n="monthly-challenge"===e?"https://www.codedex.io/community/monthly-challenge/submission/".concat(r):"https://www.codedex.io/community/".concat(e,"/").concat(r);navigator.clipboard.writeText(n),c(!0),p&&clearTimeout(p);let i=setTimeout(()=>c(!1),3e3);f(i)}})})},stats_ShareButton=function(n){let{community:e,postId:r}=n,[i,o]=(0,m.useState)(!1),[c,f]=(0,m.useState)(null),[x,g]=(0,m.useState)(!1);return(0,s.jsxs)(p.Z,{onMouseEnter:()=>{let n=setTimeout(()=>{o(!0)},750);f(n)},onMouseLeave:()=>{c&&(clearTimeout(c),f(null)),o(!1)},className:"nes-pointer post-share-btn",onClick:n=>{n.preventDefault(),n.stopPropagation(),g(!x)},children:[(0,s.jsx)(community_PostShareIcon,{className:"post-icon"}),x&&(0,s.jsx)(stats_CopyPostLink,{community:e,postId:r})]})};
1function PostStats_templateObject(){let n=(0,i._)(["\n  display: flex;\n  align-items: center;\n  gap: 12px;\n  opacity: ",";\n  ","\n"]);return PostStats_templateObject=function(){return n},n}let H=o.default.div.withConfig({componentId:"sc-3479a5d0-0"})(PostStats_templateObject(),n=>{let{$absolute:e}=n;return e?1:0},n=>{let{$absolute:e}=n;return e&&"position: absolute; bottom: 14px;"});var post_PostStats=function(n){let{post:e,uid:r,absoluteButtons:i=!1}=n,o=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.Z,{post:e,uid:r}),(0,s.jsx)(CommentButtons,{comments:null==e?void 0:e.userComments}),(0,s.jsx)(stats_ShareButton,{community:null==e?void 0:e.communityName,postId:null==e?void 0:e.postId})]});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(H,{style:i?void 0:{opacity:1},children:o}),i&&(0,s.jsx)(H,{$absolute:!0,children:o})]})}},10346:function(n,e,r){"use strict";var i=r(82729),s=r(85893),o=r(19521),c=r(41664),p=r.n(c),f=r(20759),m=r(9473),x=r(84849),g=r(609),b=r(15195);function _templateObject(){let n=(0,i._)(["\n  padding: 12px;\n\n  color: ",';\n\n  display: flex;\n  flex-direction: column;\n  gap: 12px;\n\n  p,\n  h2 {\n    margin: 0px;\n  }\n\n  .title {\n    display: flex;\n    justify-content: space-between;\n    font-family: "Mulish", sans-serif;\n\n    h2 {\n      color: ',';\n      font-size: 16px;\n      font-weight: 700;\n      line-height: 150%;\n\n      padding: 8px 8px 0px 8px;\n    }\n\n    p {\n      margin: 0px;\n      font-size: 14px;\n      font-weight: 600;\n      color: #808080;\n    }\n  }\n\n  .upcoming-events-container {\n    .event {\n      display: flex;\n      align-items: center;\n      gap: 12px;\n      padding: 8px;\n      border-radius: 4px;\n\n      p {\n        margin: 0px;\n        font-family: "Mulish", sans-serif;\n      }\n\n      .callender-poster {\n        width: 40px;\n        height: 40px;\n        border-radius: 4px;\n        display: flex;\n        flex-direction: column;\n        align-items: center;\n        color: rgba(33, 37, 41, 1);\n        .month {\n          font-size: 10px;\n          font-weight: 800;\n        }\n\n        .day {\n          line-height: 1;\n          font-size: 22px;\n          font-weight: 800;\n        }\n      }\n\n      .events-titles {\n        flex: 1;\n        .title {\n          color: ',";\n          font-size: 14px;\n          font-weight: 700;\n          line-height: 150%;\n        }\n\n        .date {\n          color: ",";\n          font-size: 14px;\n          font-weight: 600;\n          line-height: 150%;\n        }\n      }\n\n      :hover {\n        background-color: ",";\n\n        .events-titles {\n          .title {\n            color: ",";\n          }\n        }\n      }\n    }\n  }\n"]);return _templateObject=function(){return n},n}let v=(0,o.default)(f.Z).withConfig({componentId:"sc-a77dfb9-0"})(_templateObject(),n=>{let{theme:e}=n;return e.colors.text.primary},n=>{let{theme:e}=n;return e.colors.text.primary},n=>{let{theme:e}=n;return e.colors.text.primary},n=>{let{theme:e}=n;return e.colors.text.tertiary},n=>{let{theme:e}=n;return e.colors.background.grey.tertiary},n=>{let{theme:e}=n;return e.colors.text.accent.blue}),w=["rgba(244, 197, 81, 1)","rgba(146, 204, 65, 1)","rgba(231, 110, 84, 1)"];e.Z=function(n){let{events:e}=n,r=(0,m.v9)(g.o4)||"dark",i=(0,m.v9)(g.o4),o=(e||[]).filter(n=>n.date&&new Date(n.date).getTime()+144e5>=Date.now()).sort((n,e)=>n.order-e.order);return 0===o.length?null:(0,s.jsxs)(v,{borderColor:"dark"===r?"475569":"CBD5E1",children:[(0,s.jsx)("div",{className:"title",children:(0,s.jsx)("h2",{children:"Upcoming Events"})}),(0,s.jsx)("div",{className:"upcoming-events-container",children:0!=o.length?(0,s.jsx)(s.Fragment,{children:o.map((n,e)=>{let{formattedDate:r,day:i,month:o}=(0,b.v)(n.date);return(0,s.jsx)(p(),{href:n.eventLink,target:"_blank",rel:"noreferrer",style:{textDecoration:"none"},children:(0,s.jsxs)("div",{className:"event nes-pointer",children:[(0,s.jsxs)("div",{className:"callender-poster",style:{backgroundColor:w[e]},children:[(0,s.jsx)("p",{className:"month",style:{textTransform:"uppercase"},children:o}),(0,s.jsx)("p",{className:"day",children:i})]}),(0,s.jsxs)("div",{className:"events-titles",children:[(0,s.jsx)("p",{className:"title",children:n.title}),(0,s.jsx)("p",{className:"date",children:r})]})]})},n)})}):(0,s.jsx)(s.Fragment,{children:Array.from({length:3},(n,e)=>(0,s.jsxs)("div",{className:"event nes-pointer",children:[(0,s.jsx)(x.Z,{className:"loader",highlightColor:"dark"===i?"#3d3f4c":"#f5f5f5",baseColor:"dark"===i?"#343541":"#ebebeb",width:40,height:40}),(0,s.jsxs)("div",{className:"events-titles",style:{width:"100%"},children:[(0,s.jsx)("p",{className:"date",style:{width:"100%",marginBottom:"4px"},children:(0,s.jsx)(x.Z,{className:"loader",highlightColor:"dark"===i?"#3d3f4c":"#f5f5f5",baseColor:"dark"===i?"#343541":"#ebebeb",width:"100%"})}),(0,s.jsx)("p",{className:"date",style:{width:"100%"},children:(0,s.jsx)(x.Z,{className:"loader",highlightColor:"dark"===i?"#3d3f4c":"#f5f5f5",baseColor:"dark"===i?"#343541":"#ebebeb",width:"100%"})})]})]},Date()+e))})})]})}},97259:function(n,e,r){"use strict";
1var i=r(82729),s=r(85893),o=r(19521),c=r(20759),p=r(609),f=r(9473),m=r(41664),x=r.n(m);function _templateObject(){let n=(0,i._)(['\n  padding: 12px;\n\n  display: flex;\n  flex-direction: column;\n  gap: 12px;\n  font-family: "Mulish", sans-serif;\n\n  .news-title {\n    display: flex;\n    justify-content: space-between;\n    align-items: center;\n    padding: 8px 8px 0px 8px;\n\n    .title {\n      color: ',";\n      font-size: 16px;\n      font-weight: 700;\n      line-height: 150%;\n    }\n\n    .see-all {\n      color: ",";\n      font-size: 16px;\n      font-weight: 600;\n      line-height: 150%;\n\n      :hover {\n        opacity: 0.8;\n      }\n    }\n  }\n\n  .news-list {\n    .news {\n      display: flex;\n      gap: 12px;\n      padding: 8px;\n      border-radius: 4px;\n      .news-image {\n        flex-shrink: 0;\n        img {\n          width: 48px;\n          height: 48px;\n          border-radius: 4px;\n        }\n      }\n\n      .news-copy {\n        .title {\n          color: ",";\n          font-size: 14px;\n          font-weight: 700;\n          line-height: 150%;\n        }\n\n        .date {\n          color: ",";\n          font-size: 14px;\n          font-weight: 600;\n          line-height: 150%;\n        }\n      }\n\n      :hover {\n        .news-copy {\n          .title {\n            color: ",";\n          }\n        }\n\n        background-color: ",";\n      }\n    }\n  }\n"]);return _templateObject=function(){return n},n}let g=(0,o.default)(c.Z).withConfig({componentId:"sc-b6f4805-0"})(_templateObject(),n=>{let{theme:e}=n;return e.colors.text.primary},n=>{let{theme:e}=n;return e.colors.text.accent.blue},n=>{let{theme:e}=n;return e.colors.text.primary},n=>{let{theme:e}=n;return e.colors.text.tertiary},n=>{let{theme:e}=n;return e.colors.text.accent.blue},n=>{let{theme:e}=n;return e.colors.background.grey.tertiary});e.Z=function(n){let{news:e}=n,r=(0,f.v9)(p.o4)||"dark";return(0,s.jsxs)(g,{borderColor:"dark"===r?"475569":"CBD5E1",children:[(0,s.jsxs)("div",{className:"news-title",children:[(0,s.jsx)("p",{className:"title",children:"Cod\xe9dex News"}),(0,s.jsx)(x(),{href:"/blog",style:{textDecoration:"none"},children:(0,s.jsx)("p",{className:"see-all nes-pointer",children:"See all"})})]}),(0,s.jsx)("div",{className:"news-list",children:null==e?void 0:e.map(n=>(0,s.jsx)(x(),{href:n.link,style:{textDecoration:"none"},target:"_blank",rel:"noreferrer",children:(0,s.jsxs)("div",{className:"news nes-pointer",children:[(0,s.jsx)("div",{className:"news-image",children:(0,s.jsx)("img",{src:n.imageUrl,alt:"news image"})}),(0,s.jsxs)("div",{className:"news-copy",children:[(0,s.jsx)("p",{className:"title",children:n.title}),(0,s.jsx)("p",{className:"date",children:null==n?void 0:n.date})]})]})},n))})]})}},37719:function(n,e,r){"use strict";r.d(e,{A3:function(){return getChannelMetaInfo},Dz:function(){return canMoveCommunityPost},Lm:function(){return getMovableChannels},cg:function(){return getFilteredChannels}});let i=[{displayName:"Cod\xe9dex Community",internalName:"home",description:"Let's make magic together ⋆˙⟡",imgSrc:"/images/community/bouncer.gif",longDescription:"Your home base for the Cod\xe9dex community. Catch up on announcements, see what everyone's building, and jump into the conversation."},{displayName:"Leaderboards",internalName:"leaderboards",description:"Compete with other users and rise to the top ٩(。•́‿•̀。)۶",imgSrc:"/images/community/trophy.gif",longDescription:"See how you stack up against other learners. Earn XP, climb the ranks, and cheer on the coders at the top."},{displayName:"Project Showcase",internalName:"project-showcase",description:"Showcase something that you built (੭˃ᴗ˂)੭",imgSrc:"/images/community/rocket.gif",longDescription:"Built something you're proud of? Share it here for feedback, inspiration, and a little bit of applause from the community."},{displayName:"Monthly Challenge",internalName:"monthly-challenge",description:"Let's make magic together ⋆˙⟡",imgSrc:"/images/community/bouncer.gif",longDescription:"A fresh coding challenge every month to keep your skills sharp. Take part, compare notes with others, and level up together."},{displayName:"General",internalName:"main",description:"Community-wide conversations ◡̈",imgSrc:"/images/community/bouncer.gif",longDescription:"The place for everything and anything. Chat with fellow learners about whatever's on your mind."}
1,{displayName:"Question of the Week",internalName:"question-of-the-week",description:"Join a new conversation every week",imgSrc:"https://gifdb.com/images/high/pixel-art-8bit-subaru-duck-kfvqxp9q2x0l5m30.gif",imageBackground:"#AEFFFF",longDescription:"A new question drops every week to spark discussion. Share your take and see how others answered."},{displayName:"Introductions",internalName:"introduction",description:"Say hi to the community *_*",imgSrc:"/images/community/wave.png",longDescription:"Welcome to the community! Get yourself started by introducing yourself to fellow learners. This is short copy meant to give context on purpose of the channel."},{displayName:"Python",internalName:"python",description:"Everything Python including Python libraries!",imgSrc:"/images/editor/python-logo.png",imageBackground:"#AEFFFF",longDescription:"Talk all things Python here, from syntax questions to your favorite libraries and frameworks."},{displayName:"Web Development",internalName:"web-dev",description:"All things web: HTML, CSS, JavaScript, and more!",imgSrc:"https://hwencc.gallerycdn.vsassets.io/extensions/hwencc/html-tag-wrapper/0.2.3/1505878793186/Microsoft.VisualStudio.Services.Icons.Default",imageBackground:"#E4BE03",longDescription:"Dive into HTML, CSS, JavaScript, and everything else that makes the web work. Ask questions, share resources, and swap tips."},{displayName:"Tech News",internalName:"tech-news",description:"Stay updated with the latest industry news",imgSrc:"/images/community/news.png",longDescription:"Keep up with what's happening in tech. Share interesting articles, product launches, and industry updates worth talking about."},{displayName:"Career",internalName:"career",description:"A place to share career advice, opportunities, or related things.",imgSrc:"/images/community/career-suitcase.avif",longDescription:"Trade career advice, job opportunities, resume tips, and interview stories with fellow coders navigating the industry."},{displayName:"Memes",internalName:"meme",description:"Slacking off at work t(-.-t)",imgSrc:"https://gifdb.com/images/high/comedian-el-risitas-warp-face-kekw-meme-0bf8c28fx7xo9a1x.gif",longDescription:"Need a laugh? Post and enjoy the best coding memes the community has to offer."},{displayName:"Pets",internalName:"pets",description:"Share cute animal pics \uD83D\uDC36 \uD83D\uDC31 \uD83D\uDC39 \uD83D\uDC30 \uD83D\uDC38",imgSrc:"/images/community/mochi_avatar.png",longDescription:"A cozy corner for cute animal pics. Show off your furry, feathered, or scaly friends."},{displayName:"#30NitesOfCode",internalName:"30-nites-of-code",description:"Join our community-wide challenge of learning and building for 30-days. Start today!",imgSrc:"/images/code-nights/dragon.gif",imageBackground:"#CEA8EB",longDescription:"30 nights, one goal: build the coding habit. Check in daily, share your progress, and keep each other motivated."},{displayName:"Bug Reports",internalName:"bug-report",description:"Found a bug? \uD83D\uDC1B Report it here.",imgSrc:"/images/community/bug-reports (1).png",imageBackground:"#CEA8EB",hideTopPosts:!0,longDescription:"Spotted something broken on Cod\xe9dex? Let us know here so we can track it down and squash it."}],s=["home","leaderboards","monthly-challenge","project-showcase","30-nites-of-code","question-of-the-week"];function canMoveCommunityPost(n){return!s.includes(n)}function getMovableChannels(){return i.filter(n=>!s.includes(n.internalName))}function getChannelMetaInfo(n){let{channel:e}=n;return i.find(n=>n.internalName===e)}function getFilteredChannels(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["home","monthly-challenge","project-showcase","leaderboards","30-nites-of-code"];return i.filter(e=>!n.includes(e.internalName))}},87457:function(n,e,r){"use strict";r.d(e,{h:function(){return setCourseHistory},q:function(){return getCourseHistory}});var i=r(39828),s=r(92369);async function setCourseHistory(n){let{uid:e,courseName:r,nextChallengeLink:o}=n;if(!e)throw Error("userUid is a required field.");let{firestore:c}=(0,s.UM)();try{let n=(0,i.JU)(c,"userProgressCollection",e),s=await (0,i.QT)(n);if(s.exists()){let e=s.data(),c=e.lastCompleted?e.lastCompleted:[],p=c.filter(n=>n.course!==r);p.unshift({course:r,nextChallengeLink:o}),await (0,i.pl)(n,{lastCompleted:p},{merge:!0})}else throw Error("No such document!")}catch(n){throw Error("Error fetching course history: "+n.message)}}async function getCourseHistory(n){if(!n)throw Error("userUid is a required field.");let{firestore:e}=(0,s.UM)();try{let r=(0,i.JU)(e,"userProgressCollection",n),s=await (0,i.QT)(r);if(s.exists()){let n=s.data();return n.lastCompleted||[]}throw Error("No such document!")}catch(n){throw Error("Error fetching course history: "+n.message)}}},28074:function(n,e,r){"use strict";r.d(e,{O:function(){return setPopupStatus}});
1var i=r(39828),s=r(92369);async function setPopupStatus(n){let{uid:e,popupName:r}=n;if(!e)throw Error("userUid is a required field.");let{firestore:o}=(0,s.UM)();try{let n=(0,i.JU)(o,"users",e,"shown-popups",r);await (0,i.pl)(n,{seen:!0},{merge:!0})}catch(n){throw Error("Error setting popup status: "+n.message)}}},15195:function(n,e,r){"use strict";r.d(e,{G:function(){return endOfDayCountdown},v:function(){return formatEventDate}});var i=r(27484),s=r.n(i),o=r(70178),c=r.n(o),p=r(29387),f=r.n(p),m=r(28734),x=r.n(m),g=r(1646),b=r.n(g);function formatEventDate(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"America/New_York",r=s().tz(n,e).local();return{formattedDate:r.format("ddd MMM DD @ h:mmA z"),day:r.format("D"),month:r.format("MMM")}}function endOfDayCountdown(){let n=s()(),e=Math.max(0,n.endOf("day").diff(n)),r=s().duration(e);return{hours:r.hours(),minutesAndSeconds:r.format("mm:ss")}}s().extend(c()),s().extend(f()),s().extend(x()),s().extend(b())},86116:function(n,e,r){"use strict";r.r(e),r.d(e,{__N_SSG:function(){return nL},default:function(){return home}});var i=r(82729),s=r(85893),o=r(19521),c=r(67294),p=r(11163),f=r(87066),m=r(27936),x=r(99428),g=r(62626),b=r(62286),v=r.n(b),w=r(17596),j=r(20759),k=r(73857),H=r(9473),C=r(73845),N=r(609),V=r(41514),_=r(28074),S=r(37009),O=r(84849);function _templateObject(){let n=(0,i._)(["\n  height: 265px;\n\n  .skeleton {\n    height: 265px;\n    border-radius: 8px;\n  }\n"]);return _templateObject=function(){return n},n}let Z=o.default.div.withConfig({componentId:"sc-6c1bc22c-0"})(_templateObject());var userDashBoard_CourseLoader=function(n){let{isDark:e=!0}=n;return(0,s.jsx)(Z,{children:(0,s.jsx)(O.Z,{width:"100%",className:"skeleton",baseColor:e?"#0F172A":"#F1F5F9",highlightColor:e?"#1E293B":"#F8FAFC"})})};function NoCourseStarted_templateObject(){let n=(0,i._)(["\n  height: fit-content;\n  background: ",';\n  padding: 24px 32px 40px 32px;\n\n  .content {\n    height: 100%;\n    display: flex;\n    flex-direction: column;\n    align-items: center;\n\n    img {\n      width: 307.302px;\n      height: 160px;\n    }\n\n    .welcome-text {\n      font-family: "PixelGridM", sans-serif;\n      color: ',";\n      font-style: normal;\n      font-weight: 700;\n      line-height: 140%;\n      letter-spacing: 0.72px;\n\n      "," {\n        font-size: 20px;\n      }\n\n      "," {\n        font-size: 30px;\n      }\n    }\n\n    .cta {\n      margin: 24px 0px;\n      color: ",';\n\n      font-family: "Mulish", sans-serif;\n\n      font-size: 16px;\n      font-style: normal;\n      font-weight: 500;\n      line-height: 150%;\n\n      '," {\n        font-size: 14px;\n        text-align: center;\n      }\n\n      "," {\n        font-size: 16px;\n        text-align: start;\n      }\n    }\n  }\n"]);return NoCourseStarted_templateObject=function(){return n},n}let F=(0,o.default)(j.Z).withConfig({componentId:"sc-86784be9-0"})(NoCourseStarted_templateObject(),n=>{let{theme:e}=n;return e.colors.background.grey.secondary},n=>{let{theme:e}=n;return e.colors.text.primary},n=>{let{theme:e}=n;return e.breakpoints.xs},n=>{let{theme:e}=n;return e.breakpoints.sm},n=>{let{theme:e}=n;return e.colors.text.secondary},n=>{let{theme:e}=n;return e.breakpoints.xs},n=>{let{theme:e}=n;return e.breakpoints.sm});var userDashBoard2_NoCourseStarted=function(n){let{isDark:e}=n,r=(0,H.v9)(S.k9),i=(0,H.v9)(N.f8),o=(0,C.T)();return(0,s.jsx)(s.Fragment,{children:r?(0,s.jsx)(userDashBoard_CourseLoader,{isDark:e}):(0,s.jsx)(F,{borderColor:e?"475569":"CBD5E1",children:(0,s.jsxs)("div",{className:"content",children:[(0,s.jsx)("img",{src:"/images/character_gifs/BWViimf.gif",alt:"characters walking"}),(0,s.jsx)("p",{className:"welcome-text",children:"Welcome to Cod\xe9dex!"}),(0,s.jsx)("p",{className:"cta",children:"Your coding journey awaits-but first let's find something to learn."}),(0,s.jsx)(k.Z,{variant:"blue",onClick:()=>{i&&(o((0,N.J)({type:"onboarding",status:"show",properties:{}})),(0,_.O)({uid:i,popupName:"onboarding"}),(0,V.L7)({eventName:"onboarding-started"}))},children:"Get Started"})]})})})},P=r(88090),z=r(41664),E=r.n(z);
1function MainCourseCard_templateObject(){let n=(0,i._)(['\n  height: fit-content;\n\n  font-family: "Mulish", sans-serif;\n\n  '," {\n    background: ",";\n  }\n\n  "," {\n    background: ",";\n  }\n\n  p {\n    margin: 0px;\n  }\n\n  .course-content {\n    width: 60%;\n    height: inherit;\n\n    display: flex;\n    flex-direction: column;\n\n    gap: 24px;\n\n    "," {\n      width: 100%;\n      padding: 24px;\n      align-items: center;\n      text-align: center;\n    }\n\n    "," {\n      width: 60%;\n      padding: 32px;\n      align-items: start;\n      text-align: start;\n    }\n\n    .progress-container {\n      width: 100%;\n      display: flex;\n      align-items: center;\n      gap: 8px;\n\n      .progress-bar {\n        height: 12px;\n        transition: background 0.1s ease; /* Smooth transition for small increments */\n\n        "," {\n          width: 100%;\n        }\n\n        ",' {\n          width: 120px;\n        }\n      }\n\n      p {\n        margin: 0px;\n        font-family: "Mulish", sans-serif;\n        color: #cbd5e1;\n\n        font-size: 14px;\n        font-weight: 700;\n        line-height: 150%;\n      }\n    }\n\n    .course-meta {\n      display: flex;\n      flex-direction: column;\n      gap: 8px;\n\n      .label {\n        color: #e2e8f0;\n        font-family: "Mulish", sans-serif;\n        font-size: 12px;\n        font-weight: 600;\n        line-height: 150%;\n        letter-spacing: 1.68px;\n      }\n\n      .course-name {\n        color: #fff;\n        font-family: "PixelGridM";\n        font-weight: 700;\n        line-height: 140%;\n        letter-spacing: 0.72px;\n\n        '," {\n          font-size: 20px;\n        }\n\n        ",' {\n          font-size: 24px;\n        }\n      }\n\n      .next-exercise {\n        color: #e2e8f0;\n        font-family: "Mulish", sans-serif;\n        font-size: 16px;\n        font-weight: 500;\n        line-height: 150%;\n        letter-spacing: 0;\n      }\n    }\n\n    .btn-container {\n      display: flex;\n      align-items: center;\n      gap: 8px;\n\n      a {\n        all: unset;\n      }\n\n      '," {\n        flex-direction: column;\n      }\n\n      "," {\n        width: 100%;\n        flex-direction: row;\n      }\n\n      button {\n        "," {\n          width: 100%;\n        }\n\n        "," {\n          width: fit-content;\n        }\n      }\n\n      p {\n        margin: 8px;\n        color: #e2e8f0;\n        font-family: Mulish;\n        font-size: 16px;\n        font-style: normal;\n        font-weight: 600;\n        line-height: 150%;\n\n        &.view-course-label {\n          letter-spacing: 0;\n        }\n        :hover {\n          opacity: 0.7;\n        }\n      }\n    }\n  }\n"]);return MainCourseCard_templateObject=function(){return n},n}let B=(0,o.default)(j.Z).withConfig({componentId:"sc-86d2d31b-0"})(MainCourseCard_templateObject(),n=>{let{theme:e}=n;return e.breakpoints.xs},n=>{let{imageLink:e}=n;return"\n    linear-gradient(0deg, rgba(2, 6, 23, 0.6) 0%, rgba(2, 6, 23, 0.6) 100%),\n    url(".concat(e,") lightgray 50% / cover no-repeat\n  ")},n=>{let{theme:e}=n;return e.breakpoints.sm},n=>{let{imageLink:e}=n;return"\n    linear-gradient(270deg, rgba(2, 6, 23, 0) 3.81%, rgba(2, 6, 23, 0.6) 58.9%),\n    url(".concat(e,") lightgray 50% / cover no-repeat\n  ")},n=>{let{theme:e}=n;return e.breakpoints.xs},n=>{let{theme:e}=n;return e.breakpoints.sm},n=>{let{theme:e}=n;return e.breakpoints.xs},n=>{let{theme:e}=n;return e.breakpoints.sm},n=>{let{theme:e}=n;return e.breakpoints.xs},n=>{let{theme:e}=n;return e.breakpoints.sm},n=>{let{theme:e}=n;return e.breakpoints.xs},n=>{let{theme:e}=n;return e.breakpoints.sm},n=>{let{theme:e}=n;return e.breakpoints.xs},n=>{let{theme:e}=n;return e.breakpoints.sm});var userDashBoard2_MainCourseCard=function(n){let{isDark:e,courseName:r="python"}=n,{bannerImageLink:i,catalogName:o,tags:c,newCourse:p,courseUrl:f,description:m,percentageCompleted:x}=(0,H.v9)((0,P.Gm)({courseName:r})),g=(0,H.v9)((0,P.NJ)(r)),b=(0,H.v9)((0,S.vG)(r)),v=(0,H.v9)(S.k9);return(0,s.jsx)(s.Fragment,{children:v?(0,s.jsx)(userDashBoard_CourseLoader,{isDark:e}):(0,s.jsx)(B,{borderColor:e?"475569":"CBD5E1",imageLink:i,children:(0,s.jsxs)("div",{className:"course-content",children:[(0,s.jsxs)("div",{className:"progress-container",children:[(0,s.jsx)(j.Z,{borderColor:"94A3B8",className:"progress-bar",style:{background:"linear-gradient(to right, ".concat(100===x?"#A3E635":"#FDE047"," ").concat(x,"%, #F1F5F9 ").concat(x,"%)")}}),(0,s.jsxs)("p",{style:{color:100===x?"#D9F99D":"#cbd5e1"},children:[x,"%"]})]}),(0,s.jsxs)("div",{className:"course-meta",children:[(0,s.jsx)("p",{className:"label",children:"COURSE"}),(0,s.jsx)("p",{className:"course-name",children:o}),(0,s.jsxs)("p",{className:"next-exercise",children:["Next exercise: ",function(n){if("string"!=typeof n||!n.trim())return"Next";try{let e=n.replace(/^\d+-/,"").split("-"),r=e.map(n=>n?n.charAt(0).toUpperCase()+n.slice(1):"").join(" ");return r.trim()||"Next"}catch(n){return"Next"}}(b)]})]}),(0,s.jsxs)("div",{className:"btn-container",children:[(0,s.jsx)(E(),{href:"/".concat(g,"/").concat(null===b?"":b),children:(0,s.jsx)(k.Z,{variant:"blue",children:"Continue Learning"})}),(0,s.jsx)(E(),{href:f,style:{all:"unset"}
1,children:(0,s.jsx)("p",{className:"nes-pointer view-course-label",children:"View course"})})]})]})})})},I=r(98494);function NextCourse_templateObject(){let n=(0,i._)(['\n  height: fit-content;\n\n  font-family: "Mulish", sans-serif;\n\n  * {\n    margin: 0px;\n  }\n\n  '," {\n    background: ",";\n  }\n\n  "," {\n    background: ",";\n  }\n\n  p {\n    margin: 0px;\n  }\n\n  .course-content {\n    width: 60%;\n    height: inherit;\n    display: flex;\n    flex-direction: column;\n\n    "," {\n      width: 100%;\n      padding: 24px;\n      align-items: center;\n      text-align: center;\n    }\n\n    ",' {\n      width: 60%;\n      padding: 32px;\n      align-items: start;\n      text-align: start;\n    }\n\n    .next-course-label {\n      display: flex;\n      align-items: center;\n      gap: 8px;\n\n      P {\n        font-family: "Mulish", sans-serif;\n        color: #cbd5e1;\n        font-size: 12px;\n        font-style: normal;\n        font-weight: 600;\n        line-height: 150%;\n        letter-spacing: 1.68px;\n        text-transform: uppercase;\n      }\n\n      label {\n        padding: 5px 12px;\n        background-color: #b6e4ff;\n        border-radius: 100px;\n\n        color: #0065ab;\n        font-size: 12px;\n        font-style: normal;\n        font-weight: 700;\n        line-height: normal;\n        letter-spacing: 1.68px;\n        text-transform: uppercase;\n      }\n    }\n\n    .course-meta {\n      margin-top: 4px;\n      display: flex;\n      flex-direction: column;\n      gap: 8px;\n\n      .course-name {\n        color: #fff;\n        font-family: "PixelGridM";\n        font-weight: 700;\n        line-height: 140%;\n        letter-spacing: 0.72px;\n\n        '," {\n          font-size: 20px;\n        }\n\n        ",' {\n          font-size: 24px;\n        }\n      }\n\n      .next-exercise {\n        color: #e2e8f0;\n        font-family: "Mulish", sans-serif;\n        font-size: 16px;\n        font-weight: 500;\n        line-height: 150%;\n        letter-spacing: 0;\n      }\n    }\n\n    .description {\n      margin-top: 8px;\n      font-family: "Mulish", sans-serif;\n      color: #e2e8f0;\n      font-size: 16px;\n      font-weight: 500;\n      line-height: 150%;\n\n      display: -webkit-box;\n      -webkit-line-clamp: 3;\n      -webkit-box-orient: vertical;\n      overflow: hidden;\n    }\n\n    .btn-container {\n      margin-top: 24px;\n      display: flex;\n      align-items: center;\n      gap: 8px;\n\n      a {\n        all: unset;\n      }\n\n      '," {\n        flex-direction: column;\n      }\n\n      "," {\n        width: 100%;\n        flex-direction: row;\n      }\n\n      button {\n        "," {\n          width: 100%;\n        }\n\n        "," {\n          width: fit-content;\n        }\n      }\n\n      p {\n        margin: 8px;\n        color: #e2e8f0;\n        font-family: Mulish;\n        font-size: 16px;\n        font-style: normal;\n        font-weight: 600;\n        line-height: 150%;\n\n        &.view-course-label {\n          letter-spacing: 0;\n        }\n        :hover {\n          opacity: 0.7;\n        }\n      }\n    }\n  }\n"]);return NextCourse_templateObject=function(){return n},n}let T=(0,o.default)(j.Z).withConfig({componentId:"sc-50d3caf6-0"})(NextCourse_templateObject(),n=>{let{theme:e}=n;return e.breakpoints.xs},n=>{let{imageLink:e}=n;return"\n    linear-gradient(0deg, rgba(2, 6, 23, 0.6) 0%, rgba(2, 6, 23, 0.6) 100%),\n    url(".concat(e,") lightgray 50% / cover no-repeat\n  ")},n=>{let{theme:e}=n;return e.breakpoints.sm},n=>{let{imageLink:e}=n;return"\n    linear-gradient(270deg, rgba(2, 6, 23, 0) 3.81%, rgba(2, 6, 23, 0.6) 58.9%),\n    url(".concat(e,") lightgray 50% / cover no-repeat\n  ")},n=>{let{theme:e}=n;return e.breakpoints.xs},n=>{let{theme:e}=n;return e.breakpoints.sm},n=>{let{theme:e}=n;return e.breakpoints.xs},n=>{let{theme:e}=n;return e.breakpoints.sm},n=>{let{theme:e}=n;return e.breakpoints.xs},n=>{let{theme:e}=n;return e.breakpoints.sm},n=>{let{theme:e}=n;return e.breakpoints.xs},n=>{let{theme:e}=n;return e.breakpoints.sm});var userDashboard2_NextCourse=function(n){let{isDark:e,currentCourse:r="python"}=n,i=(0,H.v9)(S.k9),o=(0,I.Sv)({justFinished:r,limit:1}),c=o[0],p=c.courseName,f=100===c.score,{bannerImageLink:m,catalogName:x,courseUrl:g,description:b}=(0,H.v9)((0,P.Gm)({courseName:p}));return(0,s.jsx)(s.Fragment,{children:i?(0,s.jsx)(userDashBoard_CourseLoader,{isDark:e}):(0,s.jsx)(T,{borderColor:e?"475569":"CBD5E1",imageLink:m,children:(0,s.jsxs)("div",{className:"course-content",children:[(0,s.jsxs)("div",{className:"next-course-label",children:[(0,s.jsx)("p",{children:f?"NEXT COURSE IN":"COURSE"}),(0,s.jsx)("label",{children:c.reason.displayJourneyName})]}),(0,s.jsx)("div",{className:"course-meta",children:(0,s.jsx)("p",{className:"course-name",children:x})}),(0,s.jsx)("p",{className:"description",children:b}),(0,s.jsxs)("div",{className:"btn-container",children:[(0,s.jsx)(E(),{href:"/".concat(g),children:(0,s.jsx)(k.Z,{variant:"blue",children:"Start Learning"})}),(0,s.jsx)(E(),{href:"/courses",style:{all:"unset"}
1,children:(0,s.jsx)("p",{className:"nes-pointer view-course-label",children:"Explore all courses"})})]})]})})})};function MainCourse_templateObject(){let n=(0,i._)(["\n  display: flex;\n  flex-direction: column;\n  gap: 32px;\n\n  p {\n    margin: 0px;\n  }\n\n  .computer-image {\n    "," {\n      img {\n        width: 48px;\n        height: 48px;\n      }\n    }\n\n    "," {\n      img {\n        width: 102px;\n        height: 102px;\n      }\n    }\n  }\n\n  .first-scene {\n    .triangle-arrow {\n      position: absolute;\n      left: -15px;\n      top: 50%;\n      transform: translateY(-50%) rotate(-90deg);\n      z-index: 1;\n    }\n  }\n\n  .message-container {\n    "," {\n      min-height: 26px !important;\n      padding: 8px !important;\n      padding-left: 16px !important;\n    }\n\n    "," {\n      min-height: 60px !important;\n      padding: 16px !important;\n    }\n  }\n\n  .last-course {\n    display: flex;\n    flex-direction: column;\n    gap: 24px;\n\n    p {\n      color: ",';\n\n      font-family: "PixelGridS", sans-serif;\n\n      font-weight: 700;\n      line-height: 140%;\n      letter-spacing: 0.72px;\n\n      '," {\n        font-size: 20px;\n      }\n\n      "," {\n        font-size: 24px;\n      }\n    }\n  }\n"]);return MainCourse_templateObject=function(){return n},n}let A=o.default.div.withConfig({componentId:"sc-48de9c5e-0"})(MainCourse_templateObject(),n=>{let{theme:e}=n;return e.breakpoints.xs},n=>{let{theme:e}=n;return e.breakpoints.sm},n=>{let{theme:e}=n;return e.breakpoints.xs},n=>{let{theme:e}=n;return e.breakpoints.sm},n=>{let{theme:e}=n;return e.colors.text.primary},n=>{let{theme:e}=n;return e.breakpoints.xs},n=>{let{theme:e}=n;return e.breakpoints.sm});var userDashboard2_MainCourse=function(n){var e,r;let{course:i,noCourseStarted:o}=n,p=(0,H.v9)(N.zr),f=(0,H.v9)(N.o4)||"dark",m="dark"===f,x=(0,c.useMemo)(()=>{var n;return((n=p)&&""!==n?["Welcome back, @".concat(n,"! Let's get it."),".-- . / -- .. ... ... . -.. / -.-- --- ..-","Hiii @".concat(n,"! So happy to see you again!"),"Beep beep boop. How are you @".concat(n,"?"),"Howdy @".concat(n,"! How are you feeling?"),"Welcome back @".concat(n,"! Happy coding!"),"Welcome back, @".concat(n,"! We missed you!"),"01001000 01101001 01101001 01101001 :)","Hello @".concat(n,"! Do I smell... coffee?"),"It's a brand new day @".concat(n,". Hwaiting!"),"Hi @".concat(n,"! We've been waiting for ya."),"Namaste! Wish you peace and joy today ^^","Hi bestie! C# is out now!","What’s up? Hakuna matata, good vibes only!","Happiness level: Loading... \uD83D\uDC97","Beep boop. We missed you."]:["Welcome back! Let's get it."]).sort(()=>Math.random()-.5)[0]},[p]),g=null==i?void 0:i.course,{percentageCompleted:b=0}=null!==(e=(0,H.v9)((0,P.Gm)({courseName:g})))&&void 0!==e?e:{},{catalogName:v}=null!==(r=(0,H.v9)((0,P.Gm)({courseName:g})))&&void 0!==r?r:{},j=b>=100;return(0,s.jsxs)(A,{children:[(0,s.jsx)(w.Z,{text:x,lightModeOnly:!1}),(0,s.jsx)("div",{className:"course",children:o?(0,s.jsx)(userDashBoard2_NoCourseStarted,{isDark:m}):(0,s.jsxs)("div",{className:"last-course",children:[(0,s.jsx)("p",{children:j?"Recommended after ".concat(v):"Jump back in"}),(null==i?void 0:i.course)===void 0?(0,s.jsx)(userDashBoard_CourseLoader,{isDark:m}):(0,s.jsx)(s.Fragment,{children:j?(0,s.jsx)(userDashboard2_NextCourse,{isDark:m,currentCourse:null==i?void 0:i.course}):(0,s.jsx)(userDashBoard2_MainCourseCard,{isDark:m,courseName:null==i?void 0:i.course})})]})})]})},L=r(94206);function DashBoardCourseCard_templateObject(){let n=(0,i._)(["\n  a {\n    text-decoration: none;\n  }\n\n  p {\n    margin: 0px;\n  }\n\n  .bottom-card {\n    width: 368px;\n    background-color: ",";\n    height: 209px;\n  }\n\n  .top-card {\n    height: 98%;\n\n    background-color: ",";\n    overflow: hidden;\n\n    .image-container {\n      height: 80px;\n      margin: 2px;\n\n      img {\n        width: 100%;\n        height: 100%;\n        object-fit: cover;\n\n        clip-path: polygon(\n          4px 0px,\n          4px 2px,\n          2px 2px,\n          2px 4px,\n          0px 4px,\n          0px 100%,\n          100% 100%,\n          100% calc(100% - 4px),\n          100% calc(100% - 4px),\n          100% 4px,\n          calc(100% - 2px) 4px,\n          calc(100% - 2px) 2px,\n          calc(100% - 4px) 2px,\n          calc(100% - 4px) 0px\n        );\n      }\n    }\n\n    .content-container {\n      padding: 16px 18px;\n      display: flex;\n      flex-direction: column;\n      gap: 16px;\n\n      .text {\n        display: flex;\n        flex-direction: column;\n        gap: 4px;\n      }\n\n      .course-number {\n        color: ",';\n\n        font-family: "Mulish", sans-serif;\n        font-size: 12px;\n        font-weight: 600;\n        letter-spacing: 1.68px;\n        text-transform: uppercase;\n      }\n\n      .course-title {\n        color: ',';\n\n        font-family: "Mulish", sans-serif;\n\n        font-size: 18px;\n        font-style: normal;\n        font-weight: 700;\n        line-height: 150%; /* 27px */\n\n        overflow: hidden;\n        display: -webkit-box;\n        -webkit-line-clamp: 1;\n        -webkit-box-orient: vertical;\n      }\n    }\n\n    .stats-container {\n      display: flex;\n      justify-content: space-between;\n    }\n\n    .skeleton-container {\n      margin-top: 8px;\n      padding: 0px 18px;\n    }\n\n    :hover {\n      background: ',";\n    }\n  }\n"]);
1return DashBoardCourseCard_templateObject=function(){return n},n}let Y=o.default.div.withConfig({componentId:"sc-22b0019e-0"})(DashBoardCourseCard_templateObject(),n=>{let{theme:e}=n;return"dark"==e.mode?e.colors.palette.grey["800"]:e.colors.palette.grey["100"]},n=>{let{theme:e}=n;return"dark"==e.mode?e.colors.palette.grey["950"]:"#FFFFFF"},n=>{let{theme:e}=n;return e.colors.text.tertiary},n=>{let{theme:e}=n;return e.colors.text.primary},n=>{let{theme:e}=n;return"dark"==e.mode?e.colors.palette.grey["900"]:e.colors.palette.grey["100"]});var userDashBoard2_DashBoardCourseCard=function(n){let{courseName:e,index:r=null,cardWidth:i=368,isLoading:o,...p}=n,f=(0,H.v9)(N.o4)||"dark",{bannerImageLink:m,catalogName:x,tags:g,newCourse:b,courseUrl:v,description:w,percentageCompleted:k}=(0,H.v9)((0,P.Gm)({courseName:e})),[C,V]=(0,c.useState)(0);if((0,c.useEffect)(()=>{let n;if(0!==k){if(k>=100){V(100);return}return C<k&&(n=setTimeout(()=>{V(n=>Math.min(n+1,k))},5)),()=>clearTimeout(n)}},[C,k,5]),null!=k)return(0,s.jsx)(Y,{className:"nes-pointer",children:(0,s.jsx)(E(),{href:v,...p,children:(0,s.jsx)(j.Z,{borderColor:"dark"===f?"475569":"CBD5E1",className:"bottom-card",style:{width:i},children:(0,s.jsxs)(j.Z,{borderColor:"dark"===f?"475569":"CBD5E1",className:"top-card",children:[(0,s.jsx)("div",{className:"image-container",children:(0,s.jsx)("img",{src:m,alt:"course banner image"})}),(0,s.jsxs)("div",{className:"content-container",children:[(0,s.jsxs)("div",{className:"text",children:[(0,s.jsx)("p",{className:"course-number",children:"Course"}),o?(0,s.jsx)(O.Z,{baseColor:"dark"===f?"#0F172A":"#F1F5F9",highlightColor:"dark"===f?"#1E293B":"#F8FAFC"}):(0,s.jsx)("p",{className:"course-title",children:x})]}),(0,s.jsx)("div",{className:"stats-container",children:0!=k&&void 0!=k&&null!=k&&(0,s.jsx)(L.Z,{percentage:C||0,themeIsDark:"dark"===f,completePercentage:k,percentageText:"Complete"})})]})]})})})})},U=r(81798),R=r(45198);function AdditionalCourseList_templateObject(){let n=(0,i._)(['\n  display: flex;\n  flex-direction: column;\n  gap: 24px;\n  font-family: "Mulish", sans-serif;\n\n  .card-containers {\n    display: grid;\n    gap: 16px;\n    overflow: hidden;\n    transition-duration: 0.5s;\n\n    .single-card-container {\n      opacity: 0;\n      transition: opacity 0.5s ease; /* Add smooth opacity transition */\n    }\n\n    '," {\n      grid-template-columns: 1fr;\n    }\n\n    "," {\n      grid-template-columns: repeat(3, 1fr);\n    }\n  }\n\n  .show-more {\n    display: flex;\n    justify-content: center;
1\n    align-items: center;\n    gap: 8px;\n\n    p {\n      color: ",";\n      font-size: 16px;\n      font-style: normal;\n      font-weight: 600;\n      line-height: 150%;\n    }\n\n    svg {\n      transition: 0.5s ease;\n    }\n\n    :hover {\n      opacity: 0.8;\n    }\n  }\n"]);return AdditionalCourseList_templateObject=function(){return n},n}let G=o.default.div.withConfig({componentId:"sc-1436acb-0"})(AdditionalCourseList_templateObject(),n=>{let{theme:e}=n;return e.breakpoints.xs},n=>{let{theme:e}=n;return e.breakpoints.sm},n=>{let{theme:e}=n;return e.colors.text.accent.blue});var userDashBoard2_AdditionalCourseList=function(n){let{courseHistory:e}=n,r=(0,R.i)(),i=(0,c.useRef)(null),o=(0,c.useRef)(null),[p,f]=(0,c.useState)(!1),[m,x]=(0,c.useState)(0),[g,b]=(0,c.useState)(209);return(0,c.useEffect)(()=>{if(o.current&&i.current){let n=Math.min((null==e?void 0:e.length)||0,3),s=r.width<768?(o.current.clientHeight+(n>1?16:0))*n:o.current.clientHeight;b(s),x(i.current.scrollHeight)}},[o,r.width,e]),(0,s.jsxs)(G,{children:[(0,s.jsx)("div",{className:"card-containers",style:{height:p?m:g},ref:i,children:null==e?void 0:e.map((n,e)=>(0,s.jsx)("div",{ref:o,style:{opacity:e>2?p?"1":"0":"1"},className:"single-card-container",children:(0,s.jsx)(userDashBoard2_DashBoardCourseCard,{courseName:null==n?void 0:n.course,index:1,isLoading:!1,cardWidth:"100%"})},n))}),(null==e?void 0:e.length)>3&&(0,s.jsxs)("div",{className:"show-more nes-pointer",onClick:()=>f(!p),children:[(0,s.jsx)("p",{children:"Show all my Courses"}),(0,s.jsx)(U.Z,{color:"#0065AB",style:{transform:p?"rotate(90deg)":"rotate(-90deg)"}})]})]})};function AdditionalCourses_templateObject(){let n=(0,i._)(["\n  display: flex;\n  flex-direction: column;\n  gap: 24px;\n\n  .title {\n    p {\n      color: ",';\n      font-family: "PixelGridS", sans-serif;\n\n      font-weight: 700;\n      line-height: 140%;\n      letter-spacing: 0.72px;\n\n      '," {\n        font-size: 20px;\n      }\n\n      "," {\n        font-size: 24px;\n      }\n    }\n  }\n"]);return AdditionalCourses_templateObject=function(){return n},n}let W=o.default.div.withConfig({componentId:"sc-d6e530a3-0"})(AdditionalCourses_templateObject(),n=>{let{theme:e}=n;return e.colors.text.primary},n=>{let{theme:e}=n;return e.breakpoints.xs},n=>{let{theme:e}=n;return e.breakpoints.sm});var userDashboard2_AdditionalCourses=function(n){let{courseHistory:e}=n;if((null==e?void 0:e.length)!=0)return(0,s.jsxs)(W,{children:[(0,s.jsx)("div",{className:"title",children:(0,s.jsx)("p",{children:"Continue progress"})}),(0,s.jsx)(userDashBoard2_AdditionalCourseList,{courseHistory:e})]})};function FeatureCard_templateObject(){let n=(0,i._)(['\n  height: 110px;\n  font-family: "Mulish", sans-serif;\n\n  background: ',";\n\n  .inner-container {\n    height: calc(100% - 4px);\n    padding: 16px;\n\n    display: flex;\n    gap: 16px;\n\n    background: ",";\n\n    .image-container {\n      display: flex;\n      justify-content: center;\n      align-items: center;\n\n      img {\n        width: 64px;\n        height: 64px;\n      }\n    }\n\n    .copy-container {\n      flex: 1;\n      display: flex;\n      flex-direction: column;\n      gap: 4px;\n\n      .card-title {\n        color: ",";\n\n        font-size: 16px;\n        font-weight: 700;\n        line-height: 150%;\n      }\n\n      .card-description {\n        color: ",";\n        font-size: 14px;\n        font-weight: 500;\n        line-height: 150%;\n      }\n    }\n\n    :hover {\n      background: ",";\n    }\n  }\n"]);return FeatureCard_templateObject=function(){return n},n}let J=(0,o.default)(j.Z).withConfig({componentId:"sc-3a549cb1-0"})(FeatureCard_templateObject(),n=>{let{theme:e}=n;return e.colors.background.grey.tertiary},n=>{let{theme:e}=n;return e.colors.background.grey.primary},n=>{let{theme:e}=n;return e.colors.text.primary},n=>{let{theme:e}=n;return e.colors.text.secondary},n=>{let{theme:e}=n;return e.colors.background.grey.secondary});var userDashBoard2_FeatureCard=function(n){let{isDark:e,title:r,description:i,imgUrl:o,link:c}=n;return(0,s.jsx)(E(),{href:c,style:{all:"unset"}
1,children:(0,s.jsx)(J,{borderColor:e?"475569":"CBD5E1",className:"nes-pointer",children:(0,s.jsxs)(j.Z,{borderColor:e?"475569":"CBD5E1",className:"inner-container",children:[(0,s.jsx)("div",{className:"image-container",children:(0,s.jsx)("img",{src:o,alt:"feature-image"})}),(0,s.jsxs)("div",{className:"copy-container",children:[(0,s.jsx)("p",{className:"card-title",children:r}),(0,s.jsx)("p",{className:"card-description",children:i})]})]})})})};function ExploreMoreFeatures_templateObject(){let n=(0,i._)(["\n  display: flex;\n  flex-direction: column;\n  gap: 24px;\n\n  .title {\n    p {\n      color: ",';\n      font-family: "PixelGridS", sans-serif;\n      font-weight: 700;\n      line-height: 140%;\n      letter-spacing: 0.72px;\n\n      '," {\n        font-size: 20px;\n      }\n\n      "," {\n        font-size: 24px;\n      }\n    }\n  }\n\n  .features-container {\n    display: grid;\n    grid-template-columns: repeat(2, 1fr);\n    gap: 16px;\n\n    "," {\n      grid-template-columns: 1fr;\n    }\n\n    "," {\n      grid-template-columns: repeat(2, 1fr);\n    }\n  }\n"]);return ExploreMoreFeatures_templateObject=function(){return n},n}let q=o.default.div.withConfig({componentId:"sc-9bceb5a4-0"})(ExploreMoreFeatures_templateObject(),n=>{let{theme:e}=n;return e.colors.text.primary},n=>{let{theme:e}=n;return e.breakpoints.xs},n=>{let{theme:e}=n;return e.breakpoints.sm},n=>{let{theme:e}=n;return e.breakpoints.xs},n=>{let{theme:e}=n;return e.breakpoints.sm});var userDashboard2_ExploreMoreFeatures=function(){let n=(0,H.v9)(N.o4)||"dark",e="dark"===n;return(0,s.jsxs)(q,{children:[(0,s.jsx)("div",{className:"title",children:(0,s.jsx)("p",{children:"Explore more"})}),(0,s.jsxs)("div",{className:"features-container",children:[(0,s.jsx)(userDashBoard2_FeatureCard,{isDark:e,title:"Challenge Packs",description:"Practice what you learned with bite-sized code challenges.",imgUrl:"/images/UserDashboard/fighting.svg",link:"/challenges"}),(0,s.jsx)(userDashBoard2_FeatureCard,{isDark:e,title:"Ask Lumi",description:"Get personalized help from Lumi, your AI-powered code companion.",imgUrl:"/images/unlockableItems/ai-bot-sprite.png",link:"/lumi"}),(0,s.jsx)(userDashBoard2_FeatureCard,{isDark:e,title:"#30NitesOfCode",description:"Commit to 30 days of learning and building–while raising a virtual pet!",imgUrl:"/images/UserDashboard/egg.svg",link:"/30-nites-of-code"}),(0,s.jsx)(userDashBoard2_FeatureCard,{isDark:e,title:"Builds",description:"Create and share code snippets and projects directly in the browser.",imgUrl:"/images/UserDashboard/board.svg",link:"/builds"})]})]})},X=r(48872),Q=r(28010);function NewProjects_templateObject(){let n=(0,i._)(["\n  display: flex;\n  flex-direction: column;\n  gap: 24px;\n\n  .title {\n    display: flex;\n    justify-content: space-between;\n    p {\n      color: ",';\n      font-family: "PixelGridS", sans-serif;\n      font-weight: 700;\n      line-height: 140%;\n      letter-spacing: 0.72px;\n\n      '," {\n        font-size: 20px;\n      }\n\n      ",' {\n        font-size: 24px;\n      }\n    }\n\n    .all {\n      font-family: "Mulish", sans-serif;\n      color: ',";\n      font-size: 16px;\n      font-style: normal;\n      font-weight: 700;\n      line-height: 150%;\n      display: flex;\n      align-items: end;\n\n      :hover {\n        opacity: 0.8;\n      }\n    }\n  }\n\n  .project-card-container {\n    display: grid;\n    gap: 16px;\n\n    "," {\n      grid-template-columns: 1fr;\n    }\n\n    "," {\n      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);\n    }\n  }\n"]);return NewProjects_templateObject=function(){return n},n}let K=o.default.div.withConfig({componentId:"sc-3fff56df-0"})(NewProjects_templateObject(),n=>{let{theme:e}=n;return e.colors.text.primary},n=>{let{theme:e}=n;return e.breakpoints.xs},n=>{let{theme:e}=n;return e.breakpoints.sm},n=>{let{theme:e}=n;return e.colors.text.accent.blue},n=>{let{theme:e}=n;return e.breakpoints.xs},n=>{let{theme:e}=n;return e.breakpoints.sm});var userDashboard2_NewProjects=function(){let n=(0,H.v9)(Q.sr);return(0,s.jsxs)(K,{children:[(0,s.jsxs)("div",{className:"title",children:[(0,s.jsx)("p",{children:"New project tutorials"}),(0,s.jsx)(E(),{href:"/projects",style:{all:"unset"}
1,children:(0,s.jsx)("p",{className:"all nes-pointer",children:"See all"})})]}),(0,s.jsx)("div",{className:"project-card-container",children:n.map(n=>(0,s.jsx)(X.Z,{projectInternalTitle:null==n?void 0:n.projectInternalTitle},n.title))})]})},nn=r(99281),ne=r(5478),nt=r(2711),nr=r.n(nt);function InviteFriend_templateObject(){let n=(0,i._)(["\n  padding: 48px;\n\n  display: flex;\n  gap: 48px;\n  position: relative;\n\n  "," {\n    flex-direction: column;\n    align-items: center;\n    text-align: center;\n  }\n\n  "," {\n    flex-direction: row;\n  }\n\n  .alert-bar {\n    position: absolute;\n    top: -30px;\n    left: 40%;\n  }\n\n  .image-container {\n    flex-shrink: 0;\n    img {\n      width: 158.225px;\n      height: 140px;\n    }\n  }\n\n  .text-container {\n    display: flex;\n    flex-direction: column;\n    gap: 32px;\n\n    .copy {\n      display: flex;\n      flex-direction: column;\n      gap: 16px;\n      .title {\n        color: ",';\n        font-family: "PixelGridM";\n        font-weight: 700;\n        line-height: 140%;\n        letter-spacing: 0.72px;\n\n        '," {\n          font-size: 20px;\n        }\n\n        ",' {\n          font-size: 24px;\n        }\n      }\n\n      .description {\n        font-family: "Mulish", sans-serif;\n\n        color: ',";\n        font-size: 16px;\n        font-weight: 500;\n        line-height: 150%;\n\n        "," {\n          br {\n            display: none;\n          }\n        }\n\n        "," {\n          br {\n            display: inline-block;\n          }\n        }\n      }\n    }\n\n    .input-container {\n      display: flex;\n      gap: 12px;\n\n      "," {\n        flex-direction: column;\n      }\n\n      "," {\n        flex-direction: row;\n      }\n\n      .dynamic-input {\n        flex: 1;\n      }\n    }\n  }\n"]);return InviteFriend_templateObject=function(){return n},n}r(20927);let ni=o.default.div.withConfig({componentId:"sc-abc1658-0"})(InviteFriend_templateObject(),n=>{let{theme:e}=n;return e.breakpoints.xs},n=>{let{theme:e}=n;return e.breakpoints.sm},n=>{let{theme:e}=n;return e.colors.text.primary},n=>{let{theme:e}=n;return e.breakpoints.xs},n=>{let{theme:e}=n;return e.breakpoints.sm},n=>{let{theme:e}=n;return e.colors.text.secondary},n=>{let{theme:e}=n;return e.breakpoints.xs},n=>{let{theme:e}=n;return e.breakpoints.sm},n=>{let{theme:e}=n;return e.breakpoints.xs},n=>{let{theme:e}=n;return e.breakpoints.sm});var userDashboard2_InviteFriend=function(){let[n,e]=(0,c.useState)(""),[r,i]=(0,c.useState)(!1),o=(0,H.v9)(N.IC);(0,H.v9)(N.o4),(0,c.useEffect)(()=>{nr().init({mirror:!1,disable:"mobile",once:!0})},[]);let p=(0,c.useCallback)(async()=>{if(!n)return;let r=n.split(",").map(n=>n.trim()),s=/^[a-zA-Z0-9+._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}$/,c=r.filter(n=>s.test(n));if(0!==c.length){i(!0);try{await fetch("/api/invite",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({inviteEmails:c,name:null==o?void 0:o.name,email:null==o?void 0:o.email})}),setTimeout(()=>{i(!1)},3e3)}catch(n){console.error(n)}finally{e("")}}},[n,null==o?void 0:o.email,null==o?void 0:o.name]);return(0,s.jsxs)(ni,{children:[r&&(0,s.jsx)(ne.Z,{textContent:"Invitation successfully sent!",type:"success"}),(0,s.jsx)("div",{className:"image-container",children:(0,s.jsx)("img",{src:"/images/character_gifs/letter.gif",alt:"invite friend image"})}),(0,s.jsxs)("div",{className:"text-container",children:[(0,s.jsxs)("div",{className:"copy",children:[(0,s.jsx)("p",{className:"title",children:"Invite a Friend"}),(0,s.jsxs)("p",{className:"description",children:["Having fun? Share the love with a friend (or two)! ",(0,s.jsx)("br",{}),"Enter an email and we'll send them a personal invite \uD83D\uDC8C"]})]}),(0,s.jsxs)("div",{className:"input-container",children:[(0,s.jsx)(nn.Z,{placeholder:"Your friend's email",value:n,setValue:e}),(0,s.jsx)(k.Z,{variant:"green",onClick:()=>p(),children:"Send Invite"})]})]})]})},ns=r(87457),no=r(46331),na=r(6742);function CommunityPosts_templateObject(){let n=(0,i._)(['\n  display: flex;\n  flex-direction: column;\n  gap: 32px;\n  font-family: "Mulish", sans-serif;\n\n  p {\n    margin: 0px;\n  }\n\n  .label-wrapper {\n    display: flex;
1\n    align-items: center;\n    label {\n      flex: 1;\n      margin: 0px;\n      color: ',';\n      font-family: "PixelGridS";\n      font-size: 24px;\n      font-style: normal;\n      font-weight: 700;\n      line-height: 140%;\n      letter-spacing: 0.72px;\n    }\n\n    a {\n      color: ',";\n\n      font-size: 16px;\n      font-weight: 700;\n      line-height: 150%;\n    }\n  }\n\n  .outer-post-wrapper {\n    position: relative;\n\n    "," {\n      overflow: visible;\n    }\n\n    "," {\n      overflow: hidden;\n    }\n\n    .post-grid {\n      display: flex;\n      gap: 24px;\n      overflow: auto;\n      position: relative;\n      scroll-behavior: smooth;\n\n      &::-webkit-scrollbar {\n        display: none;\n      }\n      -ms-overflow-style: none;\n      scrollbar-width: none;\n\n      "," {\n        flex-direction: column;\n        max-width: calc(100vw - 32px);\n        overflow: visible;\n      }\n\n      "," {\n        flex-direction: row;\n        max-width: calc(100vw - 48px);\n        overflow: auto;\n      }\n    }\n\n    .scroll-button {\n      position: absolute;\n      top: 0px;\n      width: 120px;\n      height: 100%;\n      display: flex;\n      align-items: center;\n      pointer-events: none;\n\n      "," {\n        display: none;\n      }\n\n      "," {\n        display: flex;\n      }\n\n      button {\n        width: 44px;\n        pointer-events: auto;\n\n        svg path {\n          fill: ",";\n        }\n      }\n\n      &.left {\n        left: 0px;\n        justify-content: start;\n        padding-left: 10px;\n        background: ",";\n      }\n\n      &.right {\n        right: 0px;\n        justify-content: end;\n        padding-right: 10px;\n        background: ",";\n\n        button svg {\n          transform: rotate(180deg);\n        }\n      }\n    }\n  }\n"]);return CommunityPosts_templateObject=function(){return n},n}let nl=o.default.div.withConfig({componentId:"sc-efd20e1d-0"})(CommunityPosts_templateObject(),n=>{let{theme:e}=n;return e.colors.text.primary},n=>{let{theme:e}=n;return e.colors.text.accent.blue},n=>{let{theme:e}=n;return e.breakpoints.xs},n=>{let{theme:e}=n;return e.breakpoints.sm},n=>{let{theme:e}=n;return e.breakpoints.xs},n=>{let{theme:e}=n;return e.breakpoints.sm},n=>{let{theme:e}=n;return e.breakpoints.xs},n=>{let{theme:e}=n;return e.breakpoints.sm},n=>{let{theme:e}=n;return e.colors.text.primary},n=>"dark"===n.theme.mode?"linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0) 100%)":"linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 100%)",n=>"dark"===n.theme.mode?"linear-gradient(270deg, #020617 0%, rgba(2, 6, 23, 0) 100%)":"linear-gradient(270deg, #fff 0%, rgba(255, 255, 255, 0) 100%)");var userDashboard2_CommunityPosts=function(n){let{posts:e}=n,r=(0,c.useRef)(null),[i,o]=(0,c.useState)(!1),[p,f]=(0,c.useState)(!1);function checkScrollPosition(){if(r.current){let{scrollLeft:n,scrollWidth:e,clientWidth:i}=r.current;o(n>0),f(n<e-i-1)}}function handleScroll(n){if(r.current){let e=r.current.scrollLeft;"left"===n?r.current.scrollLeft=e-348:r.current.scrollLeft=e+348}}if((0,c.useEffect)(()=>{checkScrollPosition();let n=r.current;if(n)return n.addEventListener("scroll",checkScrollPosition),window.addEventListener("resize",checkScrollPosition),()=>{n.removeEventListener("scroll",checkScrollPosition),window.removeEventListener("resize",checkScrollPosition)}},[e]),0!==e.length)return(0,s.jsxs)(nl,{children:[(0,s.jsxs)("div",{className:"label-wrapper",children:[(0,s.jsx)("label",{children:"From the community"}),(0,s.jsx)(E(),{href:"/community",children:"Go to Community"})]}),(0,s.jsxs)("div",{className:"outer-post-wrapper",children:[(0,s.jsx)("div",{className:"post-grid",ref:r,children:e&&(null==e?void 0:e.slice(0,10).map(n=>(0,s.jsx)(na.Z,{post:n},n.id)))}),i&&(0,s.jsx)("div",{className:"scroll-button left",children:(0,s.jsx)(k.Z,{variant:"subtle",size:"small",onClick:()=>handleScroll("left"),children:(0,s.jsx)(no.Z,{})})}),p&&(0,s.jsx)("div",{className:"scroll-button right",children:(0,s.jsx)(k.Z,{variant:"subtle",size:"small",onClick:()=>handleScroll("right"),children:(0,s.jsx)(no.Z,{})})})]})]})};
1function ActivityPanel_templateObject(){let n=(0,i._)(["\n  display: flex;\n  flex-direction: column;\n  gap: 48px;\n\n  p {\n    margin: 0px;\n  }\n"]);return ActivityPanel_templateObject=function(){return n},n}let nc=o.default.div.withConfig({componentId:"sc-248dfe6f-0"})(ActivityPanel_templateObject());var userDashboard2_ActivityPanel=function(n){let{uid:e,communityPosts:r}=n,i=(0,C.T)(),o=v().get(),p=(0,H.v9)(P.q9),f=p.every(n=>0===n.userProgress),m=p.filter(n=>n.userProgress>0).map(n=>({course:n.key})),x=o.courseHistory?JSON.parse(o.courseHistory):[],g=(0,c.useRef)(x),b=(0,c.useRef)(m),[w,j]=(0,c.useState)(x),k=(0,c.useCallback)(async()=>{if(0===g.current.length){let n=await (0,ns.q)(e),r=0===n.length?b.current:n;j(r),i((0,P.Oh)({courses:r})),v().set(null,"courseHistory",JSON.stringify(n),{maxAge:2592e3,path:"/"})}else j(g.current)},[e,i]);return(0,c.useEffect)(()=>{e&&k()},[e,k]),(0,s.jsxs)(nc,{children:[(0,s.jsx)(userDashboard2_MainCourse,{course:w[0],noCourseStarted:f}),(0,s.jsx)(userDashboard2_AdditionalCourses,{courseHistory:w.slice(1)}),(0,s.jsx)(userDashboard2_CommunityPosts,{posts:r}),(0,s.jsx)(userDashboard2_NewProjects,{}),(0,s.jsx)(userDashboard2_ExploreMoreFeatures,{}),(0,s.jsx)(userDashboard2_InviteFriend,{})]})},nd=r(85307),nu=r(29697),np=r(42392),nh=r(14363),nf=r(8920),nm=r(55122),nx=r(58181),ng=r(7894),ny=r(81776);function MyProfile_templateObject(){let n=(0,i._)(['\n  padding: 24px;\n  font-family: "Mulish", sans-serif;\n  display: flex;\n  flex-direction: column;\n  gap: 24px;\n\n  .user-meta {\n    display: flex;\n    align-items: center;\n    gap: 16px;\n\n    .image-container {\n      flex-shrink: 0;\n      display: flex;\n      flex-direction: column;\n      align-items: center;\n      gap: 6px;\n\n      p {\n        color: ',";\n        font-size: 14px;\n        font-style: normal;\n        font-weight: 700;\n        line-height: normal;\n      }\n\n      img {\n        width: 56px;\n        height: 56px;\n      }\n    }\n\n    .name-rank {\n      .username {\n        color: ",";\n        font-size: 18px;\n        font-weight: 700;\n        line-height: 150%;\n      }\n\n      .level {\n        color: ",";\n        font-size: 14px;\n        font-weight: 500;\n        line-height: 150%;\n      }\n    }\n  }\n\n  .stats {\n    display: grid;\n    grid-template-columns: 1fr 1fr;\n    gap: 16px;\n  }\n\n  button {\n    width: 100%;\n  }\n"]);return MyProfile_templateObject=function(){return n},n}let nb=(0,o.default)(j.Z).withConfig({componentId:"sc-572932bd-0"})(MyProfile_templateObject(),n=>{let{theme:e}=n;return e.colors.text.accent.blue},n=>{let{theme:e}=n;return e.colors.text.primary},n=>{let{theme:e}=n;return e.colors.text.primary});var userDashboard2_MyProfile=function(n){let{isDark:e}=n,r=(0,C.T)(),i=(0,H.v9)(N.jl),o=(0,H.v9)(N.$u)||0;(0,c.useCallback)(()=>{if(4===o)return r((0,N.Ii)({characterModelIndex:0}));r((0,N.Ii)({characterModelIndex:o+1}))},[o,r]);let p=(0,H.v9)(N.zr),f=(0,H.v9)(N.nU),m=(0,nd.Z)(f),x=(0,H.v9)(S.cC),g=(0,H.v9)(N.ZQ),[b,v]=(0,c.useState)(!1),[w,j]=(0,c.useState)(!1),V=(0,H.v9)((0,ny.Ax)()),_=(0,nm.I)(),O=(Array.isArray(x)?x.length:0)+V+(null==_?void 0:_.length);return(0,s.jsxs)(s.Fragment,{children:[b&&(0,s.jsx)(nx.Z,{setShowCharacterModel:v}),w&&(0,s.jsx)(ng.Z,{setShowModel:j}),(0,s.jsxs)(nb,{borderColor:e?"475569":"CBD5E1",children:[(0,s.jsxs)("div",{className:"user-meta",children:[(0,s.jsxs)("div",{className:"image-container",children:[(0,s.jsx)("img",{src:i[o],className:"nes-pointer",alt:"",onClick:()=>v(!0)}),(0,s.jsx)("p",{className:"nes-pointer",onClick:()=>j(!0),children:"Edit"})]}),(0,s.jsxs)("div",{className:"name-rank",children:[(0,s.jsx)("p",{className:"username",children:p}),(0,s.jsxs)("p",{className:"level",children:["Level ",m.level]})]})]}),(0,s.jsxs)("div",{className:"stats",children:[(0,s.jsx)(nu.Z,{svg:(0,s.jsx)(np.Z,{}),numText:f,description:"Total XP"}),(0,s.jsx)(nu.Z,{imgSrc:m.badge,numText:m.rankName,description:"Rank"}),(0,s.jsx)(nu.Z,{svg:(0,s.jsx)(nh.Z,{}),numText:O,description:"Badges",onClick:()=>void r((0,N.J)({type:"badges",status:"show",properties:{}}))}),(0,s.jsx)(nu.Z,{svg:(0,s.jsx)(nf.Z,{}),numText:g,description:"Day streak"})]}),(0,s.jsx)(E(),{href:"/@".concat(p),style:{all:"unset"}
1,children:(0,s.jsx)(k.Z,{variant:"subtle",size:"small",children:"View profile"})})]})]})},nv=r(67687),nw=r(11575),nj=r(71417),nk=r(45121);function NitesOfCode_templateObject(){let n=(0,i._)(['\n  padding: 2px 2px 0px 2px;\n\n  p {\n    margin: 0px;\n  }\n\n  .background {\n    padding: 16px;\n    display: flex;\n    flex-direction: column;\n    align-items: center;\n    gap: 8px;\n\n    clip-path: polygon(\n      4px 0px,\n      4px 2px,\n      2px 2px,\n      2px 4px,\n      0px 4px,\n      0px 100%,\n      100% 100%,\n      100% calc(100% - 4px),\n      100% calc(100% - 4px),\n      100% 4px,\n      calc(100% - 2px) 4px,\n      calc(100% - 2px) 2px,\n      calc(100% - 4px) 2px,\n      calc(100% - 4px) 0px\n    );\n\n    .header {\n      display: flex;\n      justify-content: space-between;\n      width: 100%;\n      .noc-title {\n        font-family: "ScrambledEggs", sans-serif;\n        font-size: 12px;\n        font-weight: 400;\n        line-height: 150%; /* 18px */\n      }\n\n      .dates {\n        font-size: 12px;\n        font-weight: 700;\n        letter-spacing: 1.68px;\n        text-transform: uppercase;\n        font-family: "Mulish", sans-serif;\n\n        display: flex;\n        align-items: center;\n        gap: 8px;\n\n        svg {\n          width: 18px;\n          height: 18px;\n        }\n      }\n    }\n\n    .pet-image {\n      img {\n        width: 64px;\n        height: 64px;\n      }\n    }\n\n    .petname {\n      color: #fff;\n      text-align: center;\n      font-family: "ScrambledEggs", sans-serif;\n      font-size: var(--Text-Sizes-S, 14px);\n      font-style: normal;\n      font-weight: 400;\n      line-height: 150%; /* 21px */\n    }\n\n    .time-left {\n      margin: 0px;\n      padding: 5px 12px;\n      display: flex;\n      gap: 8px;\n\n      border-radius: 100px;\n      background: ',';\n\n      font-family: "Mulish", sans-serif;\n      font-size: 12px;\n      font-style: normal;\n      font-weight: 700;\n      letter-spacing: 1.68px;\n      text-transform: uppercase;\n\n      color: ',";\n\n      svg {\n        path,\n        rect {\n          fill: ",";\n        }\n      }\n    }\n  }\n\n  .btn-container {\n    padding: 20px;\n\n    button {\n      width: 100%;\n    }\n  }\n"]);return NitesOfCode_templateObject=function(){return n},n}let nH=(0,o.default)(j.Z).withConfig({componentId:"sc-3a044553-0"})(NitesOfCode_templateObject(),n=>{let{theme:e}=n;return e.colors.background.yellow.tertiary},n=>{let{theme:e}=n;return e.colors.text.accent.yellow},n=>{let{theme:e}=n;return e.colors.text.accent.yellow});var userDashboard2_NitesOfCode=function(n){let{isDark:e}=n,r=(0,H.v9)(N.f8),i=(0,H.v9)(N.zr),[o,p]=(0,c.useState)(!1),[f,m]=(0,c.useState)(null),[x,g]=(0,c.useState)({}),b=(0,c.useCallback)(async function(){let n=sessionStorage.getItem("nites-of-code"),e=void 0!=n?JSON.parse(n):null;if(e)p(!0),m(e.pet),g(e);else{let n=await (0,nv.h)({uid:r});200===n.status&&(p(!0),m(n.pet),g(n),sessionStorage.setItem("nites-of-code",JSON.stringify(n)))}},[r]);(0,c.useEffect)(()=>{r&&b()},[b,r]);let{hours:v,minutesAndSeconds:w}=(0,nw.Z)(),j={dragon:{gradient:"radial-gradient(48.32% 75.39% at 50% 50%, #2e1065 0%, #5b21b6 100%)",color:"#DDD6FE"},duck:{gradient:"radial-gradient(48.32% 75.39% at 50% 50%, #422006 0%, #854d0e 100%)",color:"#FEF08A"},dinosaur:{gradient:"radial-gradient(48.32% 75.39% at 50% 50%, #365314 0%, #3F6212 100%)",color:"#D9F99D"}},C=j[null==x?void 0:x.pet]||j.dragon;if(o&&(null==x||!x.deathSeen))return(0,s.jsxs)(nH,{borderColor:e?"475569":"CBD5E1",children:[(0,s.jsxs)("div",{className:"background",style:{background:null==C?void 0:C.gradient},children:[(0,s.jsxs)("div",{className:"header",children:[(0,s.jsx)("p",{style:{color:C.color},className:"noc-title",children:"#30NitesOfCode"}),(0,s.jsxs)("p",{className:"dates",style:{color:null==C?void 0:C.color},children:[(0,s.jsx)(nj.Z,{color:C.color}),null==x?void 0:x.day," / 30"]})]}),(0,s.jsx)("div",{className:"pet-image",children:"dead"!=x.aliveStatus?(0,s.jsx)(s.Fragment,{children:x.evolutionPhase?(0,s.jsx)("img",{src:"/images/code-nights/".concat(null==x?void 0:x.evolutionPhase,"-").concat(x.emotion||"neutral","-").concat(x.pet,".gif"),alt:"pet image"}):(0,s.jsx)("img",{src:"/images/code-nights/".concat(null==x?void 0:x.pet,".gif"),alt:"egg"})}):(0,s.jsx)("img",{src:"/images/30-nites-of-code/angel letter.gif",alt:"pet image",style:{imageRendering:"pixelated"}})}),(0,s.jsx)("p",{className:"petname",children:null==x?void 0:x.petName}),"dead"!=x.aliveStatus&&(0,s.jsxs)("p",{className:"time-left",children:[(0,s.jsx)(nk.Z,{}),0===v?(0,s.jsxs)(s.Fragment,{children:[w," minutes left"]}):(0,s.jsxs)(s.Fragment,{children:[v," hours left"]})]})]}),(0,s.jsx)("div",{className:"btn-container",children:(0,s.jsx)(E(),{href:"/@".concat(i,"/30-nites-of-code"),style:{all:"unset"}
1,children:(0,s.jsx)(k.Z,{variant:x.isFed?"subtle":"blue",children:"dead"!=x.aliveStatus?(0,s.jsxs)(s.Fragment,{children:[" ",x.isFed?"View pet":"Add progress +10 XP"]}):(0,s.jsx)(s.Fragment,{children:"Read letter"})})})})]})},nC=r(74347);function GetClub_templateObject(){let n=(0,i._)(['\n  padding: 10px;\n  height: fit-content;\n  width: 100%;\n  display: flex;\n  flex-direction: column;\n  gap: 4px;\n  font-family: "Mulish", sans-serif;\n\n  background-color: ',";\n\n  .cross-icon {\n    display: flex;\n    justify-content: end;\n    transition-duration: 0px;\n\n    .icon-container {\n      padding: 4px;\n      border-radius: 4px;\n      line-height: 1;\n      transition-duration: 0.2s;\n\n      svg {\n        transition-duration: 0px;\n\n        path {\n          fill: ",";\n        }\n      }\n\n      :hover {\n        background-color: ",";\n\n        svg {\n          path {\n            fill: ",";\n          }\n        }\n      }\n    }\n  }\n\n  .inner-container {\n    padding: 0px 16px 16px 16px;\n    display: flex;\n    flex-direction: column;\n    gap: 24px;\n\n    .text {\n      display: flex;\n      flex-direction: column;\n      gap: 8px;\n\n      .club {\n        width: fit-content;\n        font-size: 16px;\n\n        font-weight: 900;\n        line-height: 150%;\n        letter-spacing: 0.8px;\n        text-transform: capitalize;\n\n        background: linear-gradient(\n          242deg,\n          #a3e635 0%,\n          #2cbaff 33%,\n          #be53ff 66%,\n          #ff7286 100%\n        );\n\n        background-size: 100%;\n        background-clip: text;\n        -webkit-background-clip: text;\n        -webkit-text-fill-color: transparent;\n      }\n\n      .club-title {\n        color: ",";\n        font-size: 18px;\n        font-weight: 700;\n        line-height: 150%;\n      }\n\n      .description {\n        color: ",";\n\n        font-size: 14px;\n\n        font-weight: 500;\n        line-height: 150%;\n      }\n    }\n\n    button {\n      width: 100%;\n    }\n  }\n"]);return GetClub_templateObject=function(){return n},n}let nN=(0,o.default)(j.Z).withConfig({componentId:"sc-e02be5aa-0"})(GetClub_templateObject(),n=>{let{theme:e}=n;return e.colors.background.grey.primary},n=>{let{theme:e}=n;return"dark"==e.mode?e.colors.palette.grey["400"]:e.colors.palette.grey["500"]},n=>{let{theme:e}=n;return"dark"==e.mode?e.colors.palette.grey["800"]:e.colors.palette.grey["100"]},n=>{let{theme:e}=n;return"dark"==e.mode?e.colors.palette.blue["400"]:e.colors.palette.blue["700"]},n=>{let{theme:e}=n;return e.colors.text.primary},n=>{let{theme:e}=n;return e.colors.text.secondary});var userDashBoard2_GetClub=function(){let n=(0,H.v9)(N.f8),e=(0,H.v9)(N.o4)||"dark",[r,i]=(0,c.useState)(!1);if((0,c.useEffect)(()=>{async function getClubCtaPopupStatus(){let e=await fetch("/api/community/getPopupStatus",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({uid:n,popupName:"user-dashboard-club-cta"})}),r=await e.json();(null==r?void 0:r.seen)==!0?i(!1):i(!0)}if(n){let n="true"===localStorage.getItem("headercheck");if(n)return;getClubCtaPopupStatus()}},[n]),r)return(0,s.jsxs)(nN,{borderColor:"dark"===e?"475569":"CBD5E1",children:[(0,s.jsx)("div",{className:"cross-icon",children:(0,s.jsx)("div",{className:"icon-container nes-pointer",onClick:()=>{(0,_.O)({uid:n,popupName:"user-dashboard-club-cta"}),i(!1)},children:(0,s.jsx)(nC.Z,{})})}),(0,s.jsxs)("div",{className:"inner-container",children:[(0,s.jsxs)("div",{className:"text",children:[(0,s.jsx)("p",{className:"club",children:"CLUB"}),(0,s.jsx)("p",{className:"club-title",children:"Get unlimited access to learning"}),(0,s.jsx)("p",{className:"description",children:"Join Club to unlock all courses, get help from code experts, and more."})]}),(0,s.jsx)(E(),{href:"/pricing",style:{all:"unset"},children:(0,s.jsx)(k.Z,{size:"small",variant:"subtle",children:"Learn More"})})]})]})},nV=r(97259),nD=r(10346);function MonthlyChallenge_templateObject(){let n=(0,i._)(['\n  padding: 24px;\n  font-family: "Mulish", sans-serif;\n\n  * {\n    margin: 0px;\n  }\n\n  h3 {\n    color: ',";\n    font-size: 18px;\n    font-style: normal;\n    font-weight: 700;\n    line-height: 150%;\n    margin-bottom: 12px;\n  }\n\n  img {\n    height: 162px;\n    width: 100%;
1\n    align-self: stretch;\n    border-radius: 4px;\n\n    "," {\n      object-fit: fill;\n    }\n    "," {\n      object-fit: cover;\n    }\n  }\n\n  .info {\n    margin: 24px 0px;\n    display: flex;\n    flex-direction: column;\n    gap: 16px;\n\n    .submit-by {\n      display: flex;\n      align-items: center;\n      gap: 8px;\n      color: ",";\n\n      font-size: 14px;\n      font-weight: 700;\n      line-height: 150%;\n\n      svg {\n        path {\n          fill: ",";\n        }\n      }\n    }\n\n    .total-submitted {\n      display: flex;\n      align-items: center;\n      gap: 8px;\n\n      color: ",";\n\n      font-size: 14px;\n      font-weight: 500;\n      line-height: 150%;\n\n      svg {\n        path {\n          fill: ",";\n        }\n      }\n    }\n  }\n\n  a,\n  button {\n    text-decoration: none;\n    width: 100%;\n  }\n"]);return MonthlyChallenge_templateObject=function(){return n},n}let n_=(0,o.default)(j.Z).withConfig({componentId:"sc-f82d21db-0"})(MonthlyChallenge_templateObject(),n=>{let{theme:e}=n;return e.colors.text.primary},n=>{let{theme:e}=n;return e.breakpoints.xs},n=>{let{theme:e}=n;return e.breakpoints.sm},n=>{let{theme:e}=n;return e.colors.text.accent.blue},n=>{let{theme:e}=n;return e.colors.text.accent.blue},n=>{let{theme:e}=n;return e.colors.text.secondary},n=>{let{theme:e}=n;return e.colors.text.tertiary});var userDashboard2_MonthlyChallenge=function(n){var e,r;let{monthlyChallenge:i}=n,o=i.challengeEndDate,c=null!==(r=null==i?void 0:i.totalSubmissions)&&void 0!==r?r:0;return(0,s.jsxs)(n_,{children:[(0,s.jsx)("h3",{children:"Monthly Challenge"}),(0,s.jsx)("img",{src:null==i?void 0:null===(e=i.images[0])||void 0===e?void 0:e.url,alt:"monthly challenge banner image"}),(0,s.jsxs)("div",{className:"info",children:[(0,s.jsxs)("p",{className:"submit-by",children:[nM," Submit by ",function(n){let[e,r,i]=n.split("-").map(Number),s=new Date(e,r-1,i);return s.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}(o)]}),(0,s.jsxs)("p",{className:"total-submitted",children:[nS," ",c," submissions"]})]}),(0,s.jsx)(E(),{href:"/community/monthly-challenge/".concat(null==i?void 0:i.id),children:(0,s.jsx)(k.Z,{variant:"subtle",size:"small",children:"Join the challenge"})})]})};let nM=(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"15",viewBox:"0 0 14 15",fill:"none",children:(0,s.jsx)("path",{d:"M10.5 1.5H13.5V15H0V1.5H3V0H4.5V1.5H9V0H10.5V1.5ZM1.5 13.5H12V6H1.5V13.5ZM1.5 4.5H12V3H1.5V4.5Z",fill:"#0065AB"})}),nS=(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",viewBox:"0 0 18 15",fill:"none",children:(0,s.jsx)("path",{d:"M1.5 13.5H10.5V10.5H12V15H0V10.5H1.5V13.5ZM18 15H13.5V13.5H16.5V10.5H18V15ZM10.5 10.5H1.5V9H10.5V10.5ZM16.5 10.5H13.5V9H16.5V10.5ZM8.25 7.5H3.75V6H8.25V7.5ZM14.25 7.5H11.25V6H14.25V7.5ZM3.75 6H2.25V1.5H3.75V6ZM9.75 6H8.25V1.5H9.75V6ZM15.75 6H14.25V1.5H15.75V6ZM8.25 1.5H3.75V0H8.25V1.5ZM14.25 1.5H11.25V0H14.25V1.5Z",fill:"#64748B"})});function StatsPanel_templateObject(){let n=(0,i._)(["\n  display: flex;\n  flex-direction: column;\n  gap: 16px;\n\n  p {\n    margin: 0px;\n  }\n"]);return StatsPanel_templateObject=function(){return n},n}let n$=o.default.div.withConfig({componentId:"sc-a1a62be7-0"})(StatsPanel_templateObject());var userDashboard2_StatsPanel=function(n){let{news:e,events:r,monthlyChallenge:i}=n,o=(0,H.v9)(N.o4)||"dark",c="dark"===o;return(0,s.jsxs)(n$,{children:[(0,s.jsx)(userDashboard2_MyProfile,{isDark:c}),(0,s.jsx)(userDashboard2_MonthlyChallenge,{monthlyChallenge:i}),(0,s.jsx)(userDashboard2_NitesOfCode,{isDark:c}),(0,s.jsx)(nD.Z,{events:r}),(0,s.jsx)(nV.Z,{news:e}),(0,s.jsx)(userDashBoard2_GetClub,{})]})},nO=r(86961),nZ=r(76e3),nF=r(3816),nP=r(39828),nz=r(92369);async function createTeamNotification(n){let{type:e="team",uid:r,notifId:i,linkTo:s,content:o,image:c=null}=n,{firestore:p}=(0,nz.UM)();try{let n=(0,nP.JU)(p,"communityNotifications",r),f=(0,nP.hJ)(n,"notifications"),m=(0,nP.IO)(f,(0,nP.ar)("type","==",e),(0,nP.ar)("postId","==",i)),x=await (0,nP.PL)(m);if(0!==x.size)return{status:204};{let n={type:e,notifId:i,linkTo:s,content:o,read:!1,senderUid:r,createdAt:(0,nP.Bt)(),image:c};return await (0,nP.ET)(f,n),{status:200}}}catch(n){throw Error("Error creating notification: "+n.message)}}async function setTeamNotification(n){let{uid:e,notifName:r}=n;if(!e)throw Error("userUid is a required field.");let{firestore:i}=(0,nz.UM)();try{let n=(0,nP.JU)(i,"users",e,"team-notifications",r);await (0,nP.pl)(n,{created:!0},{merge:!0})}catch(n){throw Error("Error setting popup status: "+n.message)}}
1function MobileView_templateObject(){let n=(0,i._)(["\n  display: flex;\n  flex-direction: column;\n  gap: 32px;\n  padding-top: 24px;\n  overflow: hidden;\n\n  p {\n    margin: 0px;\n  }\n\n  "," {\n    display: flex;\n  }\n  "," {\n    display: flex;\n  }\n\n  "," {\n    display: none;\n  }\n"]);return MobileView_templateObject=function(){return n},n}let nE=o.default.div.withConfig({componentId:"sc-57b36119-0"})(MobileView_templateObject(),n=>{let{theme:e}=n;return e.breakpoints.xs},n=>{let{theme:e}=n;return e.breakpoints.sm},n=>{let{theme:e}=n;return e.breakpoints.md});var userDashboard2_MobileView=function(n){let{uid:e,monthlyChallenge:r}=n,i=v().get(),o=i.courseHistory?JSON.parse(i.courseHistory):[],p=(0,H.v9)(P.q9),f=p.every(n=>0==n.userProgress),m=p.filter(n=>n.userProgress>0).map(n=>({course:n.key})),x=(0,H.v9)(N.o4)||"dark",g="dark"===x,[b,w]=(0,c.useState)(o);return(0,c.useEffect)(()=>{async function fetchCourseHistory(){if(0===o.length){let n=await (0,ns.q)(e),r=0===n.length?m:n;w(r),v().set(null,"courseHistory",JSON.stringify(n),{maxAge:2592e3,path:"/"})}else w(o)}e&&fetchCourseHistory()},[e]),(0,s.jsxs)(nE,{children:[(0,s.jsx)(userDashboard2_MainCourse,{course:b[0],noCourseStarted:f}),(0,s.jsx)(userDashboard2_AdditionalCourses,{courseHistory:b.slice(1)}),(0,s.jsx)(userDashboard2_MyProfile,{isDark:g}),(0,s.jsx)(userDashboard2_MonthlyChallenge,{monthlyChallenge:r}),(0,s.jsx)(userDashboard2_NitesOfCode,{isDark:g}),(0,s.jsx)(userDashboard2_ExploreMoreFeatures,{}),(0,s.jsx)(userDashboard2_NewProjects,{}),(0,s.jsx)(userDashBoard2_GetClub,{}),(0,s.jsx)(userDashboard2_InviteFriend,{})]})},nB=r(9008),nI=r.n(nB);function home_templateObject(){let n=(0,i._)(["\n  margin-top: 3.9rem;\n  background-color: ",";\n  overflow: hidden;\n"]);return home_templateObject=function(){return n},n}function _templateObject1(){let n=(0,i._)(["\n  padding-top: 48px;\n  display: grid;\n  /* grid-template-columns: 5fr 2fr; */\n  grid-template-columns: minmax(0, 5fr) minmax(0, 2.14fr);\n  gap: 64px;\n\n  "," {\n    display: none;\n  }\n  "," {\n    display: none;\n  }\n\n  "," {\n    display: grid;\n  }\n"]);return _templateObject1=function(){return n},n}let nT=o.default.div.withConfig({componentId:"sc-37f25998-0"})(home_templateObject(),n=>{let{theme:e}=n;return e.colors.background.grey.primary}),nA=o.default.div.withConfig({componentId:"sc-37f25998-1"})(_templateObject1(),n=>{let{theme:e}=n;return e.breakpoints.xs},n=>{let{theme:e}=n;return e.breakpoints.sm},n=>{let{theme:e}=n;return e.breakpoints.md});var nL=!0,home=function(n){var e;let{communityPosts:r,news:i,events:o,monthlyChallenge:b}=n,v=(0,C.T)(),w=(0,p.useRouter)();(0,H.v9)(N.Ao);let j=(0,H.v9)(N.f8),k=(0,H.v9)(N.zr),[V,_]=(0,c.useState)(0);(0,c.useEffect)(()=>{k&&(0,nZ.lZ)({username:k})},[k]),(0,c.useEffect)(()=>{var n;let e=null==w?void 0:null===(n=w.query)||void 0===n?void 0:n.session_id;async function verifyCheckoutSession(){try{let n=await f.Z.post("/api/club/stripe/verify-checkout-session",{session_id:e});"success"===n.data.status&&v((0,N.J)({type:"paymentSuccess",status:"show",properties:{}}))}catch(n){console.error("Failed to verify checkout session:",n)}finally{w.replace("/home",void 0,{shallow:!0})}}e&&verifyCheckoutSession()},[null===(e=w.query)||void 0===e?void 0:e.session_id,v,w]);let S=(0,c.useRef)(!1);(0,c.useEffect)(()=>{if(!j)return;let n="networking-nite-recap-2026";async function checkNotiftatus(){let e=await fetch("/api/getTeamNotificationStatus",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({uid:j,notifName:n})}),r=await e.json();if((null==r?void 0:r.created)!=!0){let e=await createTeamNotification({uid:j,notifId:n,linkTo:"/blog/gen-z-builders-networking-nite-recap",content:"\uD83D\uDCF8 New blog: Gen Z Builders Networking Nite Recap"});e&&setTeamNotification({uid:j,notifName:n})}}n&&(S.current||(S.current=!0,checkNotiftatus()))},[j]);let[O,Z]=(0,c.useState)(!0);return((0,c.useEffect)(()=>{let n=setTimeout(()=>{Z(!1)},890);return()=>clearTimeout(n)},[]),console.log("test"),O&&!k)?(0,s.jsx)(nF.Z,{}):(0,s.jsxs)(nT,{children:[(0,s.jsx)(x.Z,{showBuildPopup:V}),(0,s.jsx)(m.Z,{h1:"User Dashboard",canonical:"https://www.codedex.io/home"}),(0,s.jsx)(nI(),{children:(0,s.jsx)("meta",{name:"format-detection",content:"telephone=no"})}),(0,s.jsxs)(g.Z,{children:[(0,s.jsxs)(nA,{children:[(0,s.jsx)(userDashboard2_ActivityPanel,{uid:j,communityPosts:r}),(0,s.jsx)(userDashboard2_StatsPanel,{news:i,events:o,monthlyChallenge:b})]}),(0,s.jsx)(userDashboard2_MobileView,{uid:j,monthlyChallenge:b})]}),(0,s.jsx)(nO.Z,{style:{position:"sticky",top:"100%"}})]})}}},function(n){n.O(0,[1272,8700,1057,3777,5937,7603,4153,1622,9280,286,6095,8849,9428,2163,6961,8181,4561,9774,2888,179],function(){return n(n.s=94309)}),_N_E=n.O()}]);

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