1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3031],{97052:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/community/monthly-challenge/[month]",function(){return t(36837)}])},61837:function(n,e,t){"use strict";var i=t(82729),o=t(85893),a=t(19521),r=t(67294),s=t(11163),l=t(37719);function _templateObject(){let n=(0,i._)(["\n from {\n transform: scale(0.8);\n visibility: hidden;\n opacity: 0;\n } to {\n transform: scale(1);\n visibility: visible;\n opacity: 1;\n }\n"]);return _templateObject=function(){return n},n}function _templateObject1(){let n=(0,i._)(['\n z-index: 9999;\n position: fixed;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n top: 0px;\n left: 0px;\n background: rgba(0, 0, 0, 0.5);\n color: whitesmoke;\n font-family: "Work Sans", sans-serif;\n\n .form {\n position: relative;\n border: 2px solid rgba(36, 76, 115, 1);\n animation: ',' 0.2s ease-in;\n width: fit-content;\n max-width: 90%;\n height: fit-content;\n background: #1d2332;\n padding: 1rem;\n border-radius: 7px;\n\n p {\n margin: 0px;\n color: rgba(255, 255, 255, 0.87);\n margin-bottom: 1rem;\n }\n\n button {\n width: 100%;\n font-family: "Press Start 2P";\n font-size: 12px;\n }\n\n button:first-of-type {\n margin-bottom: 0.75rem;\n }\n\n .communities-link {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 1rem;\n margin: 1rem auto;\n\n button {\n all: unset;\n display: flex;\n align-items: center;\n gap: 0.5rem;\n color: ',";\n background: ",";\n\n cursor:\n url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAzElEQVRYR+2X0Q6AIAhF5f8/2jYXZkwEjNSVvVUjDpcrGgT7FUkI2D9xRfQETwNIiWO85wfINfQUEyxBG2ArsLwC0jioGt5zFcwF4OYDPi/mBYKm4t0U8ATgRm3ThFoAqkhNgWkA0jJLvaOVSs7j3qMnSgXWBMiWPXe94QqMBMBc1VZIvaTu5u5pQewq0EqNZvIEMCmxAawK0DNkay9QmfFNAJUXfgGgUkLaE7j/h8fnASkxHTz0DGIBMCnBeeM7AArpUd3mz2x3C7wADglA8BcWMZhZAAAAAElFTkSuQmCC)\n 14 0,\n pointer;\n\n padding: 10px;\n border-radius: 7px;\n\n img {\n width: 20px;\n height: 20px;\n border-radius: 50px;\n filter: none !important;\n }\n\n span {\n font-size: 17px;\n font-weight: 500;\n margin: 0px;\n }\n }\n\n .current-route {\n transition-duration: 0.25s;\n background: ",";\n }\n }\n }\n"]);return _templateObject1=function(){return n},n}let c=(0,a.keyframes)(_templateObject()),m=a.default.div.withConfig({componentId:"sc-6d73ed2d-0"})(_templateObject1(),c,n=>"dark"===n.theme.mode?"rgba(255, 255, 255, 0.87)":"black",n=>"dark"===n.theme.mode?"rgba(237, 231, 225, 0.1)":"rgba(237, 231, 225, 0.4)",n=>"dark"===n.theme.mode?"#007bff":"#CBE0FF");e.Z=function(n){let{community:e,postId:t,setShowChangeForm:i}=n,a=(0,s.useRouter)(),c=(0,l.Lm)(),[d,u]=(0,r.useState)(e),p=(0,r.useCallback)(async()=>{let n=await fetch("/api/community/changeCommunity",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({postId:t,communityName:e,newCommunity:d})}),o=await n.json().catch(()=>({}));if(!n.ok){console.error("Change community failed:",(null==o?void 0:o.error)||n.statusText);return}a.push("/admin/community/post/".concat(o.newDocId,"?communityName=").concat(o.communityName)),i(!1)},[e,t,d,a,i]);return(0,o.jsx)(m,{children:(0,o.jsxs)("div",{className:"form",children:[(0,o.jsx)("h2",{children:"Change Community"}),(0,o.jsx)("div",{className:"communities-link",children:c.map(n=>(0,o.jsxs)("button",{type:"button",className:"link-btn ".concat(d===n.internalName?"current-route":""),onClick:()=>u(n.internalName),children:[(0,o.jsx)("img",{src:n.imgSrc,alt:n.displayName}),(0,o.jsx)("span",{children:n.displayName})]},n.internalName))}),(0,o.jsx)("button",{type:"button",className:"nes-btn is-primary",style:{marginTop:".5rem"},onClick:()=>p(),children:"Change"}),(0,o.jsx)("button",{type:"button",className:"nes-btn",onClick:()=>i(!1),children:"cancel"})]})})}},27936:function(n,e,t){"use strict";var i=t(82729),o=t(85893),a=t(19521);
1function _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 r=a.default.main.withConfig({componentId:"sc-e8309d9d-0"})(_templateObject());e.Z=function(n){let{h1:e,description:t="",canonical:i=""}=n;return e?(0,o.jsxs)(r,{children:[(0,o.jsx)("h1",{children:e}),t?(0,o.jsx)("p",{className:"description",children:t}):null,i?(0,o.jsx)("link",{rel:"canonical",href:i}):null]}):null}},34909:function(n,e,t){"use strict";var i=t(85893),o=t(41664),a=t.n(o),r=t(11163);e.Z=function(){let n=(0,r.useRouter)();return(0,i.jsxs)("div",{className:"btn-container",children:[(0,i.jsx)(a(),{href:"/admin/community",legacyBehavior:!0,children:(0,i.jsx)("button",{className:"nes-pointer",children:(0,i.jsx)("p",{children:"All Reports"})})}),(0,i.jsx)("input",{type:"search",placeholder:"Search user",onKeyDown:e=>{if("Enter"===e.key){var t;t=e.target.value,n.push("/admin/community/profile/@".concat(t))}}}),(0,i.jsx)("input",{type:"search",placeholder:"Paste post link",onKeyDown:e=>{"Enter"===e.key&&function(e){let t=e.includes("://")?new URL(e).pathname:e,i=t.split("/").filter(Boolean);if("admin"===i[0]&&"community"===i[1]&&"post"===i[2]&&i[3]){n.push(t);return}let o=i.indexOf("community");if(-1===o)return;let a="general"===i[o+1]?"main":i[o+1],r="monthly-challenge"===i[o+1]&&"submission"===i[o+2]?i[o+3]:i[o+2];a&&"post"!==a&&r&&n.push("/admin/community/post/".concat(r,"?communityName=").concat(a))}(e.target.value)}}),(0,i.jsx)(a(),{href:"/admin/community/monthly-challenge",legacyBehavior:!0,children:(0,i.jsx)("button",{className:"nes-pointer",style:{marginTop:"5rem"},children:(0,i.jsx)("p",{children:"Monthly Challenge"})})})]})}},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."}],o=["home","leaderboards","monthly-challenge","project-showcase","30-nites-of-code","question-of-the-week"];function canMoveCommunityPost(n){return!o.includes(n)}function getMovableChannels(){return i.filter(n=>!o.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))}},8965:function(n,e,t){"use strict";t.d(e,{$:function(){return adminUpdate}});var i=t(39828),o=t(92369);async function adminUpdate(n,e,t){if(!e)throw Error("postId and uid are required fields.");let{firestore:a}=(0,o.UM)();try{let o=(0,i.JU)(a,"community",n,"posts",e);return await (0,i.r7)(o,t),{status:200,message:"Post updated successfully."}}catch(n){throw Error("Error updating post: "+n.message)}}},36837:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return _month_}});var i=t(82729),o=t(85893),a=t(19521),r=t(67294),s=t(11163),l=t(62069),c=t(99428),m=t(27936),d=t(25935),u=t(41664),p=t.n(u),h=t(25670),g=t(72163),f=t(61837),y=t(63877),b=t(8965);function _templateObject(){let n=(0,i._)(["\n display: flex;\n justify-content: center;\n margin-top: 5rem;\n img {\n width: 75px;\n height: auto;\n }\n"]);return _templateObject=function(){return n},n}function _templateObject1(){let n=(0,i._)(["\n /* border: 2px solid rgba(36, 76, 115, 1); */\n border-radius: 10px;\n /* background: #1d2332; */\n color: ",';\n margin-top: 0rem;\n padding: 1rem;\n position: relative;\n max-width: 650px;\n\n .dropdown-container {\n position: absolute;\n top: 5px;\n right: 10px;\n\n .dropdown-toggle {\n position: relative;\n\n .dropdown {\n right: 0px;\n position: absolute;\n width: 200px;\n height: fit-content;\n background-color: #1d2331;\n border-radius: 7px;\n overflow: hidden;\n\n button {\n all: unset;\n width: 100%;\n display: flex;\n align-items: center;\n gap: 0.5rem;\n padding: 10px;\n font-size: 10px;\n font-weight: 600;\n font-size: 15px;\n font-family: "Work Sans", sans-serif;\n\n :hover {\n cursor: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAzElEQVRYR+2X0Q6AIAhF5f8/2jYXZkwEjNSVvVUjDpcrGgT7FUkI2D9xRfQETwNIiWO85wfINfQUEyxBG2ArsLwC0jioGt5zFcwF4OYDPi/mBYKm4t0U8ATgRm3ThFoAqkhNgWkA0jJLvaOVSs7j3qMnSgXWBMiWPXe94QqMBMBc1VZIvaTu5u5pQewq0EqNZvIEMCmxAawK0DNkay9QmfFNAJUXfgGgUkLaE7j/h8fnASkxHTz0DGIBMCnBeeM7AArpUd3mz2x3C7wADglA8BcWMZhZAAAAAElFTkSuQmCC)\n 14 0,\n pointer;\n background-color: rgba(237, 231, 225, 0.1);\n }\n }\n\n .delete-btn {\n color: #e76e55;\n\n :hover {\n background-color: #e76e55;\n color: whitesmoke;\n }\n }\n\n .update {\n all: unset;\n width: 100%;\n display: flex;\n align-items: center;\n gap: 0.5rem;\n padding: 10px;\n font-size: 10px;\n font-weight: 600;\n font-size: 15px;\n font-family: "Work Sans", sans-serif;\n }\n }\n }\n }\n\n p {\n margin: 0px;\n font-family: "Work Sans", sans-serif;\n }\n .author {\n display: flex;
1\n align-items: center;\n gap: 1rem;\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 .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 .post-image-container {\n margin: 1rem auto;\n img {\n width: 100%;\n height: auto;\n border-radius: 7px;\n }\n }\n }\n\n .actions {\n margin-top: 1.5rem;\n display: flex;\n gap: 1rem;\n button {\n flex: 1;\n font-size: 10px;\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 rgba(36, 76, 115, 1);\n border-radius: 7px;\n padding: 0.7rem;\n color: whitesmoke;\n font-family: "Work Sans", sans-serif;\n background-color: #0e1524;\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 textarea {\n /* reset styling */\n border: none;\n outline: none;\n -webkit-box-shadow: none;\n -moz-box-shadow: none;\n box-shadow: none;\n resize: none;\n /* end reset styling */\n border: 2px solid\n ',";\n border-radius: 5px;\n padding-left: 1rem;\n padding-right: 1rem;\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n background: ",';\n font-family: "Work Sans", sans-serif;\n color: ',";\n flex: 1;\n width: 100%;\n height: auto;\n min-height: 400px;\n max-height: 400px;\n overflow-y: auto;\n }\n }\n"]);return _templateObject1=function(){return n},n}let x=(0,r.lazy)(()=>Promise.all([t.e(2013),t.e(7603),t.e(155),t.e(6207),t.e(3280),t.e(128)]).then(t.bind(t,33280)));a.default.div.withConfig({componentId:"sc-dd0f3d92-0"})(_templateObject());let w=a.default.div.withConfig({componentId:"sc-dd0f3d92-1"})(_templateObject1(),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?"#0f1524":"",n=>"dark"===n.theme.mode?"rgba(255, 255, 255, 0.87)":"dark");var monthly_challenge_MonthPostView=function(n){let{postData:e,communityName:t}=n,i=(0,s.useRouter)(),[a,l]=(0,r.useState)(!1),[c,m]=(0,r.useState)(!1),[u,k]=(0,r.useState)(null==e?void 0:e.title),[j,v]=(0,r.useState)(e.challengeWinner),[N,A]=(0,r.useState)(null==e?void 0:e.content),[C,S]=(0,r.useState)(!1);async function handleUpdate(){if(j){let n=await (0,b.$)(e.communityName,e.id,{title:u,content:N,challengeWinner:j});200===n.status&&i.reload(),i.reload()}else{let n=await (0,b.$)(e.communityName,e.id,{title:u,content:N});200===n.status&&i.reload(),i.reload()}}return(console.log(e),(0,r.useEffect)(()=>{k(null==e?void 0:e.title),A(null==e?void 0:e.content),v(e.challengeWinner)},[e]),(0,r.useEffect)(()=>{let n=i.query.phase;"edit"===n&&S(!0)},[i]),console.log({winner:j}),e.authorData)?(0,o.jsxs)(w,{children:[c&&(0,o.jsx)(f.Z,{community:e.communityName,postId:e.id,setShowChangeForm:m}),(0,o.jsxs)("div",{className:"author",children:[(0,o.jsx)(p(),{href:"/@".concat(e.authorData.username),legacyBehavior:!0,children:(0,o.jsx)("img",{src:e.authorData.photoURL,alt:"author image",className:"nes-pointer"})}),(0,o.jsx)(p(),{href:"/@".concat(e.authorData.username),legacyBehavior:!0,children:(0,o.jsxs)("div",{className:"nes-pointer",children:[(0,o.jsx)("p",{className:"author-name",children:e.authorData.name}),(0,o.jsxs)("p",{className:"username",children:["@",e.authorData.username]})]})}),(0,o.jsx)("p",{className:"time-posted",children:(0,y.F)(e.createdAt)})]}),C?(0,o.jsxs)("div",{className:"edit-view",children:[(0,o.jsx)("input",{value:u,onChange:n=>k(n.target.value)}),(0,o.jsx)(r.Suspense,{fallback:(0,o.jsx)("div",{children:"Loading..."}),children:(0,o.jsx)(x,{setPostMainContent:A,value:N})}),(0,o.jsx)("input",{value:j,onChange:n=>v(n.target.value),placeholder:"Enter winners uid"}),(0,o.jsxs)("div",{className:"button-container",children:[(0,o.jsx)("button",{type:"submit",className:"nes-btn",onClick:()=>S(!C),children:"Cancel"}),(0,o.jsx)("button",{type:"submit",className:"nes-btn is-warning",onClick:()=>handleUpdate(),children:"Save"})]})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"post",children:[(0,o.jsx)("h2",{className:"post-title",children:e.title}),(0,o.jsx)(g.Z,{children:(0,d.ZP)(e.content)}),0!=e.images.length&&(0,o.jsx)("div",{className:"post-image-container",children:(0,o.jsx)("img",{src:e.images[0].url,alt:"post images"})})]}),(0,o.jsxs)("div",{className:"actions",children:[(0,o.jsx)("button",{className:"nes-btn is-warning",onClick:()=>S(!C),children:"Edit"}),(0,o.jsx)("button",{className:"nes-btn is-error",onClick:()=>l(!0),children:"Delete"})]})]})]}):(0,o.jsx)(h.Z,{})},k=t(34909);
1function _month_templateObject(){let n=(0,i._)(["\n ",' {\n margin-top: 4rem;\n display: grid;\n grid-template-columns: 1fr;\n gap: 3rem;\n padding-bottom: 3rem;\n margin-left: 0rem;\n margin-right: 0rem;\n\n .discovery {\n display: none;\n position: relative;\n .sticky-bar {\n position: sticky;\n top: 6.3rem;\n }\n\n .create-post-btn {\n position: fixed;\n width: 226px;\n top: 93%;\n font-size: 12px;\n }\n\n input {\n width: 100%;\n border: 2px solid rgba(36, 76, 115, 1);\n border-radius: 7px;\n padding: 0.7rem;\n color: whitesmoke;\n font-family: "Work Sans", sans-serif;\n background-color: #0e1524;\n outline-width: 0;\n }\n }\n\n .main-container {\n margin-top: 2rem;\n\n .reported-posts-container {\n display: grid;\n gap: 1.5rem;\n }\n\n .header {\n margin-bottom: 2rem;\n margin-left: 1rem;\n font-size: 20px;\n color: ',";\n }\n\n .dropdown-container {\n display: none !important ;\n }\n\n .stats-component {\n display: none;\n }\n }\n }\n\n "," {\n grid-template-columns: 1.3fr 5fr;\n margin-left: 1rem;\n margin-right: 1rem;\n\n .discovery {\n display: block;\n }\n }\n ",' {\n margin-left: 0rem;\n margin-right: 0rem;\n\n .sticky-bar {\n .btn-container {\n display: grid;\n gap: 1rem;\n\n button {\n background: none;\n border: none;\n outline: none;\n height: 38px;\n width: 100%;\n border-radius: 8px;\n display: flex;\n align-items: center;\n gap: 0.5rem;\n transition-duration: 0.2s;\n position: relative;\n\n p {\n margin: 0px;\n font-family: "Work Sans", sans-serif;\n font-size: 19px;\n font-weight: 600;\n color: ',";\n }\n }\n\n button:hover {\n background: ",";\n }\n }\n }\n }\n"]);return _month_templateObject=function(){return n},n}let j=a.default.div.withConfig({componentId:"sc-28fbf9a0-0"})(_month_templateObject(),n=>{let{theme:e}=n;return e.breakpoints.xs},n=>"dark"===n.theme.mode?"rgba(255, 255, 255, 0.87)":"black",n=>{let{theme:e}=n;return e.breakpoints.sm},n=>{let{theme:e}=n;return e.breakpoints.md},n=>"dark"===n.theme.mode?"rgba(255, 255, 255, 0.87)":"black",n=>"dark"===n.theme.mode?"rgba(237, 231, 225, 0.1)":"rgba(237, 231, 225, 0.4)");var _month_=function(){let n=(0,s.useRouter)(),[e,t]=(0,r.useState)({});return(0,r.useEffect)(()=>{if(!n.isReady)return;let e=n.query.month;(async function(){try{let n=await fetch("/api/community/getSinglePost",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({postID:e,communityName:"monthly-challenge"})});if(!n.ok)throw Error("Network response was not ok");let i=await n.json();t(i.post)}catch(n){console.error("Error fetching post:",n)}})()},[n]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(c.Z,{}),(0,o.jsx)(m.Z,{h1:"Community"}),(0,o.jsx)(l.Z,{children:(0,o.jsxs)(j,{children:[(0,o.jsx)("div",{className:"discovery",children:(0,o.jsx)("div",{className:"sticky-bar",children:(0,o.jsx)(k.Z,{})})}),(0,o.jsxs)("div",{className:"main-container",children:[(0,o.jsx)("h2",{className:"header",children:"Community Admin:"}),(0,o.jsx)("div",{className:"reported-posts-container",children:e&&(0,o.jsx)(monthly_challenge_MonthPostView,{postData:e,communityName:n.query.communityName})})]})]})})]})}}},function(n){n.O(0,[1272,8700,1057,3777,4153,1622,9280,286,6095,8849,9428,2163,9774,2888,179],function(){return n(n.s=97052)}),_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.