1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[386],{9633:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/outdated-community/monthly-challenge/create",function(){return t(49604)}])},85712:function(n,e,t){"use strict";var i=t(85893);e.Z=function(n){let{color:e="#64748B",...t}=n;return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",...t,children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 2.5H4H20H22V18.5H20H17V20.5H15V18.5H9V20.5H7V18.5H4H2V2.5ZM7 20.5V22.5H5V20.5H7ZM17 20.5V22.5H19V20.5H17ZM20 4.5H4V16.5H20V4.5ZM12 8.5H14V10.5H12V8.5ZM10 12.5V10.5H12V12.5H10ZM10 12.5V14.5H8V12.5H10ZM16 12.5H14V10.5H16V12.5ZM16 12.5H18V14.5H16V12.5ZM8 6.5H6V8.5H8V6.5Z",fill:"#64748B"})})}},27936:function(n,e,t){"use strict";var i=t(82729),r=t(85893),o=t(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 a=o.default.main.withConfig({componentId:"sc-e8309d9d-0"})(_templateObject());e.Z=function(n){let{h1:e,description:t="",canonical:i=""}=n;return e?(0,r.jsxs)(a,{children:[(0,r.jsx)("h1",{children:e}),t?(0,r.jsx)("p",{className:"description",children:t}):null,i?(0,r.jsx)("link",{rel:"canonical",href:i}):null]}):null}},88215:function(n,e,t){"use strict";var i=t(82729),r=t(85893),o=t(19521),a=t(17942);function _templateObject(){let n=(0,i._)(["\n ",' {\n z-index: 1;\n margin: 0rem;\n\n .banner-image {\n height: 60px;\n background-image: url("/images/css/banner-v2.png");\n }\n\n .banner-info {\n position: relative;\n height: 80px;\n /* background: #1d2331; */\n background: ',";\n border-bottom-left-radius: 18px;\n border-bottom-right-radius: 18px;\n display: flex;\n align-items: center;\n\n .img-container {\n position: absolute;\n top: -30%;\n left: 0.8rem;\n border-radius: 50%;\n /* background-color: whitesmoke; */\n overflow: hidden;\n transform: scaleX(-1);\n\n img {\n width: 80px;\n height: 80px;\n border-radius: 50%;\n border: 3px solid rgba(15, 21, 36, 1);\n }\n }\n\n .banner-copy {\n color: ",';\n margin-left: 6.8rem;\n\n h2 {\n font-size: 14px;\n margin: 0px;\n font-weight: 400;\n }\n p {\n margin: 0px;\n font-size: 14px;\n font-family: "Work Sans", sans-serif;\n color: rgba(128, 128, 128, 1);\n }\n }\n }\n }\n\n '," {\n margin: auto 1rem;\n\n .banner-image {\n height: 100px;\n }\n\n .banner-info {\n .img-container {\n left: 35px;\n img {\n width: 90px;\n height: 90px;\n }\n }\n\n .banner-copy {\n margin-left: 9rem;\n\n h2 {\n font-size: 18px;\n }\n p {\n font-size: 15px;\n }\n }\n }\n }\n "," {\n margin: 0rem;\n }\n"]);return _templateObject=function(){return n},n}let s=o.default.div.withConfig({componentId:"sc-561224-0"})(_templateObject(),n=>{let{theme:e}=n;return e.breakpoints.xs},n=>"dark"===n.theme.mode?"#1d2331":"#F9F5FE",n=>"dark"===n.theme.mode?"whitesmoke":"black",n=>{let{theme:e}=n;return e.breakpoints.sm},n=>{let{theme:e}=n;return e.breakpoints.md});e.Z=function(n){let{title:e="Cod\xe9dex Community",subTitle:t="Let's make magic together âËâ¡"}=n;return(0,r.jsxs)(s,{className:"community-banner",children:[(0,r.jsx)("div",{className:"banner-image"}),(0,r.jsxs)("div",{className:"banner-info",children:[(0,r.jsx)("div",{className:"img-container",children:(0,r.jsx)("img",{src:"/images/community/bouncer.gif",alt:"banner profile image"})}),(0,r.jsxs)("div",{className:"banner-copy",children:[(0,r.jsx)("h2",{children:e}),(0,r.jsx)("p",{children:t})]}),(0,r.jsx)(a.Z,{})]})]})}},51539:function(n,e,t){"use strict";var i=t(82729),r=t(85893),o=t(19521),a=t(80471),s=t(53854),c=t(47516),l=t(67294),m=t(9473),d=t(11163),u=t(41664),h=t.n(u),p=t(609),g=t(29796);
1function _templateObject(){let n=(0,i._)(["\n "," {\n z-index: 2;\n background-color: ",";\n height: 60px;\n width: 100%;\n position: fixed;\n bottom: 0%;\n border-top: 2px solid\n ",";\n color: ",';\n display: flex;\n justify-content: space-around;\n align-items: center;\n\n transition-duration: 0.2s;\n\n button {\n all: unset;\n font-family: "Work Sans", sans-serif;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 0rem;\n position: relative;\n\n .icon {\n color: ',";\n }\n img {\n width: 22px;\n filter: ",";\n }\n\n p {\n margin: 0px;\n font-size: 10px;\n font-weight: 600;\n }\n }\n\n .notif-size {\n position: absolute;\n top: -5px;\n right: 17px;\n background-color: #f86463;\n border-radius: 30px;\n font-size: 11px;\n line-height: 0.6;\n padding: 5px;\n transform: scale(0.95);\n color: whitesmoke !important;\n }\n\n .container {\n position: relative;\n\n .sub-communities {\n max-height: 70vh;\n overflow-y: auto;\n ::-webkit-scrollbar {\n width: 5px;\n }\n background-color: ",";\n position: absolute;\n bottom: 50px;\n left: 25px;\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n border: 1.5px solid\n ",";\n width: 235px;\n border-radius: 7px;\n box-shadow:\n rgba(9, 30, 66, 0.25) 0px 4px 8px -2px,\n rgba(9, 30, 66, 0.08) 0px 0px 0px 1px;\n .current-route {\n background: ",";\n }\n\n button {\n padding: 0.5rem 1rem 0.5rem 1rem;\n flex-direction: row;\n gap: 0.5rem;\n color: ",";\n img {\n width: 20px;\n height: 20px;\n border-radius: 50px;\n filter: none !important;\n }\n\n span {\n font-size: 16px;\n font-weight: 500;\n }\n\n .img-container {\n width: 20px;\n height: 20px;\n background: linear-gradient(90deg, #9968d5, #9198e5);\n border-radius: 50px;\n\n img {\n transform: scale(0.8);\n }\n }\n\n .final-project {\n background: linear-gradient(90deg, #379cee, #9198e5);\n }\n }\n }\n }\n }\n "," {\n display: none;\n }\n"]);return _templateObject=function(){return n},n}let f=o.default.div.withConfig({componentId:"sc-d720239a-0"})(_templateObject(),n=>{let{theme:e}=n;return e.breakpoints.xs},n=>"dark"===n.theme.mode?"rgba(15, 21, 36, .85)":"rgb(250 245 255 / 1)",n=>"light"===n.theme.mode?"lightgray":"#4B4B4B",n=>"dark"===n.theme.mode?"rgba(255, 255, 255, 0.87)":"black",n=>"dark"===n.theme.mode?"rgba(255, 255, 255, 0.87)":"black",n=>"dark"===n.theme.mode?"":"brightness(0%)",n=>"dark"===n.theme.mode?"#0F1524":"#FFFFFF",n=>"dark"===n.theme.mode?"rgba(36, 76, 115, 1)":"#DADADA",n=>"dark"===n.theme.mode?"#007bff":"#CBE0FF",n=>"dark"===n.theme.mode?"rgba(255, 255, 255, 0.87)":"black",n=>{let{theme:e}=n;return e.breakpoints.sm});e.Z=function(){let n=(0,d.useRouter)(),e=n.pathname,t=(0,m.v9)(p.zr);(0,m.v9)(g.sk);let i=(0,m.v9)(p.ot),o=(0,m.v9)(p.o4)||"dark",u="dark"===o,[x,b]=(0,l.useState)(!1),[y,v]=(0,l.useState)(!0);return(0,l.useEffect)(()=>{let n=window.scrollY;function handleScroll(){let e=window.scrollY;e>n?v(!1):e<n&&v(!0),n=e}return window.addEventListener("scroll",handleScroll),()=>window.removeEventListener("scroll",handleScroll)},[]),(0,r.jsxs)(f,{style:{background:y?u?"rgba(15, 21, 36, .85)":"rgba(250 245 255, .85)":u?"rgba(15, 21, 36, .4)":"rgba(250 245 255, .4)",opacity:y?"1":".7"},onClick:()=>v(!0),children:[(0,r.jsx)(h(),{href:"/community",legacyBehavior:!0,children:(0,r.jsx)("button",{children:(0,r.jsx)(c.DaR,{className:"icon",size:"22",color:"/community"===e?"#14ADFF":""})})}),(0,r.jsxs)("button",{className:"link-btn container ",onClick:()=>b(!x),children:[x&&(0,r.jsxs)("div",{className:"sub-communities",children:[(0,r.jsx)(h(),{href:"/community/general",legacyBehavior:!0,children:(0,r.jsxs)("button",{className:"".concat(e.includes("/community/general")?"current-route":""),children:[(0,r.jsx)("img",{src:"/images/community/bouncer.gif",alt:"wave communitie",style:{transform:"scaleX(-1)"}}),(0,r.jsx)("span",{children:"General"})]})}),(0,r.jsx)(h(),{href:"/community/hackathon",legacyBehavior:!0,children:(0,r.jsxs)("button",{className:"".concat(e.includes("/community/hackathon")?"current-route":""),children:[(0,r.jsx)("img",{src:"https://images.emojiterra.com/google/android-12l/512px/1f3d6.png",alt:"wave communitie"}),(0,r.jsx)("span",{children:"Hackathon"})]})}),(0,r.jsx)(h(),{href:"/community/question-of-the-week",legacyBehavior:!0,children:(0,r.jsxs)("button",{className:"".concat(e.includes("/community/question-of-the-week")?"current-route":""),children:[(0,r.jsx)("img",{src:"/images/community/qotw.gif",alt:"wave communitie"}),(0,r.jsx)("span",{children:"Question of the Week"})]})}),(0,r.jsx)(h(),{href:"/community/monthly-challenge/january-2025",legacyBehavior:!0,children:(0,r.jsxs)("button",{className:"".concat(e.includes("/community/monthly-challenge")?"current-route":""),children:[(0,r.jsx)("img",{src:"/images/community/monthly.png",alt:"wave communitie"}),(0,r.jsx)("span",{children:"Monthly Challenge"})]})}),(0,r.jsx)(h(),{href:"/community/30-nites-of-code",legacyBehavior:!0,children:(0,r.jsxs)("button",{className:"".concat(e.includes("/community/30-nites-of-code")?"current-route":""),children:[(0,r.jsx)("img",{src:"/images/code-nights/dragon.gif",alt:"wave communitie"}),(0,r.jsx)("span",{children:"#30NitesOfCode"})]})}),(0,r.jsx)(h(),{href:"/community/introduction",legacyBehavior:!0,children:(0,r.jsxs)("button",{className:"".concat(e.includes("/community/introduction")?"current-route":""),children:[(0,r.jsx)("img",{src:"/images/community/wave.png",alt:"wave communitie"}),(0,r.jsx)("span",{children:"Introductions"})]})}),(0,r.jsx)(h(),{href:"/community/python",legacyBehavior:!0,children:(0,r.jsxs)("button",{className:"".concat(e.includes("/community/python")?"current-route":""),children:[(0,r.jsx)("img",{src:"/images/community/python.png",alt:"python communitie"}),(0,r.jsx)("span",{children:"Python"})]})}),(0,r.jsx)(h(),{href:"/community/javascript",legacyBehavior:!0,children:(0,r.jsxs)("button",{className:"".concat(e.includes("/community/javascript")?"current-route":""),children:[(0,r.jsx)("img",{src:"/images/community/javascript.png",alt:"javascript communitie"}),(0,r.jsx)("span",{children:"JavaScript"})]})}),(0,r.jsx)(h(),{href:"/community/web-dev",legacyBehavior:!0,children:(0,r.jsxs)("button",{className:"".concat(e.includes("/community/web-dev")?"current-route":""),children:[(0,r.jsx)("img",{src:"/images/community/webdev.png",alt:"web dev communitie"}),(0,r.jsx)("span",{children:"Web Dev"})]})}),(0,r.jsx)(h(),{href:"/community/meme",legacyBehavior:!0,children:(0,r.jsxs)("button",{className:"".concat(e.includes("/community/meme")?"current-route":""),children:[(0,r.jsx)("img",{src:"/images/community/meme.gif",alt:"meme communitie"}),(0,r.jsx)("span",{children:"Memes"})]})}),(0,r.jsx)(h(),{href:"/community/pets",legacyBehavior:!0,children:(0,r.jsxs)("button",{className:"".concat(e.includes("/community/pets")?"current-route":""),children:[(0,r.jsx)("img",{src:"/images/community/mochi_avatar.png",alt:"pets communitie"}),(0,r.jsx)("span",{children:"Pets"})]})}),(0,r.jsx)(h(),{href:"/community/career",legacyBehavior:!0,children:(0,r.jsxs)("button",{className:"".concat(e.includes("/community/pets")?"current-route":""),children:[(0,r.jsx)("img",{src:"/images/community/career-suitcase.avif",alt:"career communitie"}),(0,r.jsx)("span",{children:"Careers"})]})}),(0,r.jsx)(h(),{href:"/community/checkpoint-project",legacyBehavior:!0,children:(0,r.jsxs)("button",{className:"".concat(e.includes("/community/checkpoint-project")?"current-route":""),children:[(0,r.jsx)("div",{className:"img-container",children:(0,r.jsx)("img",{src:"/images/community/checkpoint.png",alt:"checkpoint communitie",className:"checkpoint"})}),(0,r.jsx)("span",{children:"Checkpoint"})]})}),(0,r.jsx)(h(),{href:"/community/final-project",legacyBehavior:!0,children:(0,r.jsxs)("button",{className:"".concat(e.includes("/community/final-project")?"current-route":""),children:[(0,r.jsx)("div",{className:"img-container final-project",children:(0,r.jsx)("img",{src:"/images/community/final.png",alt:"final communitie",className:"checkpoint"})}),(0,r.jsx)("span",{children:"Final Project"})]})})]}),(0,r.jsx)(s.Otr,{className:"icon",size:"22"})]}),(0,r.jsx)(h(),{href:i?"/community/profile/@".concat(t):"/login",legacyBehavior:!0,children:(0,r.jsx)("button",{children:(0,r.jsx)(a.Mdg,{className:"icon",size:"22",color:e.includes("/community/profile/")&&n.query.profile=="@".concat(t)?"#14ADFF":""})})})]})}},72264:function(n,e,t){"use strict";var i=t(82729),r=t(85893),o=t(19521),a=t(41664),s=t.n(a),c=t(11163),l=t(67294),m=t(609),d=t(9473);
1function _templateObject(){let n=(0,i._)(["\n padding: 10px;\n display: flex;\n align-items: center;\n gap: 12px;\n border-radius: 8px;\n /* background: ",";\n border: 2px solid #14adff; */\n border: 2px solid transparent;\n\n &.current {\n /* border: 2px solid #14adff; */\n background: ",";\n\n p {\n color: ",";\n }\n\n svg {\n path {\n fill: ",";\n }\n }\n }\n\n :hover {\n transition-duration: 0.2s;\n background: ",";\n\n p {\n color: ",";\n }\n\n svg {\n path {\n fill: ",";\n }\n }\n }\n\n p {\n margin: 0px;\n color: ",";\n font-size: 16px;\n font-style: normal;\n font-weight: 600;\n line-height: 150%;\n }\n\n svg {\n path {\n fill: ",";\n }\n }\n\n .new-post-indicator {\n width: 8px;\n height: 8px;\n background-color: ",";\n border-radius: 50%;\n position: absolute;\n left: -4px;\n }\n"]);return _templateObject=function(){return n},n}let u=o.default.div.withConfig({componentId:"sc-dc660846-0"})(_templateObject(),n=>{let{theme:e}=n;return e.colors.background.blue.primary},n=>{let{theme:e}=n;return e.colors.background.blue.primary},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.background.blue.primary},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.primary},n=>{let{theme:e}=n;return e.colors.text.tertiary},n=>{let{theme:e}=n;return e.colors.text.primary});e.Z=function(n){let{channel:e}=n,t=(0,c.useRouter)(),i=(0,d.v9)(m.f8),o=t.asPath.includes("community/".concat(null==e?void 0:e.internalName)),a=(0,l.useMemo)(()=>JSON.parse(sessionStorage.getItem("newPostToSee-".concat(null==e?void 0:e.internalName)))||!1,[null==e?void 0:e.internalName]),[h,p]=(0,l.useState)(a);return(0,l.useEffect)(()=>{async function channelReadStatus(){let n=await fetch("/api/community/getChannelReadStatus?communityName=".concat(null==e?void 0:e.internalName,"&uid=").concat(i)),t=await n.json(),r=t.read;p(!r)}i&&channelReadStatus()},[null==e?void 0:e.internalName,i]),(0,l.useEffect)(()=>{sessionStorage.setItem("newPostToSee-".concat(null==e?void 0:e.internalName),JSON.stringify(h))},[h,null==e?void 0:e.internalName]),(0,l.useEffect)(()=>{let n=t.query.channel===(null==e?void 0:e.internalName);h&&n&&p(!1)},[t.query.channel,h,null==e?void 0:e.internalName]),(0,r.jsx)(s(),{href:"/community/".concat(e.internalName),style:{textDecoration:"none"},children:(0,r.jsxs)(u,{className:"nes-pointer ".concat(o&&"current"),children:[h&&i&&(0,r.jsx)("div",{className:"new-post-indicator"}),(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 4H8V8L4 8V10H8V14H4V16H8V20H10V16L14 16V20H16V16H20V14H16V10H20V8L16 8V4H14V8L10 8V4ZM10 10V14L14 14V10L10 10Z",fill:"#020617"})}),(0,r.jsx)("p",{children:e.displayName})]})})}},82077:function(n,e,t){"use strict";var i=t(82729),r=t(85893),o=t(19521),a=t(37719),s=t(78777),c=t(85712),l=t(61716),m=t(72264);function _templateObject(){let n=(0,i._)(["\n flex-shrink: 0;\n width: 260px;\n position: sticky;\n top: 3.9rem;\n height: calc(100vh - 3.9rem);\n padding: 12px 12px;\n overflow: auto;\n\n display: flex;\n flex-direction: column;\n gap: 16px;\n border-right: 2px solid ",";\n \n .regular-channels {\n display: flex;\n flex-direction: column;\n gap: 8px;\n\n .channel-label {\n padding: 0px 12px;\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 }\n"]);return _templateObject=function(){return n},n}let d=o.default.div.withConfig({componentId:"sc-250a310a-0"})(_templateObject(),n=>{let{theme:e}=n;return e.colors.border.grey.light},n=>{let{theme:e}=n;return e.colors.text.tertiary});e.Z=function(){let n=[{name:"Home",icon:(0,r.jsx)(s.Z,{}),link:"/community",internalName:"home"},{name:"Leaderboards",icon:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 5H13H15V7V19V21H13H11H9V19V7V5H11ZM13 19V7H11V19H13ZM6 11H4H2V13V19V21H4H6H8V19V13V11H6ZM6 13H4V19H6V13ZM18 15H20H22V17V19V21H20H18H16V19V17V15H18ZM20 19V17H18V19H20Z",fill:"#64748B"})}),link:"/community/leaderboards",internalName:"leaderboards"},{name:"Project Showcase",icon:(0,r.jsx)(c.Z,{}),link:"/community/project-showcase",internalName:"project-showcase"},{name:"Monthly Challenge",icon:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.0001 2H7.99988H5.99988V4L4 4H2V6V12H3.99988V14L5.99988 14H7.99988V6H8V4L16.0001 4V6V14L18 14L18.0001 14L20 14V12H21.9999V6H22.0001V4H21.9999H19.9999H18.0001V2H17.9999H16.0001ZM19.9999 6V12H18.0001V6H19.9999ZM5.99988 12H4V6H5.99988V12ZM15.9999 14H7.99988V16H15.9999V14ZM10.9999 16.0001H12.9999V20H15.9999V22H7.99988V20H10.9999V16.0001Z",fill:"#64748B"})}),link:"/community/monthly-challenge",internalName:"monthly-challenge"},{name:"#30NitesOfCode",icon:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.5 1H15.5V3H11.5V5V7H7.5V9H5.5V5H7.5V3H9.5V1ZM17.5 21V23H7.5V21H5.5V19H3.5V9H5.5V15H9.5V17H11.5V21H17.5ZM17.5 19V21H19.5V19H20.5H21.5V9H19.5V5H17.5V3H15.5V5H17.5V9H19.5V16H17.5V19ZM16.5 10H12.5V14H16.5V10Z",fill:"#64748B"})}),link:"/community/30-nites-of-code",internalName:"30-nites-of-code"}],e=(0,a.cg)();return(0,r.jsxs)(d,{className:"desktop-community-nav",children:[(0,r.jsx)("div",{className:"priority-channels",children:n.map(n=>(0,r.jsx)(l.Z,{channel:n},n.name))}),(0,r.jsxs)("div",{className:"regular-channels",children:[(0,r.jsx)("p",{className:"channel-label",children:"Channels"}),(0,r.jsx)("div",{className:"channels",children:e.map(n=>(0,r.jsx)(m.Z,{channel:n},n.internalName))})]})]})}},61716:function(n,e,t){"use strict";var i=t(82729),r=t(85893),o=t(41664),a=t.n(o),s=t(11163),c=t(19521);
1function _templateObject(){let n=(0,i._)(["\n padding: 10px;\n display: flex;\n align-items: center;\n gap: 12px;\n border-radius: 8px;\n /* background: ",";\n border: 2px solid #14adff; */\n border: 2px solid transparent;\n\n &.current {\n /* border: 2px solid #14adff; */\n background: ",";\n color: ",";\n\n p {\n color: ",";\n }\n\n svg {\n path {\n fill: ",";\n }\n }\n }\n\n :hover {\n transition-duration: 0.2s;\n background: ",";\n\n p {\n color: ",";\n }\n\n svg {\n path {\n fill: ",";\n }\n }\n }\n\n p {\n margin: 0px;\n color: ",";\n font-size: 16px;\n font-style: normal;\n font-weight: 600;\n line-height: 150%;\n }\n"]);return _templateObject=function(){return n},n}let l=c.default.div.withConfig({componentId:"sc-357e5de7-0"})(_templateObject(),n=>{let{theme:e}=n;return e.colors.background.blue.primary},n=>{let{theme:e}=n;return e.colors.background.blue.primary},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.accent.blue},n=>{let{theme:e}=n;return e.colors.background.blue.primary},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});e.Z=function(n){let{channel:e}=n,t=(0,s.useRouter)(),i=t.asPath.includes(null==e?void 0:e.internalName),o="/community"===t.asPath&&"Home"===e.name;return(0,r.jsx)(a(),{href:e.link,style:{textDecoration:"none"},children:(0,r.jsxs)(l,{className:"nes-pointer ".concat((i||o)&&"current"),children:[e.icon,(0,r.jsx)("p",{children:e.name})]})})}},37719:function(n,e,t){"use strict";t.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."},{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",imageBackgroun
1d:"#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."}],r=["home","leaderboards","monthly-challenge","project-showcase","30-nites-of-code","question-of-the-week"];function canMoveCommunityPost(n){return!r.includes(n)}function getMovableChannels(){return i.filter(n=>!r.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))}},49604:function(n,e,t){"use strict";t.r(e),t.d(e,{__N_SSG:function(){return _},default:function(){return create}});var i=t(85893),r=t(67294),o=t(11163),a=t(99428),s=t(27936),c=t(62069),l=t(82077),m=t(82729),d=t(19521),u=t(88215),h=t(9473),p=t(5434),g=t(41664),f=t.n(g),x=t(47010),b=t(12238),y=t.n(b),v=t(609),j=t(59378),w=t(73857),k=t(31935);function _templateObject(){let n=(0,m._)(["\n border-radius: 10px;\n color: rgba(255, 255, 255, 0.87);\n margin-top: 1rem;\n position: relative;\n\n "," {\n padding-bottom: 5rem;\n }\n\n ",' {\n padding-bottom: 0rem;\n }\n\n p {\n margin: 0px;\n font-family: "Work Sans", sans-serif;\n }\n\n .author {\n display: flex;\n align-items: center;\n gap: 1rem;\n margin-top: 2rem;\n margin-bottom: 1.5rem;\n\n img {\n width: 35px;\n height: 35px;\n border-radius: 50%;\n }\n\n p {\n font-weight: 600;\n line-height: 1;\n }\n\n .author-name {\n color: ',';\n }\n\n .username {\n color: rgba(128, 128, 128, 1);\n font-weight: 400;\n font-size: 14px;\n }\n\n .time-posted {\n color: rgba(128, 128, 128, 1);\n font-weight: 400;\n }\n }\n\n .post {\n .post-title {\n margin: 1rem auto;\n font-size: 21px;\n font-weight: 600;\n font-family: "Work Sans", sans-serif;\n }\n\n .post-content {\n max-height: 125px;\n overflow: hidden;\n\n p {\n font-family: "Work Sans", sans-serif;\n font-size: 17px;\n font-weight: 400;\n white-space: pre-line;\n }\n }\n\n pre {\n background-color: #1d2332 !important;\n }\n }\n\n .edit-view {\n margin-top: 1rem;\n display: flex;\n flex-direction: column;\n gap: 1rem;\n input {\n width: 100%;\n border: 2px solid\n ',";\n border-radius: 7px;\n padding: 0.7rem;\n color: ",';\n font-family: "Work Sans", sans-serif;\n background-color: ',";\n outline-width: 0;\n }\n\n .button-container {\n margin-top: 0.5rem;\n display: flex;\n justify-content: end;\n gap: 1rem;\n\n button {\n font-size: 11px;\n }\n }\n\n .text-container {\n position: relative;\n }\n\n .dropzone {\n margin-top: 1rem;\n background-color: ",";\n width: 272px;\n color: #209cee;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 7px;\n border: 3px dashed\n ",";\n\n transition-duration: 0.3s;\n\n p {\n margin: 0px;\n }\n\n .click-for-image {\n color: ",";\n text-align: center;\n font-size: 17px;\n font-style: normal;\n font-weight: 600;\n line-height: normal;\n transition-duration: 0.3s;\n\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 0.5rem;\n\n svg {\n path {\n transition-duration: 0.3s;\n fill: ",";\n }\n }\n }\n\n .zone {\n }\n\n :hover {\n border: 3px dashed #379cee;\n transition-duration: 0.3s;\n\n .click-for-image {\n color: #379cee;\n transition-duration: 0.3s;\n }\n\n svg {\n path {\n transition-duration: 0.3s;\n fill: #379cee;\n }\n }\n }\n }\n\n .dropped-file-preview {\n position: relative;\n margin-top: 10px;\n img,\n video {\n width: 100%;\n height: auto;\n border-radius: 7px;\n }\n\n .close-btn {\n all: unset;\n position: absolute;\n right: -13px;\n top: -12px;\n font-size: 25px;\n line-height: 0.8;\n transition-duration: 0.2s;\n padding: 0.2rem;\n border-radius: 50%;\n color: ",";\n\n :hover {\n background-color: #f86463;\n border-radius: 50%;\n cursor:\n url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAzElEQVRYR+2X0Q6AIAhF5f8/2jYXZkwEjNSVvVUjDpcrGgT7FUkI2D9xRfQETwNIiWO85wfINfQUEyxBG2ArsLwC0jioGt5zFcwF4OYDPi/mBYKm4t0U8ATgRm3ThFoAqkhNgWkA0jJLvaOVSs7j3qMnSgXWBMiWPXe94QqMBMBc1VZIvaTu5u5pQewq0EqNZvIEMCmxAawK0DNkay9QmfFNAJUXfgGgUkLaE7j/h8fnASkxHTz0DGIBMCnBeeM7AArpUd3mz2x3C7wADglA8BcWMZhZAAAAAElFTkSuQmCC)\n 14 0,\n pointer;\n }\n }\n }\n }\n"]);
1return _templateObject=function(){return n},n}let N=(0,r.lazy)(()=>Promise.all([t.e(2013),t.e(7603),t.e(286),t.e(6095),t.e(155),t.e(6207),t.e(3280),t.e(8515)]).then(t.bind(t,33280))),V=d.default.div.withConfig({componentId:"sc-fb434e7a-0"})(_templateObject(),n=>{let{theme:e}=n;return e.breakpoints.xs},n=>{let{theme:e}=n;return e.breakpoints.sm},n=>"dark"===n.theme.mode?"rgba(255, 255, 255, 0.87)":"black",n=>"dark"===n.theme.mode?"rgba(36, 76, 115, 1)":"#DADADA",n=>"dark"===n.theme.mode?"rgba(255, 255, 255, 0.87)":"black",n=>"dark"===n.theme.mode?"#0e1524":"#FFFFFF",n=>"dark"===n.theme.mode?"#1D2332":"#F6F6F6",n=>"dark"===n.theme.mode?"rgba(36, 76, 115, 1)":"#979797",n=>"dark"===n.theme.mode?"#244c73":"#979797",n=>"dark"===n.theme.mode?"#244c73":"#979797",n=>"dark"===n.theme.mode?"rgba(255, 255, 255, 0.87)":"black");var monthly_challenge_PostForm=function(n){var e;let{assignGuideNum:t}=n,a=(0,o.useRouter)(),s=new(y());s.removeWords("damn");let c=(0,h.v9)(v.f8),l=(0,h.v9)(v.zr),m=(0,h.v9)(v.I),d=localStorage.getItem("photoURL")||"",[u,g]=(0,r.useState)(""),[b,H]=(0,r.useState)(""),[S,C]=(0,r.useState)(!1),[D,_]=(0,r.useState)([]),[A,Z]=(0,r.useState)(""),[F,M]=(0,r.useState)(""),[B,O]=(0,r.useState)(!1);(0,r.useEffect)(()=>{let n=a.query.month,e=a.query.year;Z(n),M(e)},[a]);let z=(0,r.useCallback)(n=>{_(n)},[]);async function handleSubmit(n){n.preventDefault(),O(!0);let e=s.isProfane(u),t=s.isProfane(b);if(e||t){C(!0);return}0==D.length||D[0].type.includes("video")||D[0];let i=0!=D.length&&D[0].type.includes("video")?{video:D[0],thumbNail:null}:null;i&&await new Promise(n=>{let e=document.createElement("video");e.src=URL.createObjectURL(i.video),e.onloadedmetadata=()=>{n({width:e.videoWidth,height:e.videoHeight})}})}let E=(0,r.useMemo)(()=>{if(0!=D.length)return(0,i.jsx)("video",{src:URL.createObjectURL(D[0]),controls:!0})},[D]);return(0,i.jsxs)(V,{children:[(0,i.jsxs)("div",{className:"author",children:[(0,i.jsx)(f(),{href:l,legacyBehavior:!0,children:(0,i.jsx)("img",{src:d,alt:"author image",className:"nes-pointer"})}),(0,i.jsx)(f(),{href:l,legacyBehavior:!0,children:(0,i.jsxs)("div",{className:"nes-pointer",children:[(0,i.jsx)("p",{className:"author-name",children:m}),(0,i.jsxs)("p",{className:"username",children:["@",l]})]})})]}),(0,i.jsxs)("form",{className:"edit-view",onSubmit:n=>handleSubmit(n),children:[(0,i.jsx)("input",{value:u,onChange:n=>g(n.target.value),placeholder:"Title",onClick:()=>t(0)}),S&&(0,i.jsx)("div",{className:"profanity-alert",children:(0,i.jsx)("p",{children:"Cod\xe9dex is a community for all ages and groups. Please be considreate when making a post and remove any profanity."})}),(0,i.jsxs)("div",{className:"text-container",onClick:()=>t(1),children:[(0,i.jsx)(r.Suspense,{fallback:(0,i.jsx)("div",{children:"Loading..."}),children:(0,i.jsx)(N,{setPostMainContent:H,value:b})}),0===D.length&&(0,i.jsx)(j.Z,{file:D,handleDrop:z})]}),0!=D.length&&(0,i.jsxs)("div",{className:"dropped-file-preview",children:[(0,i.jsx)("button",{className:"close-btn nes-pointer",children:(0,i.jsx)(p.lTq,{onClick:()=>_([])})}),D[0].type.includes("video")?(0,i.jsx)(i.Fragment,{children:E}):(0,i.jsx)("img",{src:URL.createObjectURL(D[0]),alt:"Dropped"})," "]}),0!=D.length&&D[0].type.includes("video")&&(0,i.jsx)("div",{className:"videothumbnail",children:(0,i.jsx)("div",{className:"preview-tracker",children:(0,i.jsx)(k.Z,{textContent:"This is a test",uid:c,showTracker:B})})}),(0,i.jsx)("div",{className:"button-container",children:B?(0,i.jsx)(i.Fragment,{children:!(null===(e=D[0])||void 0===e?void 0:e.type.includes("video"))&&(0,i.jsx)(w.Z,{disabled:!0,children:(0,i.jsx)(x.Z,{color:"rgba(255, 255, 255)",size:"0.675rem"})})}):(0,i.jsx)(w.Z,{type:"submit",children:"Post"})})]})]})},H=t(35965);function CreateFeed_templateObject(){let n=(0,m._)(["\n "," {\n min-height: calc(100vh - 4.2rem);\n\n .community-banner {\n display: none;\n }\n\n .secondary-container {\n display: grid;\n grid-template-columns: 1fr;\n gap: 1rem;\n }\n\n .feed-container {\n padding-left: 1rem;\n padding-right: 1rem;\n .post-feed {\n display: grid;\n gap: 1rem;\n }\n }\n\n .right-sidebar {\n display: none;\n position: relative;\n\n .sticky-bar {\n position: sticky;\n top: 6rem;\n }\n }\n }\n\n "," {\n .community-banner {\n display: block;\n }\n\n .secondary-container {\n grid-template-columns: 1fr;\n }\n\n .feed-container {\n padding-left: 1rem;\n padding-right: 1rem;\n }\n\n .right-sidebar {\n display: none;\n }\n }\n\n "," {\n .secondary-container {\n grid-template-columns: 5fr 2.25fr;\n }\n\n .feed-container {\n padding-left: 0rem;\n padding-right: 0rem;\n }\n\n .right-sidebar {\n display: flex;\n }\n }\n"]);
1return CreateFeed_templateObject=function(){return n},n}let S=d.default.div.withConfig({componentId:"sc-831481f9-0"})(CreateFeed_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 monthly_challenge_CreateFeed=function(){let[n,e]=(0,r.useState)(null);return(0,i.jsxs)(S,{children:[(0,i.jsx)(u.Z,{}),(0,i.jsxs)("div",{className:"secondary-container",children:[(0,i.jsx)("div",{className:"x-container",children:(0,i.jsx)(monthly_challenge_PostForm,{assignGuideNum:function(n){e(n)}})}),(0,i.jsx)("div",{className:"right-sidebar",children:(0,i.jsx)("div",{className:"sticky-bar",children:(0,i.jsx)(H.Z,{guideNum:n,monthlyChallenge:!0})})})]})]})},C=t(51539),D=t(8956),_=!0,create=function(){let n=(0,o.useRouter)();(0,h.v9)(v.ot);let[e,t]=(0,r.useState)(!1),[m,d]=(0,r.useState)([]),u=function(n){let e=document.cookie.split(";");for(let t=0;t<e.length;t++){let i=e[t].trim();if(i.startsWith(n+"="))return i.substring(n.length+1)}return null}("codedextoken");if(!u||void 0===u){n.push("/community");return}return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.Z,{}),(0,i.jsx)(s.Z,{h1:"Meme Community"}),(0,i.jsx)(c.Z,{children:(0,i.jsxs)(D.Z,{children:[(0,i.jsxs)("div",{className:"discovery",children:[(0,i.jsx)("div",{className:"sticky-bar",children:(0,i.jsx)(l.Z,{path:n.pathname})}),(0,i.jsx)("button",{className:"create-post-btn nes-btn is-primary",onClick:()=>t(!0),children:"Create Post"})]}),(0,i.jsx)("div",{className:"main-container",children:(0,i.jsx)(monthly_challenge_CreateFeed,{})})]})}),(0,i.jsx)(C.Z,{})]})}}},function(n){n.O(0,[1272,8700,3874,955,6556,9570,5445,4153,1622,9280,2512,9428,7118,9774,2888,179],function(){return n(n.s=9633)}),_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.