PageSourceSearch

https://www.codedex.io/_next/static/chunks/pages/admin/community/monthly-challenge-72fb3a9e45cb6995.js

js codedex.io collected 2026-09-25 14:55:11 UTC 8,933 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4555],{17042:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/community/monthly-challenge",function(){return t(40967)}])},27936:function(n,e,t){"use strict";var i=t(82729),r=t(85893),a=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 o=a.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)(o,{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}},34909:function(n,e,t){"use strict";var i=t(85893),r=t(41664),a=t.n(r),o=t(11163);e.Z=function(){let n=(0,o.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 r=i.indexOf("community");if(-1===r)return;let a="general"===i[r+1]?"main":i[r+1],o="monthly-challenge"===i[r+1]&&"submission"===i[r+2]?i[r+3]:i[r+2];a&&"post"!==a&&o&&n.push("/admin/community/post/".concat(o,"?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"})})})]})}},46828:function(n,e,t){"use strict";var i=t(82729),r=t(85893),a=t(19521),o=t(74774),s=t(41664),l=t.n(s);function _templateObject(){let n=(0,i._)(["\n  ",' {\n    min-height: calc(100vh - 4.2rem);\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      display: grid;\n      gap: 2rem;\n      .post-feed {\n        display: grid;\n        gap: 0.5rem;\n      }\n\n      .single-post {\n        h3 {\n          font-family: "Work Sans", sans-serif;\n          color: rgba(255, 255, 255, 0.87);\n          font-size: 22px;\n          margin-bottom: 0.5rem;\n        }\n      }\n    }\n\n    .right-sidebar {\n      display: none;\n      position: relative;\n\n      .sticky-bar {\n        position: sticky;\n        top: 6rem;\n        height: fit-content;\n\n        .create-link {\n          font-family: "Work Sans", sans-serif;\n          color: rgba(255, 255, 255, 0.87);\n          text-align: center;\n          background-color: #007bff;\n          border-radius: 7px;\n          padding: 0.5rem;\n          margin: auto 1rem;\n          p {\n            margin: 0px;\n            font-weight: 500;\n          }\n        }\n      }\n    }\n  }\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"]);return _templateObject=function(){return n},n}let c=a.default.div.withConfig({componentId:"sc-ee046cbb-0"})(_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});e.Z=function(n){var e,t,i;let{allPosts:a}=n;return(0,r.jsx)(c,{children:(0,r.jsxs)("div",{className:"secondary-container",children:[(0,r.jsxs)("div",{className:"feed-container",children:[(null===(e=a[0])||void 0===e?void 0:e.submissionMonth)&&(0,r.jsxs)("h3",{style:{color:"whitesmoke"},children:[(null===(t=a[0])||void 0===t?void 0:t.submissionMonth.charAt(0).toUpperCase())+(null===(i=a[0])||void 0===i?void 0:i.submissionMonth.slice(1))," ","Submissions:"]}),a&&a.map((n,e)=>(0,r.jsxs)("div",{className:"single-post",children:[n.challengeMonth&&(0,r.jsxs)("h3",{children:[n.challengeMonth.charAt(0).toUpperCase()+n.challengeMonth.slice(1)," ","Challenge:"]}),(0,r.jsx)(o.Z,{postData:n,communityName:n.communityName,link:"/admin/community/monthly-challenge/".concat(n.postId),index:e})]},e))]}),(0,r.jsx)("div",{className:"right-sidebar",children:(0,r.jsx)("div",{className:"sticky-bar",children:(0,r.jsx)(l(),{href:"/admin/community/monthly-challenge/create-challenge",legacyBehavior:!0,children:(0,r.jsx)("div",{className:"create-link nes-pointer",children:(0,r.jsx)("p",{children:"+ Create Monthly Challenge"})})})})})]})})}},40967:function(n,e,t){"use strict";t.r(e);var i=t(82729),r=t(85893),a=t(19521),o=t(67294),s=t(11163),l=t(62069),c=t(99428),m=t(27936),d=t(46828),h=t(34909);
1function _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    min-height: 100vh;\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      h2 {\n        margin-bottom: 2rem;\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\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 _templateObject=function(){return n},n}let p=a.default.div.withConfig({componentId:"sc-93c47804-0"})(_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)");e.default=function(){(0,s.useRouter)();let[n,e]=(0,o.useState)([]),[t,i]=(0,o.useState)(!1),a=(0,o.useCallback)(async()=>{let n=await fetch("/api/community/monthly-challenge/getChallenges?communityName=monthly-challenge"),t=await n.json();t.posts.length<9&&i(!0),e(t.posts)},[]);return(0,o.useEffect)(()=>{a()},[a]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c.Z,{}),(0,r.jsx)(m.Z,{h1:"Community"}),(0,r.jsx)(l.Z,{children:(0,r.jsxs)(p,{children:[(0,r.jsx)("div",{className:"discovery",children:(0,r.jsx)("div",{className:"sticky-bar",children:(0,r.jsx)(h.Z,{})})}),(0,r.jsxs)("div",{className:"main-container",children:[(0,r.jsx)("h2",{className:"header",children:"Community Admin:"}),(0,r.jsx)("div",{className:"reported-posts-container",children:(0,r.jsx)(d.Z,{allPosts:n})})]})]})})]})}}},function(n){n.O(0,[1272,8700,1057,3777,4617,2013,5937,4153,1622,9280,286,6095,8849,719,9428,2163,6490,463,9774,2888,179],function(){return n(n.s=17042)}),_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.