PageSourceSearch

https://www.codedex.io/_next/static/chunks/pages/community/[...post]-a8d68ec33db71420.js

js codedex.io collected 2026-09-25 14:56:01 UTC 10,712 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[107],{46100:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/community/[...post]",function(){return t(63675)}])},85712:function(n,e,t){"use strict";var l=t(85893);e.Z=function(n){let{color:e="#64748B",...t}=n;return(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",...t,children:(0,l.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"})})}},74796:function(n,e,t){"use strict";var l=t(82729),r=t(85893),o=t(19521);function _templateObject(){let n=(0,l._)(["\n  background-color: ",';\n  font-family: "Mulish", sans-serif;\n  padding-top: 3.9rem;\n\n  p {\n    margin: 0px;\n  }\n  display: flex;\n\n  '," {\n    .desktop-community-nav {\n      display: none;\n    }\n  }\n\n  "," {\n    .desktop-community-nav {\n      display: none;\n    }\n  }\n\n  "," {\n    .desktop-community-nav {\n      display: none;\n    }\n  }\n\n  "," {\n    .desktop-community-nav {\n      display: flex;\n    }\n  }\n"]);return _templateObject=function(){return n},n}let i=o.default.div.withConfig({componentId:"sc-f4a70080-0"})(_templateObject(),n=>{let{theme:e}=n;return e.colors.background.grey.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.md},n=>{let{theme:e}=n;return e.breakpoints.lg});e.Z=function(n){let{children:e}=n;return(0,r.jsx)(i,{children:e})}},72264:function(n,e,t){"use strict";var l=t(82729),r=t(85893),o=t(19521),i=t(41664),a=t.n(i),c=t(11163),s=t(67294),u=t(609),d=t(9473);function _templateObject(){let n=(0,l._)(["\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 p=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)(),l=(0,d.v9)(u.f8),o=t.asPath.includes("community/".concat(null==e?void 0:e.internalName)),i=(0,s.useMemo)(()=>JSON.parse(sessionStorage.getItem("newPostToSee-".concat(null==e?void 0:e.internalName)))||!1,[null==e?void 0:e.internalName]),[m,h]=(0,s.useState)(i);return(0,s.useEffect)(()=>{async function channelReadStatus(){let n=await fetch("/api/community/getChannelReadStatus?communityName=".concat(null==e?void 0:e.internalName,"&uid=").concat(l)),t=await n.json(),r=t.read;h(!r)}l&&channelReadStatus()},[null==e?void 0:e.internalName,l]),(0,s.useEffect)(()=>{sessionStorage.setItem("newPostToSee-".concat(null==e?void 0:e.internalName),JSON.stringify(m))},[m,null==e?void 0:e.internalName]),(0,s.useEffect)(()=>{let n=t.query.channel===(null==e?void 0:e.internalName);m&&n&&h(!1)},[t.query.channel,m,null==e?void 0:e.internalName]),(0,r.jsx)(a(),{href:"/community/".concat(e.internalName),style:{textDecoration:"none"},children:(0,r.jsxs)(p,{className:"nes-pointer ".concat(o&&"current"),children:[m&&l&&(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 l=t(82729),r=t(85893),o=t(19521),i=t(37719),a=t(78777),c=t(85712),s=t(61716),u=t(72264);
1function _templateObject(){let n=(0,l._)(["\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)(a.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,i.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)(s.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)(u.Z,{channel:n},n.internalName))})]})]})}},61716:function(n,e,t){"use strict";var l=t(82729),r=t(85893),o=t(41664),i=t.n(o),a=t(11163),c=t(19521);function _templateObject(){let n=(0,l._)(["\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 s=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,a.useRouter)(),l=t.asPath.includes(null==e?void 0:e.internalName),o="/community"===t.asPath&&"Home"===e.name;return(0,r.jsx)(i(),{href:e.link,style:{textDecoration:"none"},children:(0,r.jsxs)(s,{className:"nes-pointer ".concat((l||o)&&"current"),children:[e.icon,(0,r.jsx)("p",{children:e.name})]})})}},63675:function(n,e,t){"use strict";t.r(e),t.d(e,{__N_SSG:function(){return u}});
1var l=t(85893),r=t(99428),o=t(74796),i=t(82077),a=t(56403),c=t(52861),s=t(98426),u=!0;e.default=function(n){let{post:e}=n;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r.Z,{learningEnv:"community"}),(0,l.jsxs)(o.Z,{children:[(0,l.jsx)(i.Z,{}),(0,l.jsxs)(c.Z,{className:"single-post-feed",children:[(0,l.jsx)(a.Z,{post:e}),(0,l.jsx)(s.Z,{authorData:null==e?void 0:e.authorData,postId:null==e?void 0:e.postId,communityName:null==e?void 0:e.communityName})]})]})]})}}},function(n){n.O(0,[1272,8700,1057,3777,2013,5937,7603,4090,4153,1622,9280,286,6095,8849,2512,959,719,9428,2163,6207,5884,4561,8325,5388,4456,227,6131,9774,2888,179],function(){return n(n.s=46100)}),_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.