PageSourceSearch

https://www.codedex.io/_next/static/chunks/pages/daily-challenge-1c1b25f7a209ecb6.js

js codedex.io collected 2026-09-25 14:56:15 UTC 35,802 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8498],{87065:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/daily-challenge",function(){return t(96441)}])},64955:function(e,n,t){"use strict";var r=t(85893);n.Z=function(e){let{...n}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"41",viewBox:"0 0 40 41",fill:"none",children:[(0,r.jsx)("rect",{x:"5",y:"10.0171",width:"30",height:"5",fill:"#84CC16"}),(0,r.jsx)("rect",{x:"5",y:"12.5171",width:"30",height:"2.5",fill:"#65A30D"}),(0,r.jsx)("rect",{x:"30",y:"10.0171",width:"5",height:"5",fill:"#65A30D"}),(0,r.jsx)("rect",{x:"5",y:"15.0171",width:"30",height:"20",fill:"white"}),(0,r.jsx)("rect",{x:"25",y:"5.01709",width:"2.5",height:"2.5",fill:"#CBD5E1"}),(0,r.jsx)("rect",{x:"12.5",y:"5.01709",width:"2.5",height:"2.5",fill:"#CBD5E1"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25 20.0171H22.5V22.5171H20V25.0171H17.5V27.5171H15V25.0171H12.5V27.5171H15V30.0171H17.5V27.5171H20V25.0171H22.5V22.5171H25V20.0171Z",fill:"#475569"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5 2.51709H15H17.5V5.01709V7.51709H22.5V5.01709V2.51709H25H27.5H30V5.01709V7.51709H35V10.0171V35.0171V37.5171H5V35.0171V10.0171V7.51709H10V5.01709V2.51709H12.5ZM32.5 10.0171H27.5H12.5H7.5V35.0171H32.5V10.0171ZM15 5.01709V7.51709H12.5V5.01709H15ZM27.5 7.51709H25V5.01709H27.5V7.51709Z",fill:"#020617"}),(0,r.jsx)("rect",{x:"7.5",y:"32.5171",width:"25",height:"2.5",fill:"#CBD5E1"}),(0,r.jsx)("rect",{x:"30",y:"15.0171",width:"2.5",height:"20",fill:"#CBD5E1"})]})}},96441:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSG:function(){return Y},default:function(){return pages_daily_challenge}});var r=t(82729),l=t(85893),a=t(19521),i=t(62286),o=t.n(i),s=t(11163),c=t(73845),d=t(85673),h=t(99428),p=t(73857),u=t(41664),g=t.n(u),x=t(9473),f=t(609),m=t(31021);function _templateObject(){let e=(0,r._)(['\n  padding: 32px 1rem;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  gap: 32px;\n  font-family: "Mulish", sans-serif;\n  background-color: ',";\n  background-image: ",";\n  background-size: cover;\n  background-position: center 95%;\n  width: 100%;\n\n  * {\n    margin: 0px;\n  }\n\n  img {\n    width: 200px;\n    height: auto;\n    image-rendering: pixelated;\n  }\n\n  .top-copy {\n    display: flex;\n    flex-direction: column;\n    gap: 14px;\n    text-align: center;\n\n    h2 {\n      color: ",';\n      text-align: center;\n      font-family: "PixelGridM";\n      font-weight: 700;\n      line-height: 140%;\n      letter-spacing: 1.44px;\n      font-size: 32px;\n    }\n\n    span {\n      color: ',";\n      font-size: 24px;\n      font-style: normal;\n      font-weight: 500;\n      line-height: 120%;\n    }\n  }\n\n  .description {\n    text-align: center;\n    color: ",";\n    font-size: 16px;\n    font-style: normal;\n    font-weight: 500;\n    line-height: 150%;\n    width: 664px;\n    max-width: 100%;\n  }\n\n  .btn-wrapper {\n    width: 100%;\n    max-width: 100%;\n    display: flex;\n    flex-direction: column;\n    gap: 12px;\n\n    a {\n      text-decoration: none;\n    }\n\n    button {\n      width: 100%;\n    }\n  }\n\n  "," {\n    .btn-wrapper {\n      width: 374px;\n    }\n    padding: 64px;\n    .top-copy {\n      h2 {\n        font-size: 48px;\n      }\n    }\n  }\n"]);return _templateObject=function(){return e},e}let y=a.default.div.withConfig({componentId:"sc-629b2cb8-0"})(_templateObject(),e=>{let{theme:n}=e;return n.colors.background.grey.tertiary},e=>{let{theme:n}=e;return"dark"==n.mode?'linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)), \n      url("/images/daily-challenge/daily-challenge-banner.png")':'linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2)),\n      radial-gradient(at 50% 70%, rgba(56, 109, 172, .5), transparent 95%),\n      url("/images/daily-challenge/daily-challenge-banner.png")'},e=>{let{theme:n}=e;return n.darkTheme.colors.text.primary},e=>{let{theme:n}=e;return n.darkTheme.colors.text.secondary},e=>{let{theme:n}=e;return n.darkTheme.colors.text.primary},e=>{let{theme:n}=e;return n.breakpoints.sm});var landingPage_DailyChallengeBanner=function(e){let{setCurrentDate:n}=e;(0,s.useRouter)(),(0,x.v9)(f.f8),(0,x.v9)(f.Ao);let t=o().get().codedextoken||"";o().get().seenWelcomeDailyChallenge;let r=new Date().toLocaleDateString("en-US",{timeZone:"America/Ne
1w_York",month:"long",day:"numeric",year:"numeric"});return(0,m.r)(),(0,l.jsxs)(y,{children:[(0,l.jsx)("img",{src:"/images/daily-challenge/notes_ex.gif",alt:"banner image"}),(0,l.jsxs)("div",{className:"top-copy",children:[(0,l.jsx)("h2",{children:"Daily Challenge"}),(0,l.jsx)("span",{children:r})]}),(0,l.jsxs)("p",{className:"description",children:["Daily challenges are taking a break! In the meantime, practice with the"," ",(0,l.jsx)("a",{href:"#leaderboard",onClick:e=>{var t;e.preventDefault(),null==n||n("2026-03-02"),null===(t=document.getElementById("leaderboard"))||void 0===t||t.scrollIntoView({behavior:"smooth"})},children:"March challenges"}),". Pick a language, test your chops, and see how you stack up."]}),(0,l.jsx)("div",{className:"btn-wrapper",children:t?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(p.Z,{variant:"green",disabled:!0,children:"Start today's Challenge"})}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(p.Z,{variant:"green",disabled:!0,children:"Start today's Challenge"}),(0,l.jsx)(g(),{href:"/signup",children:(0,l.jsx)(p.Z,{variant:"subtle",children:"Sign up"})})]})})]})},j=t(67294),w=t(86121),b=t(34676);function LeaderboardNav_templateObject(){let e=(0,r._)(['\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  gap: 12px;\n\n  .date-name {\n    display: flex;\n    align-items: center;\n    gap: 8px;\n    font-family: "Mulish", sans-serif;\n\n    p {\n      color: ',";\n      font-size: 16px;\n      font-weight: 700;\n      line-height: 150%;\n    }\n\n    span {\n      color: ",";\n      font-size: 16px;\n      font-weight: 500;\n      line-height: 120%;\n    }\n\n    a {\n      text-decoration: none;\n      color: ",";\n      transition-duration: 0.2s;\n\n      span {\n        color: ",";\n      }\n\n      :hover span {\n        text-decoration: underline;\n      }\n    }\n  }\n\n  .btn-wrapper {\n    display: flex;\n    gap: 8px;\n\n    button {\n      svg {\n        path {\n          fill: ",";\n        }\n      }\n    }\n\n    button:last-child {\n      svg {\n        transform: rotate(180deg);\n      }\n    }\n  }\n"]);return LeaderboardNav_templateObject=function(){return e},e}let v=a.default.div.withConfig({componentId:"sc-ac18a896-0"})(LeaderboardNav_templateObject(),e=>{let{theme:n}=e;return n.colors.text.primary},e=>{let{theme:n}=e;return n.colors.text.secondary},e=>{let{theme:n}=e;return n.colors.text.accent.blue},e=>{let{theme:n}=e;return n.colors.text.accent.blue},e=>{let{theme:n}=e;return n.colors.text.primary});var leaderboard_LeaderboardNav=function(e){var n;let{setCurrentDate:t,currentDate:r,currentFilter:a,challengeTitles:i={}}=e,o=(0,m.r)(),s=null!==(n=i[r])&&void 0!==n?n:null;function offset(e){let[n,t,l]=r.split("-").map(Number),a=new Date(n,t-1,l+e);return a.toLocaleDateString("en-CA")}return(0,l.jsxs)(v,{children:[(0,l.jsxs)("div",{className:"date-name",children:[(0,l.jsx)("p",{children:(0,b.p)(r)}),(0,l.jsx)(g(),{href:"/daily-challenge/".concat(r),children:(0,l.jsx)("span",{children:null!=s?s:"..."})})]}),(0,l.jsxs)("div",{className:"btn-wrapper",style:{opacity:"daily"==a?"1":"0"},children:[(0,l.jsx)(p.Z,{onClick:()=>t(offset(-1)),variant:"subtle",disabled:r<="2026-03-02",children:_}),(0,l.jsx)(p.Z,{onClick:()=>t(offset(1)),disabled:r>=o,variant:"subtle",children:_})]})]})};let _=(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,l.jsx)("path",{d:"M8 13L8 11L10 11L10 13L8 13ZM10 11L10 9L12 9L12 11L10 11ZM10 15L10 13L12 13L12 15L10 15ZM12 9L12 7L14 7L14 9L12 9ZM12 17L12 15L14 15L14 17L12 17ZM14 7L14 5L16 5L16 7L14 7ZM14 19L14 17L16 17L16 19L14 19Z",fill:"#020617"})});var V=t(20759),H=t(85307),k=t(58550),C=t(2990),icons_FireIcon=function(e){let{...n}=e;return(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",children:[(0,l.jsxs)("g",{"clip-path":"url(#clip0_407_36129)",children:[(0,l.jsx)("path",{d:"M27.5 40H12.5V37.5H27.5V40ZM12.5 37.5H10V35H12.5V37.5ZM30 37.5H27.5V35H30V37.5ZM10 35H7.5V32.5H10V35ZM32.5 35H30V32.5H32.5V35ZM7.5 32.5H5V27.5H7.5V32.5ZM35 32.5H32.5V27.5H35V32.5ZM5 27.5H2.5V20H5V27.5ZM37.5 27.5H35V20H37.5V27.5ZM7.5 20H5V1
15H7.5V20ZM15 20H12.5V17.5H15V20ZM35 20H32.5V15H35V20ZM12.5 17.5H10V15H12.5V17.5ZM17.5 17.5H15V10H17.5V17.5ZM10 15H7.5V12.5H10V15ZM32.5 15H30V10H32.5V15ZM20 10H17.5V2.5H20V10ZM30 10H27.5V7.5H30V10ZM27.5 7.5H25V5H27.5V7.5ZM25 5H22.5V2.5H25V5ZM22.5 2.5H20V0H22.5V2.5Z",fill:"#020617"}),(0,l.jsx)("path",{d:"M22.5 5H25V7.5H27.5V10H30V15H32.5V20H35V27.5H32.5V32.5H30V35H27.5V37.5H12.5V35H10V32.5H7.5V27.5H5V20H7.5V15H10V17.5H12.5V20H15V17.5H17.5V10H20V2.5H22.5V5Z",fill:"#FF7A00"}),(0,l.jsx)("path",{d:"M25 15H27.5V20H30V30H27.5V32.5H25V35H15V32.5H12.5V30H10V22.5H12.5V25H17.5V22.5H20V15H22.5V12.5H25V15Z",fill:"#FDE047"})]}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"clip0_407_36129",children:(0,l.jsx)("rect",{width:"40",height:"40",fill:"white"})})})]})},M=t(77265);function LeaderBoard_templateObject(){let e=(0,r._)(['\n  padding: 16px;\n  font-family: "Mulish", sans-serif;\n\n  .owner-wrapper {\n    margin-top: 16px;\n    display: flex;\n    flex-direction: column;\n    gap: 16px;\n\n    .label-wrapper {\n      display: flex;\n      align-items: center;\n      gap: 14px;\n\n      .line {\n        height: 2px;\n        flex: 1;\n        background-color: ',";\n      }\n\n      p {\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 LeaderBoard_templateObject=function(){return e},e}function _templateObject1(){let e=(0,r._)(["\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  flex-direction: column;\n  gap: 16px;\n\n  p {\n    color: ",";\n  }\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,r._)(["\n  padding: 10px 16px;\n  display: flex;\n  flex-wrap: wrap;\n  gap: 24px;\n  border-radius: 4px;\n\n  &.owner {\n    background: ",";\n    border: 2px solid ",";\n  }\n\n  &.progress {\n    background: ",";\n    border: 2px solid ",";\n  }\n\n  .user-wrapper {\n    flex: 1;\n    display: flex;\n    align-items: center;\n    gap: 12px;\n\n    a {\n      color: inherit;\n      text-decoration: none;\n    }\n\n    .placement {\n      width: 37px;\n      color: ",';\n      font-family: "PixelGridS";\n      font-size: 18px;\n      font-weight: 700;\n      line-height: 140%;\n      letter-spacing: 0.54px;\n    }\n\n    .user {\n      display: flex;\n      align-items: center;\n      gap: 16px;\n\n      img {\n        flex-shrink: 0;\n      }\n\n      .user-image {\n        width: 40px;\n        height: 40px;\n        object-fit: cover;\n        border-radius: 50%;\n      }\n\n      .names-wrapper {\n        display: flex;\n        flex-direction: column;\n\n        p {\n          :hover {\n            text-decoration: underline;\n          }\n        }\n\n        .name {\n          display: flex;\n          align-items: center;\n          gap: 4px;\n          color: ',";\n          font-size: 16px;\n          font-weight: 700;\n          line-height: 150%;\n\n          span {\n            width: 24px;\n            height: 24px;\n            flex-shrink: 0;\n          }\n        }\n\n        .username {\n          color: ",";\n          font-size: 14px;\n          font-weight: 500;\n          line-height: 150%;\n        }\n      }\n    }\n  }\n\n  .stats {\n    display: flex;\n    align-items: center;\n    gap: 32px;\n\n    /* display: grid;\n    grid-template-columns: auto 1fr 1fr;\n    align-items: center;\n    gap: 32px; */\n\n    .language {\n      padding: 5px 12px;\n      border-radius: 100px;\n      background-color: ",";\n      color: ",";\n      font-size: 12px;\n      font-weight: 700;\n      line-height: normal;\n      letter-spacing: 1.68px;\n      text-transform: uppercase;\n    }\n\n    .general {\n      display: flex;\n      align-items: center;\n      gap: 8px;\n\n      color: ",";\n      font-size: 16px;\n      font-weight: 700;\n      line-height: normal;\n\n      .general-icon {\n        path {\n          fill: ",";\n        }\n      }\n    }\n\n    .tries {\n      width: 50px;\n    }\n\n    .streak svg {\n      width: 18px;\n      height: 18px;\n      flex-shrink: 0;\n    }\n  }\n"]);
1return _templateObject2=function(){return e},e}let Z=(0,a.default)(V.Z).withConfig({componentId:"sc-16c5d660-0"})(LeaderBoard_templateObject(),e=>{let{theme:n}=e;return n.colors.border.grey.medium},e=>{let{theme:n}=e;return n.colors.text.tertiary}),D=a.default.div.withConfig({componentId:"sc-16c5d660-1"})(_templateObject1(),e=>{let{theme:n}=e;return n.colors.text.secondary});var leaderboard_LeaderBoard=function(e){let{currentFilter:n,entries:t,userEntry:r}=e;return 0===t.length?(0,l.jsxs)(D,{children:[(0,l.jsx)("img",{src:"/images/character_gifs/search.gif",alt:"searching character"}),(0,l.jsx)("p",{children:"The leaderboard is empty… for now. Be the first to claim the top spot!"})]}):(0,l.jsxs)(Z,{children:[t.map((e,t)=>(0,l.jsx)(LeaderboardEntry,{user:e,placement:t+1,currentFilter:n},e.id)),(null==r?void 0:r.rank)&&(null==r?void 0:r.rank)>25&&(0,l.jsxs)("div",{className:"owner-wrapper",children:[(0,l.jsxs)("div",{className:"label-wrapper",children:[(0,l.jsx)("div",{className:"line"}),(0,l.jsx)("p",{children:"My progress"}),(0,l.jsx)("div",{className:"line"})]}),(0,l.jsx)(LeaderboardEntry,{user:r,placement:null==r?void 0:r.rank,currentFilter:n,forProgress:!0},r.id)]})]})};let L=a.default.div.withConfig({componentId:"sc-16c5d660-2"})(_templateObject2(),e=>{let{theme:n}=e;return n.colors.background.green.primary},e=>{let{theme:n}=e;return n.colors.background.green.tertiary},e=>{let{theme:n}=e;return n.colors.background.grey.secondary},e=>{let{theme:n}=e;return n.colors.border.grey.medium},e=>{let{theme:n}=e;return n.colors.text.tertiary},e=>{let{theme:n}=e;return n.colors.text.primary},e=>{let{theme:n}=e;return n.colors.text.tertiary},e=>{let{theme:n}=e;return n.colors.background.grey.tertiary},e=>{let{theme:n}=e;return n.colors.text.secondary},e=>{let{theme:n}=e;return n.colors.text.tertiary},e=>{let{theme:n}=e;return n.colors.text.tertiary});function formatTime(e){let n=Math.floor(e/86400),t=Math.floor(e%86400/3600),r=Math.floor(e%3600/60),l=e%60;return n>=7?"".concat(n,"d ").concat(t,"h"):n>0?"".concat(n,"d ").concat(t,"h ").concat(r,"m"):t>0?"".concat(t,":").concat(r.toString().padStart(2,"0"),":").concat(l.toString().padStart(2,"0")):"".concat(r,":").concat(l.toString().padStart(2,"0"))}function LeaderboardEntry(e){var n,t;let{user:r,placement:a,currentFilter:i,forProgress:o=!1}=e,s=(0,M.lL)(),c=(0,j.useRef)(null),d=(0,x.v9)(f.f8),h=(0,H.Z)(r.totalXp),p={daily:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("p",{className:"language",children:r.language}),(0,l.jsxs)("p",{className:"general",children:[(0,l.jsx)(k.Z,{className:"general-icon"})," ",formatTime(null!==(n=r.wallClockSolveTimeSeconds)&&void 0!==n?n:r.solveTimeSeconds)]}),(0,l.jsxs)("p",{className:"general tries",children:[r.triesUsed," ",1===r.triesUsed?"try":"tries"]})]}),"all-time":(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("p",{className:"general",children:[(0,l.jsx)(k.Z,{className:"general-icon"})," ",formatTime(null!==(t=r.totalWallClockTime)&&void 0!==t?t:r.totalTimeSpent)]}),(0,l.jsxs)("p",{className:"general",children:[(0,l.jsx)(C.Z,{className:"general-icon"})," ",r.totalCompleted," completed"]})]}),streak:(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("p",{className:"general streak",children:[(0,l.jsx)(icons_FireIcon,{})," ",r.currentStreak," day",1!==r.currentStreak?"s":""]})})};return(0,l.jsxs)(L,{className:o?"progress":d==(null==r?void 0:r.userId)&&"owner",children:[(0,l.jsxs)("div",{className:"user-wrapper",children:[(0,l.jsx)("p",{className:"placement",ref:c,onMouseEnter:()=>{a>99&&s.showTooltip(a,c.current,"top")},onMouseLeave:()=>{s.hideTooltip()},children:a>99?"99+":a}),(0,l.jsx)(g(),{href:"/@".concat(r.username),target:"_blank",className:"nes-pointer",children:(0,l.jsxs)("div",{className:"user",children:[(0,l.jsx)("img",{className:"user-image",src:r.avatar||"/images/default-profile-pic.jpg",alt:"".concat(r.displayName," avatar")}),(0,l.jsxs)("div",{className:"names-wrapper",children:[(0,l.jsxs)("p",{className:"name",children:[r.displayName," ",(0,l.jsx)("span",{children:(0,l.jsx)("img",{src:h.badge,alt:"rank badge"})})]}),(0,l.jsxs)("p",{className:"username",children:["@",r.username]})]})]})})]}),(0,l.jsx)("div",{className:"stats",children:p[i]})]})}var O=t(55265);
1function DailyChallengeLeaderboard_templateObject(){let e=(0,r._)(["\n  display: flex;\n  flex-direction: column;\n  gap: 24px;\n\n  * {\n    margin: 0px;\n  }\n\n  h3 {\n    color: ",';\n    font-family: "PixelGridM";\n    font-size: 24px;\n    font-style: normal;\n    font-weight: 700;\n    line-height: 140%;\n    letter-spacing: 0.72px;\n  }\n\n  .community-feed-filters {\n    width: fit-content;\n  }\n']);return DailyChallengeLeaderboard_templateObject=function(){return e},e}let N={daily:"daily","all-time":"allTime",streak:"streak"},S=["CJiVr8vTo8X7aHNBQTXpoJO7ZRN2","5cAsDQCY5yREXW1uUDs0oJXnh6p2","9yh4KpksHLTNrDZ30QYzKP81aX73","dLqRFcA2age9SFJGUWjDzW2cXL63","kuaILyqE6YdeDYVxia674Uy6eRf1","C5RRxgcBLoUMrXAoNkIXeGJpVHd2","dDi3Zn2Sj7hd1cCL5Ne9APaskHh2","uNVIUWYTB6XGIK13OIftDe4bW1Z2","vZDxvmiXqvZWgnxnLrCYlDRNpOH3","d6RZ0BJtpNXqUZx7WjFSNKXZ54U2"],P=a.default.div.withConfig({componentId:"sc-752e6b7b-0"})(DailyChallengeLeaderboard_templateObject(),e=>{let{theme:n}=e;return n.colors.text.primary});var leaderboard_DailyChallengeLeaderboard=function(e){let{currentDate:n,setCurrentDate:t,challengeTitles:r}=e,[a,i]=(0,j.useState)("daily"),{refresh:o,isLoading:s,error:c,dailyEntries:d,allTimeEntries:h,streakEntries:p,userEntry:u}=(0,O.Tf)({dayId:n});return(0,j.useEffect)(()=>{o(N[a])},[a,o]),console.log({userEntry:u}),(0,l.jsxs)(P,{children:[(0,l.jsx)("h3",{children:"Leaderboards"}),(0,l.jsx)(w.Z,{filters:{daily:{displayText:"Daily",internalName:"daily"},"all-time":{displayText:"All Time",internalName:"all-time"},streak:{displayText:"Streak",internalName:"streak"}},currentFilter:a,setCurrentFilter:i}),(0,l.jsx)(leaderboard_LeaderboardNav,{setCurrentDate:t,currentDate:n,currentFilter:a,challengeTitles:r}),(0,l.jsx)(leaderboard_LeaderBoard,{currentFilter:a,entries:("daily"===a?d:"all-time"===a?h:p).filter(e=>!S.includes(e.userId)),userEntry:u})]})};t(36488),t(79551);var E=t(48439),T=t(84992),B=t(32884);function DailyChallengeCalender_templateObject(){let e=(0,r._)(['\n  font-family: "Mulish", sans-serif;\n  background-color: ',";\n  color: ",';\n\n  .calendar-container {\n    padding: 16px;\n    display: flex;\n    justify-content: center;\n  }\n\n  .mantine-DatePicker-calendarHeaderLevel {\n    font-family: "Mulish", sans-serif;\n    line-height: 1.5;\n    font-weight: bold;\n    font-size: 16px;\n    color: ',";\n\n    &:hover {\n      background-color: ",";\n    }\n  }\n\n  .mantine-DatePicker-calendarHeaderControl {\n    color: ",";\n\n    &:hover {\n      background-color: ",";\n    }\n  }\n\n  .mantine-DatePicker-monthsListControl,\n  .mantine-DatePicker-yearsListControl {\n    color: ",";\n\n    &:hover {\n      background-color: ",";\n    }\n\n    &[data-selected] {\n      background-color: ",";\n      color: ",";\n    }\n  }\n\n  .mantine-DatePicker-weekday {\n    text-align: center;\n    color: transparent;\n  }\n\n  .mantine-DatePicker-weekday::first-letter {\n    color: ",';\n    /* margin-left: 0.5rem; */\n    font-weight: bold;\n    font-family: "Mulish", sans-serif !important;\n  }\n\n  .mantine-DatePicker-day:where([data-weekend]),\n  .mantine-DatePicker-day {\n    color: ',";\n  }\n\n  .mantine-DatePicker-day:where([data-selected]) {\n    background-color: ",";\n    color: ",";\n    border-radius: 50%;\n  }\n\n  .mantine-DatePicker-day {\n    font-weight: bold;\n  }\n\n  .mantine-DatePicker-month {\n    width: 100%;\n  }\n\n  .mantine-DatePicker-calendarHeader {\n    width: 100%;\n  }\n"]);return DailyChallengeCalender_templateObject=function(){return e},e}let F=a.default.div.withConfig({componentId:"sc-228504ef-0"})(DailyChallengeCalender_templateObject(),e=>{let{theme:n}=e;return n.colors.background.grey.primary},e=>{let{theme:n}=e;return n.colors.text.primary},e=>{let{theme:n}=e;return n.colors.text.primary},e=>{let{theme:n}=e;return n.colors.background.grey.secondary},e=>{let{theme:n}=e;return n.colors.text.primary},e=>{let{theme:n}=e;return n.colors.background.grey.secondary},e=>{let{theme:n}=e;return n.colors.text.primary},e=>{let{theme:n}=e;return n.colors.background.grey.secondary},e=>{let{theme:n}=e;return n.colors.palette.blue["200"]},e=>{let{theme:n}=e;return n.colors.semantic.text.accent.blue},e=>{let{theme:n}=e;return n.colors.semantic.border.grey.dark},e=>{let{theme:n}=e;return n.colors.semantic.text.tertiary},e=>{let{theme:n}=e;return n.colors.palette.blue["200"]},e=>{let{theme:n}=e;return n.colors.semantic.text.accent.blue}),I=(0,E.j)({});var landingPage_DailyChallengeCalender=function(e){let{highlightedDays:n=[],onDaySelect:t,challengeTitles:r={}}
1=e,[i,o]=(0,j.useState)(new Date),s=(0,j.useContext)(a.ThemeContext),c=(0,j.useMemo)(()=>new Set(n),[n]),{showTooltip:d,hideTooltip:h}=(0,M.lL)(),p=(0,j.useMemo)(()=>(0,m.r)(),[]),u=(0,j.useCallback)(e=>{let n="".concat(e.getFullYear(),"-").concat(String(e.getMonth()+1).padStart(2,"0"),"-").concat(String(e.getDate()).padStart(2,"0")),r=c.has(n),l=n===p;return{style:{backgroundColor:r||l?s.colors.palette.blue["200"]:"transparent",borderRadius:"50%",color:r||l?"#0065AB":"#94A3B8",border:l?"2px solid #0065AB":"none"},onClick:()=>{n<"2026-03-02"||n>p||(o(e),null==t||t(n))}}},[c,p,s.colors.palette.blue,t]);return(0,l.jsx)(F,{children:(0,l.jsx)(V.Z,{className:"calendar-container",children:(0,l.jsx)(T.M,{theme:I,children:(0,l.jsx)(B.M,{weekdayFormat:"dd",firstDayOfWeek:1,value:i,hideOutsideDates:!0,onChange:e=>o(e),renderDay:e=>{let n=e.getDate(),t="".concat(e.getFullYear(),"-").concat(String(e.getMonth()+1).padStart(2,"0"),"-").concat(String(e.getDate()).padStart(2,"0")),a=t<=p?r[t]:null;return(0,l.jsx)("div",{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},onMouseEnter:e=>{a&&d(a.trim(),e.currentTarget,"top",{showArrow:!0})},onMouseLeave:h,children:n})},getDayProps:u})})})})};function StatsConsumer_templateObject(){let e=(0,r._)(["\n  padding: 18px 16px;\n  display: flex;\n  align-items: center;\n  gap: 16px;\n\n  .info {\n    display: flex;\n    flex-direction: column;\n    gap: 4px;\n\n    .num {\n      color: ",';\n      font-family: "PixelGridM";\n      font-size: 20px;\n      font-weight: 700;\n      line-height: 140%;\n      letter-spacing: 0.6px;\n    }\n\n    label {\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 StatsConsumer_templateObject=function(){return e},e}let A=(0,a.default)(V.Z).withConfig({componentId:"sc-abdc62a5-0"})(StatsConsumer_templateObject(),e=>{let{theme:n}=e;return n.colors.text.primary},e=>{let{theme:n}=e;return n.colors.text.tertiary});var landingPage_StatsConsumer=function(e){let{icon:n,num:t,label:r}=e;return(0,l.jsxs)(A,{children:[n,(0,l.jsxs)("div",{className:"info",children:[(0,l.jsx)("p",{className:"num",children:t}),(0,l.jsx)("label",{children:r})]})]})},z=t(64955),icons_RedClockIcon=function(e){let{...n}=e;return(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",children:[(0,l.jsxs)("g",{clipPath:"url(#clip0_407_36276)",children:[(0,l.jsx)("rect",{x:"10",y:"12.5",width:"20",height:"17.5",fill:"white"}),(0,l.jsx)("path",{d:"M27.5 32.5H12.5V30H27.5V32.5ZM12.5 30H10V27.5H12.5V30ZM30 30H27.5V27.5H30V30ZM10 27.5H7.5V15H10V27.5ZM32.5 27.5H30V15H32.5V27.5ZM12.5 15H10V12.5H12.5V15ZM30 15H27.5V12.5H30V15ZM27.5 12.5H12.5V10H27.5V12.5Z",fill:"#F43F5E"}),(0,l.jsx)("rect",{x:"17.5",y:"15",width:"2.5",height:"10",fill:"#020617"}),(0,l.jsx)("rect",{x:"20",y:"22.5",width:"5",height:"2.5",fill:"#020617"}),(0,l.jsx)("rect",{x:"12.5",y:"7.5",width:"15",height:"2.5",fill:"#BE123C"}),(0,l.jsx)("rect",{x:"12.5",y:"32.5",width:"15",height:"2.5",fill:"#BE123C"}),(0,l.jsx)("rect",{x:"12.5",y:"5",width:"5",height:"2.5",fill:"#020617"}),(0,l.jsx)("rect",{x:"12.5",y:"2.5",width:"2.5",height:"2.5",fill:"#020617"}),(0,l.jsx)("rect",{x:"25",y:"2.5",width:"2.5",height:"2.5",fill:"#020617"}),(0,l.jsx)("rect",{x:"27.5",y:"7.5",width:"2.5",height:"2.5",fill:"#020617"}),(0,l.jsx)("rect",{x:"27.5",y:"32.5",width:"2.5",height:"2.5",fill:"#020617"}),(0,l.jsx)("rect",{x:"10",y:"7.5",width:"2.5",height:"2.5",fill:"#020617"}),(0,l.jsx)("rect",{x:"10",y:"32.5",width:"2.5",height:"2.5",fill:"#020617"}),(0,l.jsx)("rect",{x:"30",y:"10",width:"2.5",height:"2.5",fill:"#020617"}),(0,l.jsx)("rect",{x:"30",y:"30",width:"2.5",height:"2.5",fill:"#020617"}),(0,l.jsx)("rect",{x:"7.5",y:"10",width:"2.5",height:"2.5",fill:"#020617"}),(0,l.jsx)("rect",{x:"7.5",y:"30",width:"2.5",height:"2.5",fill:"#020617"}),(0,l.jsx)("rect",{x:"32.5",y:"12.5",width:"2.5",height:"2.5",fill:"#020617"}),(0,l.jsx)("rect",{x:"35",y:"15",width:"2.5",height:"12.5",fill:"#020617"}),(0,l.jsx)("rect",{x:"2.5",y:"15",width:"2.5",height:"12.5",fill:"#020617"}),(0,l.jsx)("rect",{x:"32.5",y:"27.5",width:"2.5",height:"2.5",fill:"#020617"}),(0,l.jsx)("rect",{x:"5",y:"12.5",width:"2.5",height:"2.5",fill:"#020617"}),(0,l.jsx)("rect",{x:"5",y:"27.5",width:"2.5",height:"2.5",fill:"#020617"}),(0,l.jsx)("rect",{x:"22.5",y:"5",width:"5",height:"2.5",fill:"#020617"}),(0,l.jsx)("rect",{x:"12.5",y:"35",width:"15",height:"2.5",fill:"#020617"}),(0,l.jsx)("rect",{x:"15",y:"0",width:"10",height:"2.5",fill:"#020617"}),(0,l.jsx)("rect",{x:"10",y:"10",width:"2.5",height:"2.5",fill:"#BE123C"}),(0,l.jsx)("rect",{x:"10",y:"30",width:"2.5",height:"2.5",fill:"#BE123C"}),(0,l.jsx)("rect",{x:"27.5",y:"10",width:"2.5",height:"2.5",fill:"#BE123C"}),(0,l.jsx)("rect",{x:"27.5",y:"30",width:"2.5",height:"2.5",fill:"#BE123C"}),(0,l.jsx)("rect",{x:"30",y:"12.5",width:"2.5",height:"2.5",fill:"#BE123C"}),(0,l.jsx)("rect",{x:"5",y:"15",width:"2.5",height:"12.5",fill:"#BE123C"}),(0,l.jsx)("rect",{x:"32.5",y:"15",width:"2.5",height:"12.5",fill:"#BE123C"}),(0,l.jsx)("rect",{x:"7.5",y:"12.5",width:"2.5",height:"2.5",fill:"#BE123C"}),(0,l.jsx)("rect",{x:"7.5",y:"27.5",width:"2.5",height:"2.5",fill:"#BE123C"}),(0,l.jsx)("rect",{x:"30",y:"27.5",width:"2.5",height:"2.5",fill:"#BE123C"}),(0,l.jsx)("rect",{x:"15",y:"2.5",width:"10",height:"2.5",fill:"#F43F5E"}),(0,l.jsx)("rect",{x:"17.5",y:"5",width:"5",height:"2.5",fill:"#BE123C"})]}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"clip0_407_36276",children:(0,l.jsx)("rect",{width:"40",height:"40",fill:"white"})})})]})};
1function DailyChallengeSignup_templateObject(){let e=(0,r._)(["\n  padding: 22px 20px;\n  display: flex;\n  flex-direction: column;\n  gap: 16px;\n\n  .track {\n    color: ",";\n    font-size: 18px;\n    font-weight: 700;\n    line-height: 150%;\n  }\n\n  .description {\n    color: ",";\n    font-size: 16px;\n    font-style: normal;\n    font-weight: 500;\n    line-height: 150%;\n  }\n\n  .btn-wrapper {\n    display: flex;\n    flex-direction: column;\n    gap: 12px;\n\n    a {\n      text-decoration: none;\n    }\n\n    button {\n      width: 100%;\n    }\n  }\n"]);return DailyChallengeSignup_templateObject=function(){return e},e}let R=(0,a.default)(V.Z).withConfig({componentId:"sc-ca1eb06b-0"})(DailyChallengeSignup_templateObject(),e=>{let{theme:n}=e;return n.colors.text.primary},e=>{let{theme:n}=e;return n.colors.text.secondary});var landingPage_DailyChallengeSignup=function(){return(0,l.jsxs)(R,{children:[(0,l.jsx)(z.Z,{}),(0,l.jsx)("p",{className:"track",children:"Track your progress"}),(0,l.jsx)("p",{className:"description",children:"Create an account to track your progress and compete for a spot on the leaderboards!"}),(0,l.jsxs)("div",{className:"btn-wrapper",children:[(0,l.jsx)(g(),{href:"/signup",children:(0,l.jsx)(p.Z,{size:"small",children:"Sign up"})}),(0,l.jsx)(g(),{href:"/login",children:(0,l.jsx)(p.Z,{size:"small",variant:"subtle",children:"Sign in"})})]})]})},U=t(86961),X=t(40321);function daily_challenge_templateObject(){let e=(0,r._)(["\n  padding-top: 3.85rem;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n\n  * {\n    margin: 0px;\n  }\n\n  .outer-grid-wrapper {\n    width: 100%;\n    display: flex;\n    justify-content: center;\n    padding: 0rem 1rem;\n  }\n\n  .grid-wrapper {\n    width: 1152px;\n    display: grid;\n    gap: 50px;\n    max-width: 100%;\n    padding: 50px 0px;\n    scroll-margin-top: 4.5rem;\n    grid-template-columns: 1fr;\n\n    "," {\n      grid-template-columns: 2.3fr 1fr;\n    }\n\n    .stats-wrapper {\n      display: flex;\n      flex-direction: column;\n      gap: 12px;\n    }\n  }\n"]);return daily_challenge_templateObject=function(){return e},e}let W=a.default.div.withConfig({componentId:"sc-3d7f549d-0"})(daily_challenge_templateObject(),e=>{let{theme:n}=e;return n.breakpoints.sm});function daily_challenge_formatTime(e){let n=Math.floor(e/3600),t=Math.floor(e%3600/60),r=e%60;return n>0?"".concat(n,"h ").concat(t,"m ").concat(r,"s"):t>0?"".concat(t,"m ").concat(r,"s"):"".concat(r,"s")}var Y=!0,pages_daily_challenge=function(){var e,n;let t=(0,s.useRouter)(),r=(0,c.T)(),a=o().get().codedextoken||"",[i,p]=(0,j.useState)(m.r),u=(0,x.v9)(X.N4),[g,f]=i.split("-").map(Number),y=(0,O.dW)(g,f),{loadHistory:w,loadMore:b,hasMore:v,history:_}=(0,O.jL)();return(0,j.useEffect)(()=>{a&&w({wonOnly:!1})},[a,w]),(0,j.useEffect)(()=>{v&&b({wonOnly:!1})},[v,b]),(0,j.useEffect)(()=>{if(!t.isReady||"today"!==t.query.pending)return;r((0,d.fz)({type:"info",message:"This challenge is not available yet.",timeout:5e3}));let e={...t.query};delete e.pending,t.replace({pathname:t.pathname,query:e},void 0,{shallow:!0})},[t.isReady,t.query,t.pathname,t,r]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(h.Z,{}),(0,l.jsxs)(W,{children:[(0,l.jsx)(landingPage_DailyChallengeBanner,{setCurrentDate:p}),(0,l.jsx)("div",{className:"outer-grid-wrapper",children:(0,l.jsxs)("div",{id:"leaderboard",className:"grid-wrapper",children:[(0,l.jsx)(leaderboard_DailyChallengeLeaderboard,{currentDate:i,setCurrentDate:p,challengeTitles:y}),(0,l.jsx)("div",{className:"stats-wrapper",children:a?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(landingPage_DailyChallengeCalender,{highlightedDays:(null==_?void 0:_.map(e=>e.dayId).filter(e=>e>="2026-03-02"))||[],onDaySelect:p,challengeTitles:y}),(0,l.jsx)(landingPage_StatsConsumer,{icon:(0,l.jsx)(icons_FireIcon,{}),num:(null==u?void 0:u.currentStreak)||0,label:"my current streak"})," ",(0,l.jsx)(landingPage_StatsConsumer,{icon:(0,l.jsx)(z.Z,{}),num:(null==u?void 0:u.totalCompleted)||0,label:"my total solved"})," ",(0,l.jsx)(landingPage_StatsConsumer,{icon:(0,l.jsx)(icons_RedClockIcon,{}),num:daily_challenge_formatTime((null==u?void 0:u.fastestTime)||0),label:"my fastest time"}),(0,l.jsx)(landingPage_StatsConsumer,{icon:(0,l.jsx)(icons_RedClockIcon,{}),num:daily_challenge_formatTime(null!==(n=null!==(e=null==u?void 0:u.totalWallClockTime)&&void 0!==e?e:null==u?void 0:u.totalTimeSpent)&&void 0!==n?n:0),label:"my total time"})]}):(0,l.jsx)(landingPage_DailyChallengeSignup,{})})]})})]}),(0,l.jsx)(U.Z,{disableMarginTop:!0})]})}},18498:function(e,n,t){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var l in n=arguments[t])Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l]);return e}).apply(this,arguments)},l=this&&this.__createBinding||(Object.create?function(e,n,t,r){void 0===r&&(r=t);var l=Object.getOwnPropertyDescriptor(n,t);(!l||("get"in l?!n.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,r,l)}:function(e,n,t,r){void 0===r&&(r=t),e[r]=n[t]}),a=this&&this.__setModuleDefault||(Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n}
1),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)"default"!==t&&Object.prototype.hasOwnProperty.call(e,t)&&l(n,e,t);return a(n,e),n},o=this&&this.__rest||function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>n.indexOf(r)&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,r=Object.getOwnPropertySymbols(e);l<r.length;l++)0>n.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(t[r[l]]=e[r[l]]);return t};Object.defineProperty(n,"__esModule",{value:!0});var s=i(t(67294)),c=t(96657),d=(0,t(60010).createAnimation)("BeatLoader","50% {transform: scale(0.75);opacity: 0.2} 100% {transform: scale(1);opacity: 1}","beat");n.default=function(e){var n=e.loading,t=e.color,l=void 0===t?"#000000":t,a=e.speedMultiplier,i=void 0===a?1:a,h=e.cssOverride,p=e.size,u=void 0===p?15:p,g=e.margin,x=void 0===g?2:g,f=o(e,["loading","color","speedMultiplier","cssOverride","size","margin"]),m=r({display:"inherit"},void 0===h?{}:h),style=function(e){return{display:"inline-block",backgroundColor:l,width:(0,c.cssValue)(u),height:(0,c.cssValue)(u),margin:(0,c.cssValue)(x),borderRadius:"100%",animation:"".concat(d," ").concat(.7/i,"s ").concat(e%2?"0s":"".concat(.35/i,"s")," infinite linear"),animationFillMode:"both"}};return void 0===n||n?s.createElement("span",r({style:m},f),s.createElement("span",{style:style(1)}),s.createElement("span",{style:style(2)}),s.createElement("span",{style:style(3)})):null}},60010:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.createAnimation=void 0,n.createAnimation=function(e,n,t){var r="react-spinners-".concat(e,"-").concat(t);if("undefined"==typeof window||!window.document)return r;var l=document.createElement("style");document.head.appendChild(l);var a=l.sheet,i="\n    @keyframes ".concat(r," {\n      ").concat(n,"\n    }\n  ");return a&&a.insertRule(i,0),r}},96657:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.cssValue=n.parseLengthAndUnit=void 0;var t={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function parseLengthAndUnit(e){if("number"==typeof e)return{value:e,unit:"px"};var n,r=(e.match(/^[0-9.]*/)||"").toString();n=r.includes(".")?parseFloat(r):parseInt(r,10);var l=(e.match(/[^0-9]*$/)||"").toString();return t[l]?{value:n,unit:l}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(n,"px.")),{value:n,unit:"px"})}n.parseLengthAndUnit=parseLengthAndUnit,n.cssValue=function(e){var n=parseLengthAndUnit(e);return"".concat(n.value).concat(n.unit)}},59391:function(e,n,t){"use strict";function __WEBPACK_DEFAULT_EXPORT__(e){return{all:e=e||new Map,on:function(n,t){var r=e.get(n);r?r.push(t):e.set(n,[t])},off:function(n,t){var r=e.get(n);r&&(t?r.splice(r.indexOf(t)>>>0,1):e.set(n,[]))},emit:function(n,t){var r=e.get(n);r&&r.slice().map(function(e){e(t)}),(r=e.get("*"))&&r.slice().map(function(e){e(n,t)})}}}t.d(n,{Z:function(){return __WEBPACK_DEFAULT_EXPORT__}})}},function(e){e.O(0,[1272,8700,3129,4153,1622,9280,4679,9428,3355,6961,6948,9774,2888,179],function(){return e(e.s=87065)}),_N_E=e.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.