PageSourceSearch

https://www.codedex.io/_next/static/chunks/pages/community/monthly-challenge/[jam]-6c3b22b53b4174be.js

js codedex.io collected 2026-10-03 20:13:13 UTC 49,175 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8127,5388],{98202:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/community/monthly-challenge/[jam]",function(){return t(20200)}])},44510:function(n,e,t){"use strict";var l=t(67294),i=t(11163);e.Z=function(n){let{community:e,filter:t,refreshTrigger:r=null}=n,o=(0,i.useRouter)(),[s,a]=(0,l.useState)([]),[c,d]=(0,l.useState)(!1),[u,p]=(0,l.useState)(1);return(0,l.useEffect)(()=>{async function getCommunityPosts(){let n="".concat(e,"-").concat(t.internalName,"-").concat(r),l=JSON.parse(sessionStorage.getItem(n));if((null==l?void 0:l.posts)||(l={}),l.posts)a(null==l?void 0:l.posts),p(null==l?void 0:l.currentPage),(null==l?void 0:l.posts.length)===0&&d(!0);else{let i=t.api,r=await fetch(i),o=await r.json(),s=o.posts;l={posts:[...s],currentPage:"leaderboards"===e?null==o?void 0:o.lastUserId:1},sessionStorage.setItem(n,JSON.stringify({...l})),a(s),p(1),0===s.length&&d(!0)}}a([]),getCommunityPosts()},[e,null==t?void 0:t.api,null==t?void 0:t.internalName,r]),(0,l.useEffect)(()=>{function logScrollPosition(){let n="".concat(e,"-").concat(t.internalName,"-").concat(r,"-scroll");0!=window.scrollY&&sessionStorage.setItem(n,JSON.stringify(window.scrollY))}return window.addEventListener("scroll",logScrollPosition),()=>{window.removeEventListener("scroll",logScrollPosition)}},[o.asPath,e,t.internalName,r]),{posts:s,noMorePosts:c,currentPage:u}}},36794:function(n,e,t){"use strict";var l=t(85893);e.Z=function(n){let{color:e="black",...t}=n;return(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",...t,children:[(0,l.jsx)("path",{d:"M7.16602 4.16699H8.83268V5.83366H7.16602V4.16699Z",fill:"white"}),(0,l.jsx)("path",{d:"M5.49935 5.83366H7.16602V7.50033H5.49935V5.83366Z",fill:"white"}),(0,l.jsx)("path",{d:"M3.83268 7.50033H5.49935V9.16699H3.83268V7.50033Z",fill:"white"}),(0,l.jsx)("path",{d:"M2.16602 9.16699H3.83268V10.8337H2.16602V9.16699Z",fill:"white"}),(0,l.jsx)("path",{d:"M3.83268 10.8337H5.49935V12.5003H3.83268V10.8337Z",fill:"white"}),(0,l.jsx)("path",{d:"M5.49935 12.5003H7.16602V14.167H5.49935V12.5003Z",fill:"white"}),(0,l.jsx)("path",{d:"M7.16602 14.167H8.83268V15.8337H7.16602V14.167Z",fill:"white"}),(0,l.jsx)("path",{d:"M13.8327 4.16699H12.166V5.83366H13.8327V4.16699Z",fill:"white"}),(0,l.jsx)("path",{d:"M15.4993 5.83366H13.8327V7.50033H15.4993V5.83366Z",fill:"white"}),(0,l.jsx)("path",{d:"M17.166 7.50033H15.4993V9.16699H17.166V7.50033Z",fill:"white"}),(0,l.jsx)("path",{d:"M18.8327 9.16699H17.166V10.8337H18.8327V9.16699Z",fill:"white"}),(0,l.jsx)("path",{d:"M17.166 10.8337H15.4993V12.5003H17.166V10.8337Z",fill:"white"}),(0,l.jsx)("path",{d:"M15.4993 12.5003H13.8327V14.167H15.4993V12.5003Z",fill:"white"}),(0,l.jsx)("path",{d:"M13.8327 14.167H12.166V15.8337H13.8327V14.167Z",fill:"white"})]})}},76543: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:"24",viewBox:"0 0 24 24",fill:"none",...t,children:(0,l.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:e})})}},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"})})}},79304:function(n,e,t){"use strict";var l=t(67294),i=t(11163);e.Z=function(n){let{post:e,comments:t,isLoading:r,setComments:o,collection:s="community"}=n,a=(0,i.useRouter)(),[c,d]=(0,l.useState)(null),[u,p]=(0,l.useState)(null),m=(0,l.useRef)(!1),f=(0,l.useRef)(null),h=(0,l.useRef)(t);(0,l.useEffect)(()=>{h.current=t},[t]),(0,l.useEffect)(()=>()=>{f.current&&clearInterval(f.current)},[]);let x=(0,l.useCallback)(function(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=0;f.current&&clearInterval(f.current),f.current=setInterval(()=>{t+=1;
1let l=document.getElementById("comment-".concat(n))||(e?document.getElementById("comment-".concat(e)):null);l?(clearInterval(f.current),f.current=null,l.scrollIntoView({behavior:"smooth",block:"center"})):t>=20&&(clearInterval(f.current),f.current=null)},150)},[]);return(0,l.useEffect)(()=>{if(!a.isReady||m.current||!(null==e?void 0:e.postId)||r)return;let n=function(n){let e=n.split("#")[1];return e&&e.startsWith("comment-")?e.replace("comment-",""):null}(a.asPath);if(!n){m.current=!0;return}m.current=!0;let t=h.current.find(e=>e.postId===n);if(t){d(n),x(n);return}(async function(){try{let t=await fetch("/api/community/getCommentContext",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({commentId:n,communityName:e.communityName,collection:s})});if(!t.ok)throw Error("Linked comment not found");let{comment:l,parentComment:i}=await t.json(),r=i||l;o(n=>n.some(n=>n.postId===r.postId)?n:[r,...n]),i&&p(i.postId),d(n),x(n,null==i?void 0:i.postId)}catch(n){console.error("Error resolving linked comment:",n)}})()},[a.isReady,a.asPath,null==e?void 0:e.postId,null==e?void 0:e.communityName,r,s,o,x]),{highlightedCommentId:c,expandedCommentId:u}}},86121:function(n,e,t){"use strict";var l=t(82729),i=t(85893),r=t(19521),o=t(67294),s=t(62286),a=t.n(s),c=t(41664),d=t.n(c),u=t(11163);function _templateObject(){let n=(0,l._)(["\n  display: flex;\n  align-items: center;\n  margin: 0px 20px;\n  border-bottom: 2px solid ",';\n  font-family: "Mulish", sans-serif;\n  max-width: calc(100vw - 2rem);\n  overflow-x: auto;\n\n  p {\n    margin: 0px;\n  }\n\n  .channel-filter {\n    padding: 10px 8px;\n    border-bottom: 2px solid transparent;\n\n    .filter-text {\n      padding: 8px 12px;\n      color: ',";\n      font-size: 16px;\n      font-weight: 600;\n      line-height: 150%;\n      border-radius: 4px;\n      min-width: var(--min-width);\n      white-space: nowrap;\n\n      span {\n        /* padding: 2px 6px; */\n        border-radius: 50%;\n        background: ",";\n        font-size: 12px;\n        font-style: normal;\n        font-weight: 700;\n        line-height: normal;\n      }\n    }\n\n    :hover {\n      .filter-text {\n        background: ",";\n        color: ",";\n      }\n    }\n  }\n\n  .current-filter {\n    border-bottom: 2px solid #14adff;\n    .filter-text {\n      font-weight: 700;\n      color: ",";\n\n      span {\n        background: #0080d4;\n        color: #fff;\n      }\n    }\n  }\n  a {\n    text-decoration: none;\n  }\n"]);return _templateObject=function(){return n},n}let p=r.default.div.withConfig({componentId:"sc-263766b4-0"})(_templateObject(),n=>{let{theme:e}=n;return e.colors.border.grey.light},n=>{let{theme:e}=n;return e.colors.text.tertiary},n=>n.theme.colors.border.grey.light,n=>n.theme.colors.background.grey.tertiary,n=>{let{theme:e}=n;return e.colors.text.accent.blue},n=>{let{theme:e}=n;return e.colors.text.primary});e.Z=function(n){let{filters:e,currentFilter:t,setCurrentFilter:l}=n,r=a().get().codedextoken||"",s=(0,o.useRef)({}),c=(0,u.useRouter)(),m=c.asPath.replace(/\/(submissions|winners)(\/)?$/,"");return(0,o.useEffect)(()=>{Object.values(e).forEach(n=>{let e=s.current[n.internalName];if(e){let n=e.style.fontWeight;e.style.fontWeight="700";let t=e.scrollWidth;e.style.fontWeight=n,e.style.setProperty("--min-width","".concat(t,"px"))}})},[e]),(0,i.jsx)(p,{className:"community-feed-filters",children:Object.values(e).map(n=>{if(((null==n?void 0:n.disableOnLogout)!=!0||r)&&(null==n?void 0:n.disable)!=!0)return(null==m?void 0:m.includes("monthly-challenge"))?(0,i.jsx)(d(),{href:"".concat(m,"/").concat(n.link),children:(0,i.jsx)("div",{className:"channel-filter nes-pointer ".concat(t===n.internalName?"current-filter":""),onClick:()=>l(n.internalName),children:(0,i.jsxs)("p",{className:"filter-text",ref:e=>{s.current[n.internalName]=e},children:[n.displayText," ",(null==n?void 0:n.num)&&(0,i.jsx)("span",{style:{padding:(null==n?void 0:n.num)>=10?"3px 4px":"2px 6px"},children:null==n?void 0:n.num})]})})},n.internalName):(0,i.jsx)("div",{className:"channel-filter nes-pointer ".concat(t===n.internalName?"current-filter":""," ").concat(n.internalName),onClick:()=>l(n.internalName),children:(0,i.jsxs)("p",{className:"filter-text",ref:e=>{s.current[n.internalName]=e},children:[n.displayText," ",(null==n?void 0:n.num)&&(0,i.jsx)("span",{style:{padding:(null==n?void 0:n.num)>=10?"3px 4px":"2px 6px"},children:null==n?void 0:n.num})]})},n.internalName)})})}},5309:function(n,e,t){"use strict";
1var l=t(82729),i=t(85893),r=t(19521);function _templateObject(){let n=(0,l._)(["\n  width: 100%;\n  height: clamp(100px, 16vw, 140px);\n  overflow: hidden;\n  position: relative;\n  background-position: top center;\n\n  &.custom {\n    background-size: cover;\n    background-repeat: no-repeat;\n    background-position: center;\n  }\n\n  &.fallback {\n    background-size: auto 1050%;\n    background-repeat: repeat-x;\n  }\n"]);return _templateObject=function(){return n},n}let o=r.default.div.withConfig({componentId:"sc-e3919e9a-0"})(_templateObject());e.Z=function(n){let{image:e=null,isCustom:t=!1}=n;return e?(0,i.jsx)(o,{className:t?"custom":"fallback",style:{backgroundImage:'url("'.concat(e,'")')}}):null}},21229:function(n,e,t){"use strict";t.d(e,{C:function(){return i},d:function(){return l}});let l={code:{displayName:"Code Jam",internaleName:"code"},design:{displayName:"Design Jam",internaleName:"design"},hackathon:{displayName:"Hackathon",internaleName:"hackathon"},fun:{displayName:"Just for fun",internaleName:"fun"},miscellaneous:{displayName:"Miscellaneous",internaleName:"miscellaneous"}},i=Object.values(l)},80334:function(n,e,t){"use strict";var l=t(82729),i=t(85893),r=t(19521),o=t(9473),s=t(609),a=t(46331),c=t(67294),d=t(73845),u=t(3649);function _templateObject(){let n=(0,l._)(['\n  flex-shrink: 0;\n  position: relative;\n  display: flex;\n  flex-direction: column;\n  gap: 12px;\n  z-index: 4;\n  font-family: "Mulish", sans-serif;\n\n  &.small {\n    .toggle {\n      padding: 6px 10px;\n    }\n  }\n\n  .postin-label {\n    color: ',";\n\n    font-size: 16px;\n    font-style: normal;\n    font-weight: 700;\n    line-height: 150%;\n\n    span {\n      color: #f43f5e;\n    }\n  }\n\n  .toggle {\n    padding: 12px 16px;\n    display: flex;\n    align-items: center;\n    justify-content: space-between;\n    background-color: ",";\n\n    p {\n      color: ",";\n      font-size: 16px;\n      font-weight: 700;\n      line-height: 150%;\n    }\n\n    svg {\n      transition-duration: 0.2s;\n      path {\n        fill: ",";\n      }\n    }\n  }\n\n  .dropdown {\n    position: absolute;\n    width: inherit;\n    top: 120%;\n    box-shadow: 0px 5px 16px 0px ",";\n    border-radius: 20px;\n\n    .inner-dropwdown {\n      padding: 8px;\n      background-color: ",";\n\n      p {\n        padding: 8px 12px;\n        color: ",";\n\n        font-size: 16px;\n        font-style: normal;\n        font-weight: 700;\n        line-height: 150%;\n        border-radius: 4px;\n\n        :hover {\n          color: ",";\n          background-color: ",";\n        }\n      }\n    }\n  }\n"]);return _templateObject=function(){return n},n}let p=r.default.div.withConfig({componentId:"sc-b4dbf83-0"})(_templateObject(),n=>{let{theme:e}=n;return e.colors.text.primary},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.colors.border.grey.dark},n=>{let{theme:e}=n;return e.colors.background.grey.boxshadow},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.accent.blue},n=>{let{theme:e}=n;return e.colors.background.grey.tertiary});e.Z=function(n){var e;let{selectedListItem:t,setSelectedListItem:l,listItems:r,disableLabel:m=!1,width:f=198,label:h="Post in",small:x=!1}=n;(0,d.T)();let g=(0,o.v9)(s.o4)||"dark",v="dark"===g,[b,j]=(0,c.useState)(!1),w=(0,o.v9)(s.S5);return(0,i.jsxs)(p,{style:{width:f},className:"".concat(x&&"small"),children:[!m&&(0,i.jsxs)("p",{className:"postin-label",children:[h,(0,i.jsx)("span",{children:"*"})]}),(0,i.jsxs)(u.Z,{className:"toggle nes-pointer",borderColor:b?"14ADFF":v?"64748B":"94A3B8",onClick:()=>j(!b),children:[(0,i.jsx)("p",{children:null===(e=r[t])||void 0===e?void 0:e.displayName}),(0,i.jsx)(a.Z,{style:{transform:b?"rotate(90deg)":"rotate(-90deg)"}})]}),b&&(0,i.jsx)("div",{className:"dropdown",children:(0,i.jsx)(u.Z,{className:"inner-dropwdown",borderColor:v?"64748B":"94A3B8",children:Object.keys(r).map(n=>{let e=r[n];if("question-of-the-week"!==e.internaleName||w)return(0,i.jsx)("p",{className:"item nes-pointer",onClick:()=>{l(e.internaleName),j(!b)},children:e.displayName},n)})})})]})}},33363:function(n,e,t){"use strict";
1var l=t(82729),i=t(85893),r=t(19521),o=t(99281);function _templateObject(){let n=(0,l._)(["\n  .labels {\n    display: flex;\n    flex-direction: column;\n    gap: 8px;\n\n    .head-label {\n      color: ",";\n      font-size: 16px;\n      font-style: normal;\n      font-weight: 700;\n      line-height: 150%;\n      span {\n        color: #f43f5e;\n      }\n    }\n\n    .label-description {\n      color: ",";\n      font: 14px;\n      font-weight: 500;\n      line-height: 150%;\n    }\n  }\n\n  input {\n    ::placeholder {\n      font-weight: 700;\n      color: ",";\n    }\n  }\n"]);return _templateObject=function(){return n},n}let s=r.default.div.withConfig({componentId:"sc-e7d09849-0"})(_templateObject(),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});e.Z=function(n){let{value:e,setValue:t,placeholder:l="Post Title",label:r,labelDescription:a=null,required:c=!1}=n;return(0,i.jsxs)(s,{className:"postform-title",children:[(0,i.jsxs)("div",{className:"labels",children:[(0,i.jsxs)("p",{className:"head-label",children:[r,c&&(0,i.jsx)("span",{children:"*"})]}),a&&(0,i.jsx)("p",{className:"label-description",children:a})]}),(0,i.jsx)(o.Z,{setValue:t,value:e,placeholder:l})]})}},79705:function(n,e,t){"use strict";var l=t(82729),i=t(85893),r=t(19521),o=t(67294);function _templateObject(){let n=(0,l._)(["\n  display: flex;\n  flex-direction: column;\n  gap: 4px;\n\n  .title {\n    display: flex;\n    align-items: center;\n    justify-content: space-between;\n    .body-label {\n      color: ",";\n      font-size: 16px;\n      font-style: normal;\n      font-weight: 700;\n      line-height: 150%;\n      margin-bottom: 8px;\n\n      span {\n        color: #f43f5e;\n      }\n    }\n\n    .min-counter {\n      display: flex;\n      color: ",";\n      gap: 0.5rem;\n\n      .num {\n        font-weight: 600;\n      }\n    }\n  }\n"]);return _templateObject=function(){return n},n}let s=(0,o.lazy)(()=>Promise.all([t.e(8700),t.e(2013),t.e(7603),t.e(4153),t.e(286),t.e(6095),t.e(155),t.e(6207),t.e(3280),t.e(5434)]).then(t.bind(t,33280))),a=r.default.div.withConfig({componentId:"sc-43861c6d-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{setPostMainContent:e,value:t,selectedCommunity:l=null,title:r="Body",placeholder:c="Whats on your mind?",required:d=!0,enableInlineImages:u=!1,inlineImagePostId:p=null}=n;return(0,i.jsxs)(a,{children:[(0,i.jsxs)("div",{className:"title",children:[(0,i.jsxs)("p",{className:"body-label",children:[r,d&&(0,i.jsx)("span",{children:"*"})]})," ","introduction"===l&&(0,i.jsxs)("div",{className:"min-counter",children:[(0,i.jsx)("p",{children:"Min:"}),(0,i.jsxs)("p",{className:"num",children:[t.length,"/100"]})]})]}),(0,i.jsx)(o.Suspense,{children:(0,i.jsx)(s,{setPostMainContent:e,value:t,placeholder:c,enableInlineImages:u,inlineImagePostId:p})})]})}},74448:function(n,e,t){"use strict";var l=t(82729),i=t(85893),r=t(19521),o=t(99281);function _templateObject(){let n=(0,l._)(["\n  .title-label {\n    color: ",";\n\n    font-size: 16px;\n    font-style: normal;\n    font-weight: 700;\n    line-height: 150%;\n    span {\n      color: #f43f5e;\n    }\n  }\n\n  .title-description {\n    margin: 8px 0px 12px 0px;\n    color: ",";\n    font-size: 14px;\n    font-weight: 700;\n    line-height: 150%;\n  }\n\n  input {\n    ::placeholder {\n      font-weight: 700;\n      color: ",";\n    }\n  }\n"]);return _templateObject=function(){return n},n}let s=r.default.div.withConfig({componentId:"sc-75d7c8aa-0"})(_templateObject(),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});e.Z=function(n){let{title:e,setTitle:t,placeholder:l="Post Title",description:r="Create a short, but fun overview for your post! Can the reader understand what the post is about just by looking at the title?"}=n;return(0,i.jsxs)(s,{className:"postform-title",children:[(0,i.jsxs)("p",{className:"title-label",children:["Title",(0,i.jsx)("span",{children:"*"})]})," ",(0,i.jsx)("p",{className:"title-description",children:r}),(0,i.jsx)(o.Z,{setValue:t,value:e,placeholder:l,maxLength:80})]})}}
1,77143:function(n,e,t){"use strict";var l=t(85893),i=t(67294),r=t(9837),o=t(56526);e.Z=function(n){let{getByBuildId:e=null,forFeed:t=!1}=n,[s,a]=(0,i.useState)(!1);return(0,l.jsxs)(l.Fragment,{children:[s&&(0,l.jsx)(o.Z,{setExpanded:()=>a(!s),getByBuildId:e,forFeed:t}),(0,l.jsx)(r.Z,{setExpanded:()=>a(!s),getByBuildId:e,forFeed:t})]})}},9837:function(n,e,t){"use strict";t.d(e,{Z:function(){return project_showcase_EmbeddedDemo}});var l=t(82729),i=t(85893),r=t(19521),o=t(73857),s=t(36794),a=t(50823),icons_FullscreenIcon=function(n){let{color:e="currentColor",className:t="",...l}=n;return(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:t,...l,children:[(0,i.jsx)("path",{d:"M3 3H9V5H5V9H3V3Z",fill:e}),(0,i.jsx)("path",{d:"M15 3H21V9H19V5H15V3Z",fill:e}),(0,i.jsx)("path",{d:"M3 15H5V19H9V21H3V15Z",fill:e}),(0,i.jsx)("path",{d:"M19 15H21V21H15V19H19V15Z",fill:e})]})},icons_FullscreenExitIcon=function(n){let{color:e="currentColor",className:t="",...l}=n;return(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:t,...l,children:[(0,i.jsx)("path",{d:"M9 9H3V7H7V3H9V9Z",fill:e}),(0,i.jsx)("path",{d:"M15 9V3H17V7H21V9H15Z",fill:e}),(0,i.jsx)("path",{d:"M9 15V21H7V17H3V15H9Z",fill:e}),(0,i.jsx)("path",{d:"M15 15H21V17H17V21H15V15Z",fill:e})]})},c=t(18268),d=t(9473),u=t(81776),p=t(609),m=t(41664),f=t.n(m),h=t(89547),x=t(43754),g=t(67294);function _templateObject(){let n=(0,l._)(["\n  border-radius: 4px;\n  border: 2px solid ",";\n  overflow: hidden;\n  display: flex;\n  flex-direction: column;\n  height: ",";\n  /* background color to blend out subpixel line artifact between iframe and button bar */\n  background-color: ",";\n\n  .frame {\n    position: relative;\n    flex: 1;\n    min-height: 0;\n    display: flex;\n  }\n\n  iframe {\n    flex: 1;\n    width: 100%;\n    border: none;\n    /* Prevent transparent Builds background by defaulting to white */\n    background-color: #fff;\n  }\n\n  .click-shield {\n    position: absolute;\n    inset: 0;\n    cursor: pointer;\n    background: transparent;\n  }\n\n  .btn-wrapper {\n    border-top: 2px solid ",";\n    padding: 6px 12px;\n    display: flex;\n    background-color: ",";\n    flex-wrap: wrap;\n\n    .action-buttons {\n      flex: 1;\n      display: flex;\n      gap: 12px;\n      flex-wrap: wrap;\n\n      a {\n        text-decoration: none;\n      }\n    }\n\n    button {\n      svg {\n        path {\n          fill: ",";\n        }\n      }\n\n      .right {\n        margin-right: 8px;\n      }\n\n      .left {\n        margin-left: 8px;\n      }\n    }\n\n    .expand {\n      width: 44px;\n    }\n  }\n"]);return _templateObject=function(){return n},n}let v=r.default.div.withConfig({componentId:"sc-3303e7e4-0"})(_templateObject(),n=>{let{theme:e}=n;return e.colors.border.grey.medium},n=>{let{fullscreen:e}=n;return e?"100%":"460px"},n=>{let{theme:e}=n;return e.colors.background.grey.primary},n=>{let{theme:e}=n;return e.colors.border.grey.medium},n=>{let{theme:e}=n;return e.colors.background.grey.primary},n=>{let{theme:e}=n;return e.colors.text.primary});function stopCardLink(n){n.preventDefault(),n.stopPropagation()}var project_showcase_EmbeddedDemo=function(n){let{setExpanded:e,fullscreen:t=!1,getByBuildId:l=null,forFeed:r=!1}=n,m=(0,d.v9)(p.zr),b=(0,d.v9)((0,u.hx)()),[j,w]=(0,g.useState)(null),y=l&&j?j:b,H="/@".concat((null==y?void 0:y.username)||m,"/build/").concat(null==y?void 0:y.slugTitle),N=(0,h.AC)((null==y?void 0:y.subdomainSlug)||(null==y?void 0:y.id)),[V,_]=(0,g.useState)(!1);(0,g.useEffect)(()=>{_(!1)},[l,null==y?void 0:y.id,t]);let{remix:k}=(0,x.a)();async function remixBuild(){let n=null==y?void 0:y.id,e=null==y?void 0:y.title;await k({buildId:n,title:e})}return(0,g.useEffect)(()=>{async function getBuildDataById(){let n=await fetch("/api/builds/getBuildInfoWithId",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({buildId:l})}),e=await n.json();w(e)}l?getBuildDataById():w(null)},[l]),(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(v,{fullscreen:t,children:[(0,i.jsxs)("div",{className:"frame",children:[(0,i.jsx)("iframe",{src:"/api/builds/by-slug/".concat(l||(null==y?void 0:y.id),"/index.html").concat(r&&!t?"?muted=true":""),sandbox:"allow-scripts allow-same-origin allow-forms allow-popups",loading:"lazy",onMouseLeave:()=>_(!1)}),!t&&!V&&(0,i.jsx)("div",{className:"click-shield",onClick:n=>{stopCardLink(n),_(!0)}})]}),(0,i.jsxs)("div",{className:"btn-wrapper",children:[(0,i.jsxs)("div",{className:"action-buttons",children:[(0,i.jsx)(f(),{href:H,target:"_blank",children:(0,i.jsxs)(o.Z,{variant:"subtle",size:"small",onClick:n=>n.stopPropagation(),children:[(0,i.jsx)(s.Z,{className:"right"}),"View in Builds"]})}),(0,i.jsx)(f(),{href:N,target:"_blank",children:(0,i.jsxs)(o.Z,{variant:"subtle",size:"small",onClick:n=>n.stopPropagation(),children:["Live site",(0,i.jsx)(c.Z,{className:"left"})]})}),(0,i.jsxs)(o.Z,{variant:"subtle",size:"small",onClick:n=>{stopCardLink(n),remixBuild()},children:[(0,i.jsx)(a.Z,{className:"right"}),"Remix"]})]}),(0,i.jsx)(o.Z,{variant:"subtle",size:"small",className:"expand",onClick:n=>{stopCardLink(n),e()},children:t?(0,i.jsx)(icons_FullscreenExitIcon,{}):(0,i.jsx)(icons_FullscreenIcon,{})})]})]})})}},56526:function(n,e,t){"use strict";
1var l=t(82729),i=t(85893),r=t(19521),o=t(72502),s=t(9837);function _templateObject(){let n=(0,l._)(["\n  .expanded-demo-wrapper {\n    width: 90%;\n    height: 90%;\n  }\n"]);return _templateObject=function(){return n},n}let a=(0,r.default)(o.Z).withConfig({componentId:"sc-5e399925-0"})(_templateObject());e.Z=function(n){let{setExpanded:e,getByBuildId:t=null,forFeed:l=!1}=n;return(0,i.jsx)("div",{onClick:n=>n.preventDefault(),children:(0,i.jsx)(a,{setShowModel:e,children:(0,i.jsx)("div",{className:"expanded-demo-wrapper",children:(0,i.jsx)(s.Z,{setExpanded:e,fullscreen:!0,getByBuildId:t,forFeed:l})})})})}},73664:function(n,e,t){"use strict";t.d(e,{oH:function(){return getUserPostCommentsRef},x:function(){return getUserPostsRef}});var l=t(39828),i=t(92369);function getUserPostsRef(n){let{uid:e}=n,{firestore:t}=(0,i.UM)(),r=(0,l.JU)((0,l.hJ)(t,"users"),e,"community","posts");return r}function getUserPostCommentsRef(n){let{uid:e}=n,{firestore:t}=(0,i.UM)(),r=(0,l.JU)((0,l.hJ)(t,"users"),e,"community","comments");return r}},42533:function(n,e,t){"use strict";t.d(e,{q:function(){return updateViews}});var l=t(39828),i=t(92369);async function updateViews(n){let{viewerUid:e,postId:t,communityName:r}=n;if(!t)throw Error("postId is required.");let{firestore:o}=(0,i.UM)(),s=(0,l.JU)(o,"community",r,"posts",t);try{let n={viewCount:(0,l.nP)(1)};e&&(n.viewers=(0,l.vr)(e)),await (0,l.r7)(s,n)}catch(n){}}},20200:function(n,e,t){"use strict";t.r(e),t.d(e,{__N_SSG:function(){return $},default:function(){return _jam_}});
1var l=t(82729),i=t(85893),r=t(67294),o=t(19521),s=t(99428),a=t(5309),c=t(86121),d=t(21229),u=t(41664),p=t.n(u);function _templateObject(){let n=(0,l._)(['\n  .tag {\n    font-family: "Mulish", sans-serif;\n    color: ',";\n    font-size: 16px;\n    font-style: normal;\n    font-weight: 600;\n    line-height: 150%;\n\n    a {\n      color: ",";\n    }\n\n    span {\n      color: ",";\n      font-size: 16px;\n      font-style: normal;\n      font-weight: 700;\n      line-height: 150%;\n    }\n  }\n\n  .jam-title {\n    margin: 8px 0px 16px 0px;\n    color: ",';\n    font-family: "PixelGridM";\n    font-size: 32px;\n    font-style: normal;\n    font-weight: 700;\n    line-height: normal;\n    letter-spacing: 1.2px;\n  }\n\n  .community-feed-filters {\n    margin: 0px;\n  }\n\n  '," {\n    .jam-title {\n      font-size: 40px;\n    }\n  }\n"]);return _templateObject=function(){return n},n}let m=o.default.div.withConfig({componentId:"sc-17d169d7-0"})(_templateObject(),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.primary},n=>{let{theme:e}=n;return e.colors.text.primary},n=>{let{theme:e}=n;return e.breakpoints.sm});var jams_JamHeader=function(n){var e;let{title:t,currentFilter:l,setCurrentFilter:r,totalPosts:o,tag:s,winnersLength:a}=n;return(0,i.jsxs)(m,{children:[(0,i.jsxs)("p",{className:"tag",children:[(0,i.jsx)(p(),{href:"/community/monthly-challenge",children:"Monthly Challenges"})," /"," ",(0,i.jsx)("span",{className:"label-tag",children:(null===(e=d.d[s])||void 0===e?void 0:e.displayName)||"Code Challenge"})]}),(0,i.jsx)("h1",{className:"jam-title",children:t}),(0,i.jsx)(c.Z,{filters:{overview:{displayText:"Overview",internalName:"overview",link:""},submissions:{displayText:"Submissions",internalName:"submissions",num:o>=1?o:null,link:"submissions"}
1,winners:{displayText:"Winners",internalName:"winners",link:"winners",num:a>=1?a:null}},currentFilter:l,setCurrentFilter:r})]})},f=t(9473),h=t(609),x=t(54456),g=t(28880),v=t(56500),b=t(47010),j=t(52367),w=t(79304),y=t(42533);function JamPostFeed_templateObject(){let n=(0,l._)(["\n  width: 100%;\n  max-width: 792px;\n  display: flex;\n  flex-direction: column;\n  gap: 24px;\n\n  .post-comment-divider {\n    margin: 24px 0px;\n    height: 2px;\n    background-color: ",";\n    width: 100%;\n  }\n\n  .loader {\n    display: flex;\n    justify-content: center;\n    margin-top: 4rem;\n  }\n"]);return JamPostFeed_templateObject=function(){return n},n}let H=o.default.div.withConfig({componentId:"sc-f4d869a6-0"})(JamPostFeed_templateObject(),n=>{let{theme:e}=n;return e.colors.border.grey.light});var jams_JamPostFeed=function(n){let{post:e,setCurrentFilter:t}=n,l=(0,f.v9)(h.f8),{comments:o,isLoading:s,morePostExists:a,loadMorePosts:c,setComments:d}=(0,j.Z)({postId:null==e?void 0:e.postId,communityName:null==e?void 0:e.communityName}),{highlightedCommentId:u,expandedCommentId:p}=(0,w.Z)({post:e,comments:o,isLoading:s,setComments:d});return((0,r.useEffect)(()=>{e&&e.postId&&(0,y.q)({viewerUid:l,postId:null==e?void 0:e.postId,communityName:null==e?void 0:e.communityName})},[l,null==e?void 0:e.postId,e]),e)?(0,i.jsxs)(H,{children:[(0,i.jsx)(x.Z,{post:e,uid:l,headerType:"with-channel",disablePadding:!0,disableUnderline:!0,disableHover:!0,disableHeader:!0,setJamFilter:t}),(0,i.jsx)(g.Z,{post:e,setComments:d,initialPostId:null==e?void 0:e.postId}),(0,i.jsx)("div",{className:"post-comment-divider"}),(0,i.jsx)(v.Z,{post:e,comments:o,loadMorePosts:c,morePostExists:a,isLoading:s,initialPostId:null==e?void 0:e.postId,highlightedCommentId:u,expandedCommentId:p})]}):(0,i.jsx)(H,{children:(0,i.jsx)("div",{className:"loader",children:(0,i.jsx)(b.Z,{color:"#15ACFF"})})})},N=t(87239);function JamFeedConsumer_templateObject(){let n=(0,l._)(["\n  display: flex;\n  gap: 40px;\n\n  .outer-sidebar-wrapper {\n    min-width: 240px;\n    flex: 1;\n    display: none;\n\n    "," {\n      display: inline-block;\n    }\n  }\n"]);return JamFeedConsumer_templateObject=function(){return n},n}let V=o.default.div.withConfig({componentId:"sc-10ab71f9-0"})(JamFeedConsumer_templateObject(),n=>{let{theme:e}=n;return e.breakpoints.md});var jams_JamFeedConsumer=function(n){let{post:e,setCurrentFilter:t}=n;return(0,i.jsxs)(V,{children:[(0,i.jsx)(jams_JamPostFeed,{post:e,setCurrentFilter:t}),(0,i.jsx)("div",{className:"outer-sidebar-wrapper",children:(0,i.jsx)(N.Z,{endDate:null==e?void 0:e.challengeEndDate,totalSubmissions:null==e?void 0:e.totalSubmissions,postId:null==e?void 0:e.postId,winners:null==e?void 0:e.winners,setCurrentFilter:t})})]})},_=t(80334),k=t(44510),C=t(58533),Z=t(25670),I=t(45198),S=t(85712);function JamNoSubmissions_templateObject(){let n=(0,l._)(["\n  width: 100%;\n  padding: 24px 0px;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  gap: 24px;\n\n  .trophy {\n    width: 64px;\n    height: 64px;\n\n    path {\n      fill: ",";\n    }\n  }\n\n  .soon {\n    color: ",";\n    font-size: 24px;\n    font-weight: 700;\n    line-height: 150%;\n  }\n\n  .wait {\n    color: ",";\n    font-size: 16px;\n    font-weight: 600;\n    line-height: 150%;\n    text-align: center;\n  }\n"]);return JamNoSubmissions_templateObject=function(){return n},n}let O=o.default.div.withConfig({componentId:"sc-b698d76a-0"})(JamNoSubmissions_templateObject(),n=>{let{theme:e}=n;return e.colors.border.grey.dark},n=>{let{theme:e}=n;return e.colors.text.primary},n=>{let{theme:e}=n;return e.colors.text.primary});var jams_JamNoSubmissions=function(){return(0,i.jsxs)(O,{children:[(0,i.jsx)(S.Z,{className:"trophy"}),(0,i.jsx)("p",{className:"soon",children:"No submissions yet.."}),(0,i.jsx)("p",{className:"wait",children:"Check back soon!"})]})},M=t(18358);function JamsInfiniteFeed_templateObject(){let n=(0,l._)(["\n  width: 100%;\n  margin-bottom: 5rem;\n\n  .fake-channel-composer {\n    margin-bottom: 8px;\n  }\n\n  .channel-posts {\n    display: grid;\n\n    overflow: visible !important;\n\n    gap: 16px;\n    position: relative;\n\n    .spinning-loader {\n      position: absolute;\n      left: 50%;\n      transform: translateX(-50%);\n      bottom: -80px;\n    }\n  }\n"]);
1return JamsInfiniteFeed_templateObject=function(){return n},n}let J=o.default.div.withConfig({componentId:"sc-5519103d-0"})(JamsInfiniteFeed_templateObject());var jams_JamsInfiniteFeed=function(n){let{posts:e,setAllPosts:t,filters:l,currentFilter:o,savedCurrentPage:s=1,noMorePosts:a=!1,community:c="monthly-challenge",refreshTrigger:d=null,cardType:u}=n,p=(0,f.v9)(h.f8),[m,g]=(0,r.useState)(s),[v,b]=(0,r.useState)(!0),{width:j}=(0,I.i)(),w=(0,r.useCallback)(async()=>{try{let n=l[o];if(0===e.length){let e="".concat(c,"-").concat(n.internalName,"-").concat(d),l=JSON.parse(sessionStorage.getItem(e));if(!l)return;let i=l.currentPage,r="".concat(n.api,"&page=").concat(i),o=await fetch(r),s=await o.json(),a=s.posts;0!=a.length&&(g(i),t(n=>[...n,...a]),l={posts:[...l.posts,...a],currentPage:i},sessionStorage.setItem(e,JSON.stringify({...l})));return}let i="".concat(c,"-").concat(n.internalName,"-").concat(d),r=JSON.parse(sessionStorage.getItem(i)),s=r.currentPage+1,a="".concat(n.api,"&page=").concat(s),u=await fetch(a),p=await u.json(),m=p.posts;0!=m.length&&(g(s),t(n=>[...n,...m]),r={posts:[...r.posts,...m],currentPage:s},sessionStorage.setItem(i,JSON.stringify({...r}))),m.length<4&&b(!1)}catch(n){console.error("Error fetching more posts:",n),b(!1)}},[l,o,e,c,d,t]);return(0,i.jsxs)(J,{children:[(0,i.jsxs)(C.Z,{className:"channel-posts",dataLength:e.length,next:w,hasMore:v,scrollThreshold:.3,loader:(0,i.jsx)(Z.Z,{}),style:{gridTemplateColumns:"grid"===u?"repeat(auto-fill, minmax(275px, 1fr))":"1fr"},children:["grid"===u&&e&&(null==e?void 0:e.map(n=>(0,i.jsx)(M.Z,{post:n,forMc:!0},null==n?void 0:n.postId))),"list"===u&&e&&(null==e?void 0:e.map(n=>(0,i.jsx)(x.Z,{post:n,uid:p,disablePadding:!(j>768)},null==n?void 0:n.postId)))]}),a&&(0,i.jsx)(jams_JamNoSubmissions,{})]})};function JamSubmissionsView_templateObject(){let n=(0,l._)(["\n  display: flex;\n  flex-direction: column;\n  gap: 32px;\n\n  .submission-header {\n    display: flex;\n    align-items: center;\n    justify-content: space-between;\n    flex-wrap: wrap;\n    gap: 24px;\n\n    .total-submissions {\n      color: ",";\n\n      font-size: 20px;\n\n      font-weight: 700;\n      line-height: 120%;\n    }\n\n    .filters {\n      display: flex;\n      gap: 16px;\n      .card-type-toggle {\n        display: flex;\n\n        .line {\n          width: 2px;\n          background: ",";\n        }\n\n        .toggle {\n          border: 2px solid ",";\n          padding: 9px;\n\n          svg {\n            path {\n              fill: ",";\n            }\n          }\n\n          :first-child {\n            border-top-left-radius: 4px;\n            border-bottom-left-radius: 4px;\n            border-right: 0px;\n          }\n\n          :last-child {\n            border-top-right-radius: 4px;\n            border-bottom-right-radius: 4px;\n            border-left: 0px;\n          }\n\n          :hover {\n            background: ",";\n\n            svg {\n              path {\n                fill: ",";\n              }\n            }\n          }\n        }\n\n        .selected {\n          border-color: ",";\n          background-color: ",";\n\n          svg {\n            path {\n              fill: ",";\n            }\n          }\n        }\n      }\n    }\n  }\n"]);return JamSubmissionsView_templateObject=function(){return n},n}let P=o.default.div.withConfig({componentId:"sc-6917dbd6-0"})(JamSubmissionsView_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.border.grey.dark},n=>{let{theme:e}=n;return e.colors.text.primary},n=>n.theme.colors.background.grey.tertiary,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}),F={newest:{displayName:"Newest",internaleName:"newest"},liked:{displayName:"Most Liked",internaleName:"liked"}},E=(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:"M6 6.01691H4V8.01691H6V6.01691ZM20 6.01691H8V8.01691H20V6.01691ZM4 11.0169H6V13.0169H4V11.0169ZM20 11.0169H8V13.0169H20V11.0169ZM4 16.0169H6V18.0169H4V16.0169ZM20 16.0169H8V18.0169H20V16.0169Z",fill:"#020617"})}),T=(0,i.jsxs)("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:"M13 13.0169H15H21V15.0169V19.0169V21.0169H19H15H13V13.0169ZM19 19.0169V15.0169H15V19.0169H19Z",fill:"#0065AB"}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 13.0169H5H11V15.0169V19.0169V21.0169H9H5H3V13.0169ZM9 19.0169V15.0169H5V19.0169H9Z",fill:"#0065AB"}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13 3.01691H15H21V5.01691V9.01691V11.0169H19H15H13V3.01691ZM19 9.01691V5.01691H15V9.01691H19Z",fill:"#0065AB"}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 3.01691H5H11V5.01691V9.01691V11.0169H9H5H3V3.01691ZM9 9.01691V5.01691H5V9.01691H9Z",fill:"#0065AB"})]});var jams_JamSubmissionsView=function(n){let{post:e}=n,[t,l]=(0,r.useState)("newest"),[o,s]=(0,r.useState)("grid"),a={newest:{api:"/api/community/monthly-challenge/getSubmissions?postId=".concat(null==e?void 0:e.postId,"&latest=true"),displayName:"Newest",internaleName:"newest"},liked:{api:"/api/community/monthly-challenge/getSubmissions?postId=".concat(null==e?void 0:e.postId,"&latest=false"),displayName:"Most Liked",internaleName:"liked"}},{posts:c,noMorePosts:d,currentPage:u}=(0,k.Z)({community:"monthly-challenge",filter:a[t],refreshTrigger:"".concat(null==e?void 0:e.postId,"-").concat(t)}),[p,m]=(0,r.useState)([]);return(0,r.useEffect)(()=>{m(c)},[c]),(0,i.jsxs)(P,{children:[(0,i.jsxs)("div",{className:"submission-header",children:[(0,i.jsxs)("p",{className:"total-submissions",children:[null==e?void 0:e.totalSubmissions," submissions"]}),(0,i.jsxs)("div",{className:"filters",children:[(0,i.jsxs)("div",{className:"card-type-toggle nes-pointer",children:[(0,i.jsx)("div",{className:"toggle ".concat("list"===o&&"selected"),onClick:()=>s("list"),children:E}),(0,i.jsx)("div",{className:"line"}),(0,i.jsx)("div",{className:"toggle ".concat("grid"===o&&"selected"),onClick:()=>s("grid"),children:T})]}),(0,i.jsx)(_.Z,{selectedListItem:t,setSelectedListItem:l,listItems:F,disableLabel:!0,width:157})]})]}),(0,i.jsx)(jams_JamsInfiniteFeed,{posts:p,setAllPosts:m,filters:a,currentFilter:t,refreshTrigger:"".concat(null==e?void 0:e.postId,"-").concat(t),cardType:o,noM
1orePosts:d})]})},z=t(86961),B=t(76543),R=t(73857);function JamNoWinners_templateObject(){let n=(0,l._)(["\n  padding: 24px 0px;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  gap: 24px;\n\n  .trophy {\n    width: 64px;\n    height: 64px;\n\n    path {\n      fill: ",";\n    }\n  }\n\n  .soon {\n    color: ",";\n    font-size: 24px;\n    font-weight: 700;\n    line-height: 150%;\n  }\n\n  .wait {\n    color: ",";\n    font-size: 16px;\n    font-weight: 600;\n    line-height: 150%;\n    text-align: center;\n  }\n"]);return JamNoWinners_templateObject=function(){return n},n}let W=o.default.div.withConfig({componentId:"sc-b7cd8bcb-0"})(JamNoWinners_templateObject(),n=>{let{theme:e}=n;return e.colors.border.grey.dark},n=>{let{theme:e}=n;return e.colors.text.primary},n=>{let{theme:e}=n;return e.colors.text.primary});var jams_JamNoWinners=function(n){let{setCurrentFilter:e}=n;return(0,i.jsxs)(W,{children:[(0,i.jsx)(B.Z,{className:"trophy"}),(0,i.jsx)("p",{className:"soon",children:"Check back soon for winners \uD83D\uDC40 "}),(0,i.jsxs)("p",{className:"wait",children:["While you wait, explore current submissions from others and cheer them on!"," "]}),(0,i.jsx)(R.Z,{variant:"subtle",size:"small",onClick:()=>e("submissions"),children:"View submissions"})]})},L=t(25935),D=t(72163);function WinnerCard_templateObject(){let n=(0,l._)(["\n  display: grid;\n  gap: 40px;\n\n  "," {\n    grid-template-columns: 1fr;\n  }\n  "," {\n    grid-template-columns: minmax(320px, 1fr) 3fr;\n  }\n\n  .winner-info {\n    display: flex;\n    flex-direction: column;\n    gap: 24px;\n    flex: 1;\n\n    .winner-tag {\n      width: fit-content;\n      padding: 5px 12px;\n      border-radius: 100px;\n      background-color: ",";\n\n      color: var(--Text-Accent-Yellow---Warn, #854d0e);\n\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    .author-info {\n      display: flex;\n      flex-direction: column;\n      gap: 12px;\n\n      .title {\n        color: ",";\n        font-size: 20px;\n        font-style: normal;\n        font-weight: 700;\n        line-height: 120%;\n      }\n\n      .author {\n        display: flex;\n        align-items: center;\n        gap: 12px;\n\n        img {\n          width: 32px;\n          height: 32px;\n          object-fit: cover;\n          border-radius: 50%;\n        }\n\n        p {\n          display: flex;\n          align-items: center;\n          gap: 8px;\n          color: ",";\n          font-size: 16px;\n          font-style: normal;\n          font-weight: 700;\n          line-height: 150%;\n\n          span {\n            color: ",";\n            font-weight: 500;\n          }\n        }\n\n        .author-link {\n          display: inline-flex;\n          align-items: center;\n          gap: 8px;\n          color: inherit;\n          text-decoration: none;\n          cursor: pointer;\n          transition-duration: 0.2s;\n\n          :hover {\n            color: ",";\n          }\n        }\n      }\n    }\n\n    .note {\n      border: 2px solid ",";\n      border-radius: 4px;\n      background-color: ",";\n      padding: 16px;\n      display: flex;\n      flex-direction: column;\n      gap: 12px;\n\n      .from-team {\n        color: ",";\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  }\n"]);return WinnerCard_templateObject=function(){return n},n}let U=o.default.div.withConfig({componentId:"sc-e927186c-0"})(WinnerCard_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.background.yellow.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.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.border.grey.medium},n=>{let{theme:e}=n;return e.colors.background.grey.secondary},n=>{let{theme:e}=n;return e.colors.text.tertiary});var jams_WinnerCard=function(n){var e,t,l,r,o,s,a,c;let{post:d}=n,u=null==d?void 0:null===(e=d.authorData)||void 0===e?void 0:e.username,m=u?"/@".concat(u):null;return(0,i.jsxs)(U,{children:[(0,i.jsx)(M.Z,{post:d,forMc:!0}),(0,i.jsxs)("div",{className:"winner-info",children:[(0,i.jsx)("p",{className:"winner-tag",children:null==d?void 0:null===(t=d.winnerDetails)||void 0===t?void 0:t.awardTag}),(0,i.jsxs)("div",{className:"author-info",children:[(0,i.jsx)("p",{className:"title",children:null==d?void 0:d.title}),(0,i.jsx)("div",{className:"author",children:m?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(p(),{href:m,target:"_blank",style:{all:"unset"}
1,children:(0,i.jsx)("img",{src:null==d?void 0:null===(l=d.authorData)||void 0===l?void 0:l.photoURL,alt:"author info",className:"nes-pointer"})}),(0,i.jsx)("p",{children:(0,i.jsxs)(p(),{href:m,target:"_blank",className:"author-link nes-pointer",children:[null==d?void 0:null===(r=d.authorData)||void 0===r?void 0:r.name," ",(0,i.jsxs)("span",{children:["@",u]})]})})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("img",{src:null==d?void 0:null===(o=d.authorData)||void 0===o?void 0:o.photoURL,alt:"author info"}),(0,i.jsxs)("p",{children:[null==d?void 0:null===(s=d.authorData)||void 0===s?void 0:s.name," ",(0,i.jsxs)("span",{children:["@",null==d?void 0:null===(a=d.authorData)||void 0===a?void 0:a.username]})]})]})})]}),(0,i.jsxs)("div",{className:"note",children:[(0,i.jsx)("p",{className:"from-team",children:"NOTE FROM THE TEAM:"}),(0,i.jsx)(D.Z,{children:(0,L.ZP)(null==d?void 0:null===(c=d.winnerDetails)||void 0===c?void 0:c.awardNotes)})]})]})]})};function JamWinnersFeed_templateObject(){let n=(0,l._)(["\n  display: flex;\n  flex-direction: column;\n  gap: 40px;\n"]);return JamWinnersFeed_templateObject=function(){return n},n}let A=o.default.div.withConfig({componentId:"sc-4b810c51-0"})(JamWinnersFeed_templateObject());var jams_JamWinnersFeed=function(n){let{setCurrentFilter:e,winners:t}=n,[l,o]=(0,r.useState)([]),[s,a]=(0,r.useState)(!1),[c,d]=(0,r.useState)(!0);if((0,r.useEffect)(()=>{(async function(){let n=await fetch("/api/community/monthly-challenge/getWinners",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({postId:t})}),e=await n.json();if(200===n.status){if(0===e.posts.length){a(!0),d(!1);return}let n=e.posts.sort((n,e)=>{var t,l;let i=null==n?void 0:null===(t=n.winnerDetails)||void 0===t?void 0:t.placed,r=null==e?void 0:null===(l=e.winnerDetails)||void 0===l?void 0:l.placed;return null==i&&null==r?0:null==i?1:null==r?-1:i-r});o(n),d(!1)}else a(!0),d(!1)})()},[t]),!c)return s?(0,i.jsx)(jams_JamNoWinners,{setCurrentFilter:e}):(0,i.jsx)(A,{children:l.map(n=>(0,i.jsx)(jams_WinnerCard,{post:n},null==n?void 0:n.postId))})},q=t(11163),X=t(73845),Y=t(81776);function _jam_templateObject(){let n=(0,l._)(["\n  background-color: ",';\n  font-family: "Mulish", sans-serif;\n  padding-top: 3.9rem;\n  min-height: 100vh;\n\n  p {\n    margin: 0px;\n  }\n\n  .jam-content-wrapper {\n    padding: 40px 24px;\n    display: flex;\n    justify-content: center;\n\n    .jam-content {\n      width: 100%;\n      max-width: 1152px;\n      display: flex;\n      flex-direction: column;\n      gap: 40px;\n    }\n  }\n']);return _jam_templateObject=function(){return n},n}let G=o.default.div.withConfig({componentId:"sc-c1510529-0"})(_jam_templateObject(),n=>{let{theme:e}=n;return e.colors.background.grey.primary});var $=!0,_jam_=function(n){var e,t,l;let{post:o}=n,c=(0,q.useRouter)(),d=(0,X.T)(),[u,p]=(0,r.useState)(o||null),[m,f]=(0,r.useState)(!o),[h,x]=(0,r.useState)("overview");if((0,r.useEffect)(()=>{var n;!o&&(null==c?void 0:null===(n=c.query)||void 0===n?void 0:n.jam)&&async function(){try{f(!0);let n=await fetch("/api/community/getSinglePost",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({postID:c.query.jam,communityName:"monthly-challenge"})}),e=await n.json();p(e.post)}catch(n){console.error("Client-side fetch failed:",n)}finally{f(!1)}}()},[o,null==c?void 0:null===(e=c.query)||void 0===e?void 0:e.jam]),(0,r.useEffect)(()=>{var n;let e=null==c?void 0:null===(n=c.query)||void 0===n?void 0:n.tab,t=c.asPath;t.includes("submissions")&&x("submissions"),t.includes("winners")&&x("winners");let l="submissions"===e||"winners"===e;e&&l&&x(e)},[c]),(0,r.useEffect)(()=>{var n;if(!u)return;let e=(null===(n=u.images[0])||void 0===n?void 0:n.url)||"";d((0,Y.pb)({postId:u.id,image:e}))},[u,d]),m||!u)return;let g={overview:(0,i.jsx)(jams_JamFeedConsumer,{post:u,setCurrentFilter:x}),submissions:(0,i.jsx)(jams_JamSubmissionsView,{post:u}),winners:(0,i.jsx)(jams_JamWinnersFeed,{setCurrentFilter:x,winners:null==u?void 0:u.winners})};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.Z,{learningEnv:"community"}),(0,i.jsxs)(G,{children:[(0,i.jsx)(a.Z,{image:(null==u?void 0:u.bannerImage)||(null==u?void 0:null===(t=u.images[0])||void 0===t?void 0:t.url),isCu
1stom:!!(null==u?void 0:u.bannerImage)}),(0,i.jsx)("div",{className:"jam-content-wrapper",children:(0,i.jsxs)("div",{className:"jam-content",children:[(0,i.jsx)(jams_JamHeader,{title:null==u?void 0:u.title,currentFilter:h,setCurrentFilter:x,totalPosts:null==u?void 0:u.totalSubmissions,tag:null==u?void 0:u.challengeType,winnersLength:(null==u?void 0:null===(l=u.winners)||void 0===l?void 0:l.length)||0}),g[h]]})})]}),(0,i.jsx)(z.Z,{disableMarginTop:!0})]})}},16496:function(n){!function(){var e=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],t="undefined"!=typeof window,l=t&&null!=window.mozInnerScreenX;function getCaretCoordinates(n,i,r){if(!t)throw Error("textarea-caret-position#getCaretCoordinates should only be called in a browser");var o=r&&r.debug||!1;if(o){var s=document.querySelector("#input-textarea-caret-position-mirror-div");s&&s.parentNode.removeChild(s)}var a=document.createElement("div");a.id="input-textarea-caret-position-mirror-div",document.body.appendChild(a);var c=a.style,d=window.getComputedStyle?window.getComputedStyle(n):n.currentStyle,u="INPUT"===n.nodeName;c.whiteSpace="pre-wrap",u||(c.wordWrap="break-word"),c.position="absolute",o||(c.visibility="hidden"),e.forEach(function(n){u&&"lineHeight"===n?c.lineHeight=d.height:c[n]=d[n]}),l?n.scrollHeight>parseInt(d.height)&&(c.overflowY="scroll"):c.overflow="hidden",a.textContent=n.value.substring(0,i),u&&(a.textContent=a.textContent.replace(/\s/g,"\xa0"));var p=document.createElement("span");p.textContent=n.value.substring(i)||".",a.appendChild(p);var m={top:p.offsetTop+parseInt(d.borderTopWidth),left:p.offsetLeft+parseInt(d.borderLeftWidth),height:parseInt(d.lineHeight)};return o?p.style.backgroundColor="#aaa":document.body.removeChild(a),m}void 0!==n.exports?n.exports=getCaretCoordinates:t&&(window.getCaretCoordinates=getCaretCoordinates)}()}},function(n){n.O(0,[1272,8700,1057,3777,2013,5937,7603,4090,4153,1622,9280,286,6095,8849,2512,959,719,9428,2163,6961,6207,5884,4561,8325,4456,227,9774,2888,179],function(){return n(n.s=98202)}),_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.