1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4987],{66521:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/daily-challenge/[date]",function(){return t(30979)}])},30979:function(n,e,t){"use strict";t.r(e),t.d(e,{__N_SSG:function(){return X},default:function(){return _date_}});var l=t(85893),i=t(67294),o=t(62770),r=t(9473),a=t(73845),s=t(62286),c=t.n(s),d=t(40321),p=t(609),h=t(45198),x=t(55265),V=t(12131),H=t(31021),g=t(64742),f=t(99428),m=t(73691),u=t(37601),w=t(34676),y=t(82729),j=t(19521),M=t(72502),v=t(45540),Z=t(23591),C=t(73857),b=t(41664),k=t.n(b),_=t(3649),D=t(52317);function _templateObject(){let n=(0,y._)(["\n box-shadow: 0 5px 16px 0 ",";\n\n border-radius: 10%;\n width: 100%;\n max-width: 300px;\n position: absolute;\n bottom: calc(100% + 16px);\n\n left: 50%;\n transform: translateX(-50%);\n\n * {\n margin: 0px;\n }\n\n a {\n text-decoration: none;\n }\n\n .intent-wrapper {\n height: inherit;\n padding: 8px 10px;\n background-color: ",";\n }\n"]);return _templateObject=function(){return n},n}let B=j.default.div.withConfig({componentId:"sc-5b152a34-0"})(_templateObject(),n=>{let{theme:e}=n;return e.colors.background.grey.boxshadow},n=>{let{theme:e}=n;return e.colors.background.grey.primary});var dailyChallenge_ShareIntentModel=function(n){let{setShowModel:e,dayId:i}=n,{copyToClipboard:o,shareOnTwitter:r,shareOnLinkedIn:a}=(0,x.Ol)({});async function handleDownloadModel(n){let{id:l}=n,o=document.getElementById(l);if(!o){console.error("element not found");return}try{let n=(await t.e(6926).then(t.t.bind(t,46926,23))).default,e=await n.toBlob(o);console.log("blob:",e);let l=document.createElement("a");l.download="daily-challenge-".concat(i,".png"),l.href=URL.createObjectURL(e),document.body.appendChild(l),l.click(),document.body.removeChild(l),URL.revokeObjectURL(l.href)}catch(n){console.error("download failed:",n)}e(!1)}return(0,l.jsx)(B,{children:(0,l.jsxs)(_.Z,{className:"intent-wrapper",children:[(0,l.jsx)(D.Z,{icon:(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,l.jsx)("path",{d:"M16.9043 6.06803C16.9043 6.24707 16.9043 6.3903 16.9043 6.56934C16.9043 11.5465 13.1445 17.2399 6.23372 17.2399C4.08529 17.2399 2.11589 16.6312 0.46875 15.557C0.755208 15.5928 1.04167 15.6286 1.36393 15.6286C3.11849 15.6286 4.72982 15.0199 6.01888 14.0173C4.37174 13.9814 2.97526 12.9072 2.50977 11.4033C2.76042 11.4391 2.97526 11.4749 3.22591 11.4749C3.54818 11.4749 3.90625 11.4033 4.19271 11.3317C2.47396 10.9736 1.1849 9.46973 1.1849 7.64355V7.60775C1.6862 7.89421 2.29492 8.03744 2.90365 8.07324C1.86523 7.3929 1.2207 6.24707 1.2207 4.95801C1.2207 4.24186 1.39974 3.59733 1.72201 3.06022C3.58398 5.31608 6.37695 6.81999 9.49219 6.99902C9.42057 6.71257 9.38477 6.42611 9.38477 6.13965C9.38477 4.06283 11.0677 2.37988 13.1445 2.37988C14.2187 2.37988 15.1855 2.80957 15.9017 3.56152C16.7253 3.38249 17.5488 3.06022 18.265 2.63053C17.9785 3.52572 17.4056 4.24186 16.6178 4.70736C17.3698 4.63574 18.1217 4.4209 18.7663 4.13444C18.265 4.88639 17.6204 5.53092 16.9043 6.06803Z",fill:"#64748B"})}),copy:"Share to Twitter/X",action:function(){r(),e(!1)}}),(0,l.jsx)(D.Z,{icon:(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,l.jsx)("path",{d:"M16.8743 1.77051C17.4831 1.77051 18.0202 2.30762 18.0202 2.95215V16.6663C18.0202 17.3109 17.4831 17.8122 16.8743 17.8122H3.08854C2.47982 17.8122 1.97852 17.3109 1.97852 16.6663V2.95215C1.97852 2.30762 2.47982 1.77051 3.08854 1.77051H16.8743ZM6.8125 15.5205V7.89355H4.44922V15.5205H6.8125ZM5.63086 6.81934C6.38281 6.81934 6.99154 6.21061 6.99154 5.45866C6.99154 4.70671 6.38281 4.06217 5.63086 4.06217C4.8431 4.06217 4.23438 4.70671 4.23438 5.45866C4.23438 6.21061 4.8431 6.81934 5.63086 6.81934ZM15.7285 15.5205V11.3311C15.7285 9.29004 15.263 7.67871 12.8639 7.67871C11.7181 7.67871 10.9303 8.32324 10.6081 8.93197H10.5723V7.89355H8.31641V15.5205H10.6797V11.7607C10.6797 10.7581 10.8587 9.79134 12.112 9.79134C13.3294 9.79134 13.3294 10.9372 13.3294 11.7965V15.5205H15.7285Z",fill:"#64748B"})}),copy:"Share to LinkedIn",action:function(){handleDownloadModel({id:"small-share-model"}),a(),e(!1)}}),(0,l.jsx)(D.Z,{icon:(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,l.jsx)("path",{d:"M9.16602 6.66699H3.33301V13.333H9.16602V15H1.66602V5H9.16602V6.66699ZM18.333 15H10.833V13.333H16.666V6.66699H10.833V5H18.333V15ZM14.166 10.833H5.83301V9.16699H14.166V10.833Z",fill:"#64748B"})}),copy:"Copy Results",action:function(){o({}),e(!1)}}),(0,l.jsx)(D.Z,{icon:(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",children:(0,l.jsx)("path",{d:"M20.4619 20.4619H0V17.9043H20.4619V20.4619ZM11.5098 10.2305H14.0674V12.7891H11.5098V15.3467H8.95215V12.7891H6.39453V10.2305H8.95215V0H11.5098V10.2305ZM6.39453 10.2305H3.83691V7.67285H6.39453V10.2305ZM16.625 10.23
105H14.0674V7.67285H16.625V10.2305Z",fill:"#64748B"})}),copy:"Download as image (9:16)",action:()=>handleDownloadModel({id:"big-share-model"})}),(0,l.jsx)(D.Z,{icon:(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",children:(0,l.jsx)("path",{d:"M20.4619 20.4619H0V17.9043H20.4619V20.4619ZM11.5098 10.2305H14.0674V12.7891H11.5098V15.3467H8.95215V12.7891H6.39453V10.2305H8.95215V0H11.5098V10.2305ZM6.39453 10.2305H3.83691V7.67285H6.39453V10.2305ZM16.625 10.2305H14.0674V7.67285H16.625V10.2305Z",fill:"#64748B"})}),copy:"Download as image (Square)",action:()=>handleDownloadModel({id:"small-share-model"})})]})})};function SmallModel_templateObject(){let n=(0,y._)(["\n width: 900px !important;\n height: 900px !important;\n background: ",";\n padding-top: 86.4px;\n display: flex;\n flex-direction: column;\n align-items: center;\n position: fixed;\n left: 1000%;\n top: 1000%;\n\n * {\n margin: 0px;\n }\n\n .logo {\n font-size: 28px;\n display: flex;\n gap: 12px;\n }\n\n .copy {\n padding-top: 57.6px;\n display: flex;\n flex-direction: column;\n\n .title {\n color: ",';\n text-align: center;\n font-family: "PixelGridM";\n font-size: 57.6px;\n font-style: normal;\n font-weight: 700;\n line-height: 140%;\n letter-spacing: 1.728px;\n }\n\n .date {\n margin-top: 14.4px;\n color: ',";\n text-align: center;\n font-size: 36px;\n font-style: normal;\n font-weight: 500;\n line-height: 120%;\n }\n }\n\n .grid-wrapper {\n flex: 1;\n padding-bottom: 24px;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 100%;\n\n .grid {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 43px;\n width: inherit;\n\n .emoji-grid-wrapper {\n span {\n width: 50px !important;\n height: 50px !important;\n font-size: 50px !important;\n }\n }\n\n .model-stats-wrapper {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 20px;\n width: inherit;\n\n p {\n display: flex;\n align-items: center;\n gap: 20px;\n padding: 12px 29px;\n border-radius: 242.727px;\n background-color: ",";\n color: ",";\n\n span {\n font-size: 29.127px;\n font-style: normal;\n font-weight: 700;\n line-height: normal;\n letter-spacing: 4.078px;\n text-transform: uppercase;\n white-space: nowrap;\n }\n\n svg {\n path {\n fill: ",";\n }\n }\n }\n\n .trophy {\n background-color: ",";\n color: ",";\n\n svg {\n path {\n fill: ",";\n }\n }\n }\n }\n\n .link {\n color: ",";\n font-size: 36px;\n font-style: normal;\n font-weight: 600;\n line-height: normal;\n\n span {\n color: ",";\n }\n }\n }\n }\n"]);return SmallModel_templateObject=function(){return n},n}let N=j.default.div.withConfig({componentId:"sc-f22abf58-0"})(SmallModel_templateObject(),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.tertiary},n=>{let{theme:e}=n;return e.colors.background.grey.tertiary},n=>{let{theme:e}=n;return e.colors.text.secondary},n=>{let{theme:e}=n;return e.colors.text.secondary},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.accent.yellow},n=>{let{theme:e}=n;return e.colors.text.primary},n=>{let{theme:e}=n;return e.colors.text.accent.blue});var screenshotModels_SmallModel=function(n){let{challenge:e}=n,{emojiGrid:t}=(0,x.Ol)({forModels:!0}),i=(0,r.v9)(d.ZZ),o=(0,r.v9)(d.Oe),a=(0,r.v9)(d.M7);return(0,l.jsxs)(N,{id:"small-share-model",children:[(0,l.jsxs)("div",{className:"logo",children:[(0,l.jsx)("img",{src:"/images/coin-cropped.png",width:"30px",height:"32px",alt:"coin logo",className:"logo-image"}),(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"221",height:"29",viewBox:"0 0 221 29",fill:"none",children:[(0,l.jsx)("path",{d:"M191.912 28.1101V24.0944H196.013V20.0786H200.114V16.0628H196.013V12.047H191.912V8.03125H200.114V12.047H204.214V16.0628H208.315V12.047H212.416V8.03125H220.617V12.047H216.516V16.0628H212.416V20.0786H216.516V24.0944H220.61
17V28.1101H212.416V24.0944H208.315V20.0786H204.214V24.0944H200.114V28.1101H191.912Z",fill:"white"}),(0,l.jsx)("path",{d:"M164.028 28.1101V24.0944H159.928V12.047H164.028V8.03125H184.532V12.047H188.633V20.0786H168.129V24.0944H184.532V28.1101H164.028ZM168.129 16.0628H180.431V12.047H168.129V16.0628Z",fill:"white"}),(0,l.jsx)("path",{d:"M132.042 28.1104V24.0946H127.941V12.0473H132.042V8.03155H148.445V0H156.646V28.1104H132.042ZM136.143 24.0946H148.445V12.0473H136.143V24.0946Z",fill:"white"}),(0,l.jsx)("path",{d:"M116.461 4.01577H112.36V0H116.461V4.01577ZM124.662 12.0473V20.0789H104.158V24.0946H120.561V28.1104H100.058V24.0946H95.957V12.0473H100.058V8.03155H108.259V4.01577H112.36V8.03155H120.561V12.0473H124.662ZM116.461 12.0473H104.158V16.0631H116.461V12.0473Z",fill:"white"}),(0,l.jsx)("path",{d:"M68.0714 28.1104V24.0946H63.9707V12.0473H68.0714V8.03155H84.4742V0H92.6756V28.1104H68.0714ZM72.1721 24.0946H84.4742V12.0473H72.1721V24.0946Z",fill:"white"}),(0,l.jsx)("path",{d:"M36.087 28.1101V24.0944H31.9863V12.047H36.087V8.03125H56.5906V12.047H60.6913V24.0944H56.5906V28.1101H36.087ZM40.1877 24.0944H52.4898V12.047H40.1877V24.0944Z",fill:"white"}),(0,l.jsx)("path",{d:"M8.20141 28.1104V24.0946H4.1007V20.0789H0V8.03155H4.1007V4.01577H8.20141V0H24.6042V4.01577H28.7049V8.03155H20.5035V4.01577H12.3021V8.03155H8.20141V20.0789H12.3021V24.0946H20.5035V20.0789H28.7049V24.0946H24.6042V28.1104H8.20141Z",fill:"white"})]})]}),(0,l.jsxs)("div",{className:"copy",children:[(0,l.jsx)("p",{className:"title",children:"Daily Challenge"}),(0,l.jsxs)("p",{className:"date",children:[(0,w.p)(e.dayId)," \xb7 ",e.title]})]}),(0,l.jsx)("div",{className:"grid-wrapper",children:(0,l.jsxs)("div",{className:"grid",children:[t,(0,l.jsxs)("div",{className:"model-stats-wrapper",children:[(0,l.jsxs)("p",{children:[S," ",(0,l.jsx)("span",{children:(0,Z.I)(o||i)})]}),(0,l.jsxs)("p",{className:1==a&&"trophy",children:[O," ",(0,l.jsxs)("span",{children:[a," ",1===a?"try":"tries"]})]})]}),(0,l.jsxs)("p",{className:"link",children:["Visit ",(0,l.jsx)("span",{children:"codedex.io/daily-challenge"})]})]})})]})};let S=(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"44",height:"44",viewBox:"0 0 44 44",fill:"none",children:(0,l.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M30.9473 5.46094H12.7428V9.10185H9.10185V12.7428H5.46094V30.9473H9.10185V34.5882H12.7428V38.2291H30.9473V34.5882H34.5882V30.9473H38.2291V12.7428H34.5882V9.10185H30.9473V5.46094ZM30.9473 9.10185V12.7428H34.5882V30.9473H30.9473V34.5882H12.7428V30.9473H9.10185V12.7428H12.7428V9.10185H30.9473ZM20.0246 12.7428H23.6655V23.6655H30.9473V27.3064L23.6655 27.3064H20.0246V12.7428Z",fill:"#CBD5E1"})}),O=(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"44",height:"44",viewBox:"0 0 44 44",fill:"none",children:(0,l.jsx)("path",{d:"M29.127 7.28223H36.4092V40.0498H7.28125V7.28223H14.5635V3.64062H29.127V7.28223ZM10.9229 36.4092H32.7686V10.9229H29.127V14.5635H14.5635V10.9229H10.9229V36.4092ZM21.8457 30.9473H18.2041V27.3066H21.8457V30.9473ZM18.2041 27.3066H14.5635V23.666H18.2041V27.3066ZM25.4863 27.3066H21.8457V23.666H25.4863V27.3066ZM29.127 23.666H25.4863V20.0254H29.127V23.666ZM18.2041 10.9229H25.4863V7.28223H18.2041V10.9229Z",fill:"#CBD5E1"})});function BigModel_templateObject(){let n=(0,y._)(["\n width: 900px;\n height: 1600px;\n background: ",";\n padding-top: 86.4px;\n display: flex;\n flex-direction: column;\n align-items: center;\n position: fixed;\n left: 1000%;\n top: 1000%;\n\n * {\n margin: 0px;\n }\n\n .logo {\n font-size: 28px;\n display: flex;\n gap: 12px;\n }\n\n .copy {\n padding-top: 57.6px;\n display: flex;\n flex-direction: column;\n gap: 14.4px;\n\n .title {\n color: ",';\n text-align: center;\n font-family: "PixelGridM";\n font-size: 57.6px;\n font-style: normal;\n font-weight: 700;\n line-height: 140%;\n letter-spacing: 1.728px;\n }\n\n .date {\n color: ',';\n text-align: center;\n font-feature-settings:\n "liga" off,\n "clig" off;\n font-family: Mulish;\n font-size: 36px;\n font-style: normal;\n font-weight: 500;\n line-height: 120%; /* 43.2px */\n }\n }\n\n .grid-wrapper {\n flex: 1;\n padding-bottom: 24px;\n display: flex;\n flex-direction: column;
1\n align-items: center;\n justify-content: center;\n width: 100%;\n\n .grid {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 43px;\n width: inherit;\n\n .emoji-grid-wrapper {\n span {\n width: 50px !important;\n height: 50px !important;\n font-size: 50px !important;\n }\n }\n\n .model-stats-wrapper {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 20px;\n width: inherit;\n\n p {\n display: flex;\n align-items: center;\n gap: 20px;\n padding: 12px 29px;\n border-radius: 242.727px;\n background-color: ',";\n color: ",";\n\n span {\n font-size: 29.127px;\n font-style: normal;\n font-weight: 700;\n line-height: normal;\n letter-spacing: 4.078px;\n text-transform: uppercase;\n }\n\n svg {\n path {\n fill: ",";\n }\n }\n }\n\n .trophy {\n background-color: ",";\n color: ",";\n\n svg {\n path {\n fill: ",";\n }\n }\n }\n }\n\n .link {\n color: ",";\n font-size: 36px;\n font-style: normal;\n font-weight: 600;\n line-height: normal;\n\n span {\n color: ",";\n }\n }\n }\n }\n"]);return BigModel_templateObject=function(){return n},n}let z=j.default.div.withConfig({componentId:"sc-26a8b230-0"})(BigModel_templateObject(),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.tertiary},n=>{let{theme:e}=n;return e.colors.background.grey.tertiary},n=>{let{theme:e}=n;return e.colors.text.secondary},n=>{let{theme:e}=n;return e.colors.text.secondary},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.accent.yellow},n=>{let{theme:e}=n;return e.colors.text.primary},n=>{let{theme:e}=n;return e.colors.text.accent.blue});var screenshotModels_BigModel=function(n){let{challenge:e}=n,{emojiGrid:t}=(0,x.Ol)({forModels:!0}),i=(0,r.v9)(d.ZZ),o=(0,r.v9)(d.M7),a=(0,r.v9)(d.Oe);return(0,l.jsxs)(z,{id:"big-share-model",children:[(0,l.jsxs)("div",{className:"logo",children:[(0,l.jsx)("img",{src:"/images/coin-cropped.png",width:"30px",height:"32px",alt:"coin logo",className:"logo-image"}),(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"221",height:"29",viewBox:"0 0 221 29",fill:"none",children:[(0,l.jsx)("path",{d:"M191.912 28.1101V24.0944H196.013V20.0786H200.114V16.0628H196.013V12.047H191.912V8.03125H200.114V12.047H204.214V16.0628H208.315V12.047H212.416V8.03125H220.617V12.047H216.516V16.0628H212.416V20.0786H216.516V24.0944H220.617V28.1101H212.416V24.0944H208.315V20.0786H204.214V24.0944H200.114V28.1101H191.912Z",fill:"white"}),(0,l.jsx)("path",{d:"M164.028 28.1101V24.0944H159.928V12.047H164.028V8.03125H184.532V12.047H188.633V20.0786H168.129V24.0944H184.532V28.1101H164.028ZM168.129 16.0628H180.431V12.047H168.129V16.0628Z",fill:"white"}),(0,l.jsx)("path",{d:"M132.042 28.1104V24.0946H127.941V12.0473H132.042V8.03155H148.445V0H156.646V28.1104H132.042ZM136.143 24.0946H148.445V12.0473H136.143V24.0946Z",fill:"white"}),(0,l.jsx)("path",{d:"M116.461 4.01577H112.36V0H116.461V4.01577ZM124.662 12.0473V20.0789H104.158V24.0946H120.561V28.1104H100.058V24.0946H95.957V12.0473H100.058V8.03155H108.259V4.01577H112.36V8.03155H120.561V12.0473H124.662ZM116.461 12.0473H104.158V16.0631H116.461V12.0473Z",fill:"white"}),(0,l.jsx)("path",{d:"M68.0714 28.1104V24.0946H63.9707V12.0473H68.0714V8.03155H84.4742V0H92.6756V28.1104H68.0714ZM72.1721 24.0946H84.4742V12.0473H72.1721V24.0946Z",fill:"white"}),(0,l.jsx)("path",{d:"M36.087 28.1101V24.0944H31.9863V12.047H36.087V8.03125H56.5906V12.047H60.6913V24.0944H56.5906V28.1101H36.087ZM40.1877 24.0944H52.4898V12.047H40.1877V24.0944Z",fill:"white"}),(0,l.jsx)("path",{d:"M8.20141 28.1104V24.0946H4.1007V20.0789H0V8.03155H4.1007V4.01577H8.20141V0H24.6042V4.01577H28.7049V8.03155H20.5035V4.01577H12.3021V8.03155H8.20141V20.0789H12.3021V24.0946H20.5035V20.0789H28.7049V24.0946H24.6042V28.1104H8.20141Z",fill:"white"})]})]}),(0,l.jsxs)("div",{className:"copy",children:[(0,l.jsx)("p",{className:"title",children:"Daily Challenge"}),(0,l.jsxs)("p",{className:"date",children:[(0,w.p)(e.dayId)," \xb7 ",e.title]})]}),(0,l.jsx)("div",{className:"grid-wrapper",children:(0,l.jsxs)("div",{className:"grid",children:[t,(0,l.jsxs)("div",{className:"model-stats-wrapper",children:[(0,l.jsxs)("p",{children:[I," ",(0,l.jsx)("span",{children:(0,Z.I)(a||i)})]}),(0,l.jsxs)("p",{className:1==o&&"trophy",children:[E," ",(0,l.jsxs)("span",{children:[o," ",1===o?"try":"tries"]})]})]}),(0,l.jsxs)("p",{className:"link",children:["Visit ",(0,l.jsx)("span",{children:"codedex.io/daily-challenge"})]})]})})]})};let I=(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"44",height:"44",viewBox:"0 0 44 44",fill:"none",children:(0,l.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M30.9473 5.46094H12.7428V9.10185H9.10185V12.7428H5.46094V30.9473H9.10185V34.5882H12.7428V38.2291H30.9473V34.5882H34.5882V30.9473H38.2291V12.7428H34.5882V9.10185H30.9473V5.46094ZM30.9473 9.10185V12.7428H34.5882V30.9473H30.9473V34.5882H12.7428V30.9473H9.10185V12.7428H12.7428V9.10185H30.9473ZM20.0246 12.7428H23.6655V23.6655H30.9473V27.3064L23.6655 27.3064H20.0246V12.7428Z",fill:"#CBD5E1"})}),E=(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"44",height:"44",viewBox:"0 0 44 44",fill:"none",children:(0,l.jsx)("path",{d:"M29.127 7.28223H36.4092V40.0498H7.28125V7.28223H14.5635V3.64062H29.127V7.28223ZM10.9229 36.4092H32.7686V10.9229H29.127V14.5635H14.5635V10.9229H10.9229V36.4092ZM21.8457 30.9473H18.2041V27.3066H21.8457V30.9473ZM18.2041 27.3066H14.5635V23.666H18.2041V27.3066ZM25.4863 27.3066H21.8457V23.666H25.4863V27.3066ZM29.127 23.666H25.4863V20.0254H29.127V23.666ZM18.2041 10.9229H25.4863V7.28223H18.2041V10.9229Z",fill:"#CBD5E1"})});
1function DailyChallengeCompletionModel_templateObject(){let n=(0,y._)(["\n .completion-model {\n height: fit-content;\n width: 510px;\n\n * {\n margin: 0px;\n }\n\n .inner-popup-container {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 24px;\n\n h3 {\n color: ",';\n font-family: "PixelGridM";\n font-size: 28px;\n font-weight: 700;\n line-height: 140%;\n letter-spacing: 0.84px;\n }\n\n .sub-copy {\n color: ',";\n font-size: 16px;\n font-style: normal;\n font-weight: 500;\n line-height: 150%;\n text-align: center;\n }\n\n .line {\n width: 100%;\n height: 2px;\n background: ",";\n }\n\n .name-date {\n color: ",";\n text-align: center;\n font-size: 16px;\n font-style: normal;\n font-weight: 500;\n line-height: 150%;\n }\n\n .stats-wrapper {\n display: flex;\n align-items: center;\n gap: 8px;\n\n p {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 5px 12px;\n border-radius: 100px;\n background-color: ",";\n color: ",";\n\n span {\n font-size: 12px;\n font-weight: 700;\n line-height: normal;\n letter-spacing: 1.68px;\n text-transform: uppercase;\n }\n\n svg {\n path {\n fill: ",";\n }\n }\n }\n }\n\n .emojis {\n color: ",";\n }\n\n .btn-wrapper {\n position: relative;\n display: flex;\n flex-direction: column;\n gap: 12px;\n padding: 0 1rem;\n\n button {\n width: min(342px, 100vw - 4rem);\n }\n }\n }\n }\n"]);return DailyChallengeCompletionModel_templateObject=function(){return n},n}let T=(0,j.default)(M.Z).withConfig({componentId:"sc-39150821-0"})(DailyChallengeCompletionModel_templateObject(),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.border.grey.light},n=>{let{theme:e}=n;return e.colors.text.tertiary},n=>{let{theme:e}=n;return e.colors.background.grey.tertiary},n=>{let{theme:e}=n;return e.colors.text.secondary},n=>{let{theme:e}=n;return e.colors.text.secondary},n=>{let{theme:e}=n;return e.colors.text.primary}),L=["You got it! \uD83D\uDC4F","You're on fire! \uD83D\uDD25","Let's gooo! \uD83D\uDE80","Heck yeah! \uD83E\uDD73","You got it! \uD83C\uDF89"];var DailyChallengeCompletionModel=function(n){let{challenge:e}=n,t=(0,a.T)(),o=(0,r.v9)(d.ZZ),s=(0,r.v9)(d.M7),c=(0,r.v9)(d.Oe),p=(0,r.v9)(d.Rt),h=(0,r.v9)(d.pc),[V,H]=(0,i.useState)(!1),{emojiGrid:g,copyToClipboard:f,shareOnTwitter:m}=(0,x.Ol)({forModels:!1}),[u]=(0,i.useState)(()=>L[Math.floor(Math.random()*L.length)]),y="anon-won"===p||"anon-failed"===p,j="anon-won"===p||"won"===h;function handleClose(){t((0,d.VN)(null))}return y||null!==p&&"undetermined"!==h?(0,l.jsxs)(T,{setShowModel:handleClose,children:[(0,l.jsx)(screenshotModels_SmallModel,{challenge:e}),(0,l.jsx)(screenshotModels_BigModel,{challenge:e}),(0,l.jsxs)(v.Z,{className:"completion-model",iconAction:handleClose,children:[(0,l.jsx)("h3",{children:j?u:"Try again tomorrow \uD83D\uDE2D"}),(0,l.jsx)("p",{className:"sub-copy",children:y?"Create an account to save your progress and have a chance at ranking on the leaderboards.":j?"You're on a roll! Keep up the amazing work and come back for tomorrow's challenge.":"It's the effort that counts! You'll get it next time~"}),(0,l.jsx)("div",{className:"line"}),(0,l.jsxs)("p",{className:"name-date",children:[(0,w.p)(e.dayId)," \xb7 ",e.title]}),(0,l.jsx)("div",{className:"emojis",children:g}),(0,l.jsxs)("div",{className:"stats-wrapper",children:[(0,l.jsxs)("p",{children:[A," ",(0,l.jsx)("span",{children:(0,Z.I)(c||o)})]}),(0,l.jsxs)("p",{children:[W," ",(0,l.jsxs)("span",{children:[s," tries"]})]})]}),(0,l.jsxs)("div",{className:"btn-wrapper",children:[V&&(0,l.jsx)(dailyChallenge_ShareIntentModel,{setShowModel:H,dayId:null==e?void 0:e.dayId}),(0,l.jsxs)(C.Z,{size:"small",variant:"green",onClick:()=>H(!V),children:["Share your results... ",R]}),(0,l.jsx)(k(),{href:"/daily-challenge",style:{textDecoration:"none"},children:(0,l.jsx)(C.Z,{variant:"subtle",size:"small",children:"Go to leaderboard"})})]})]})]}):null};let A=(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:(0,l.jsx)("path",{d:"M10.5 13.5H3V12H10.5V13.5ZM3
112H1.5V10.5H3V12ZM12 12H10.5V10.5H12V12ZM1.5 10.5H0V3H1.5V10.5ZM13.5 10.5H12V3H13.5V10.5ZM7.5 7.5H10.5V9H6V3H7.5V7.5ZM3 3H1.5V1.5H3V3ZM12 3H10.5V1.5H12V3ZM10.5 1.5H3V0H10.5V1.5Z",fill:"#475569"})}),W=(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"15",viewBox:"0 0 12 15",fill:"none",children:(0,l.jsx)("path",{d:"M9 1.5H12V15H0V1.5H3V0H9V1.5ZM1.5 13.5H10.5V3H9V4.5H3V3H1.5V13.5ZM6 11.25H4.5V9.75H6V11.25ZM4.5 9.75H3V8.25H4.5V9.75ZM7.5 9.75H6V8.25H7.5V9.75ZM9 8.25H7.5V6.75H9V8.25ZM4.5 3H7.5V1.5H4.5V3Z",fill:"#475569"})}),R=(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"21",height:"18",viewBox:"0 0 21 18",fill:"none",children:(0,l.jsx)("path",{d:"M12.7891 2.55859H15.3467V5.11621H17.9043V7.67383H20.4619V10.2314H17.9043V12.7891H15.3467V15.3467H12.7891V17.9043H10.2314V12.7891H2.55762V15.3467H0V7.67383H2.55762V5.11621H10.2314V0H12.7891V2.55859Z",fill:"#020617"})});var U=t(2990);function DailyChallengeWelcomeBack_templateObject(){let n=(0,y._)(['\n .welcome-back-wrapper {\n height: fit-content;\n width: 510px;\n font-family: "Mulish", sans-serif;\n\n * {\n margin: 0px;\n }\n\n .cross-icon {\n opacity: 0;\n }\n\n .inner-popup-container {\n display: flex;\n flex-direction: column;\n gap: 24px;\n\n .top-copy {\n display: flex;\n flex-direction: column;\n gap: 16px;\n color: ',";\n text-align: center;\n line-height: 150%;\n\n h3 {\n font-size: 24px;\n font-weight: 700;\n }\n\n p {\n font-size: 16px;\n font-weight: 500;\n }\n }\n }\n\n .stats-wrapper {\n display: flex;\n justify-content: center;\n gap: 8px;\n\n .stat {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 5px 12px;\n border-radius: 100px;\n background-color: ",";\n color: ",";\n\n span {\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 svg {\n path {\n fill: ",";\n }\n }\n }\n }\n\n .btn-wrapper {\n display: flex;\n flex-direction: column;\n gap: 8px;\n\n a {\n width: 100%;\n text-decoration: none;\n\n button {\n width: 100%;\n }\n }\n }\n }\n"]);return DailyChallengeWelcomeBack_templateObject=function(){return n},n}let F=(0,j.default)(M.Z).withConfig({componentId:"sc-455aaacf-0"})(DailyChallengeWelcomeBack_templateObject(),n=>{let{theme:e}=n;return e.colors.text.primary},n=>{let{theme:e}=n;return e.colors.background.grey.tertiary},n=>{let{theme:e}=n;return e.colors.text.secondary},n=>{let{theme:e}=n;return e.colors.text.secondary},n=>{let{theme:e}=n;return e.colors.text.secondary});var dailyChallenge_DailyChallengeWelcomeBack=function(){let n=(0,a.T)(),e=(0,r.v9)(d.M7);(0,r.v9)(d.ZZ);let t=(0,r.v9)(d.Hm);return t?(0,l.jsx)(F,{setShowModel:()=>{},children:(0,l.jsxs)(v.Z,{className:"welcome-back-wrapper",iconAction:()=>{},children:[(0,l.jsxs)("div",{className:"top-copy",children:[(0,l.jsx)("h3",{children:"Welcome back!"}),(0,l.jsx)("p",{children:"Let's pick up where you left off on today's challenge."})]}),(0,l.jsxs)("div",{className:"stats-wrapper",children:[" ",(0,l.jsxs)("div",{className:"stat",children:[(0,l.jsx)(U.Z,{}),(0,l.jsxs)("span",{children:[e," tries used"]})]})]}),(0,l.jsxs)("div",{className:"btn-wrapper",children:[(0,l.jsxs)(C.Z,{onClick:function(){n((0,d.en)())},children:[G," Continue progress"]}),(0,l.jsx)(k(),{href:"/daily-challenge",children:(0,l.jsx)(C.Z,{variant:"subtle",children:"Back to leaderboards"})})]})]})}):null};let G=(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:"M10 5H12V7H14V9H16V11H18V13H16V15H14V17H12V19H10V21H8V3H10V5Z",fill:"white"})});var P=t(26089),Y=t(88832),X=!0,_date_=function(n){let{challenge:e,descriptionSource:t,examplesSource:s,hintsSources:y,date:j}=n,M=(0,a.T)(),v=(0,r.v9)(p.f8),Z=(0,i.useRef)(!1),{loadHistory:C,history:b}=(0,x.jL)();(0,i.useEffect)(()=>{M((0,d.ob)(e))},[M,e]),(0,i.useEffect)(()=>{let n=c().get().codedextoken||"";if(!v&&!n){M((0,d.BB)(!1));return}(0,H.r)(),(0,V.uE)({dayId:j}).then(n=>{let e=n.firstViewedAt instanceof Date?n.firstViewedAt.toISOString():String(n.firstViewedAt);console.log("startChallengedat",n),M((0,d.kD)({triesUsed:n.triesUsed,won:n.won,first
1ViewedAt:e,timeSpent:n.timeSpent,wallClockSolveTimeSeconds:n.wallClockSolveTimeSeconds})),n.lastAttemptCode&&n.lastAttemptLanguage&&M((0,d.Wk)({code:n.lastAttemptCode,language:n.lastAttemptLanguage})),M((0,d.BB)(!1))}).catch(n=>{console.error("Failed to start challenge:",n),M((0,d.BB)(!1))})},[v,M,j]),(0,i.useEffect)(()=>{e.visibleTestCases&&M((0,d.mW)(e.visibleTestCases))},[M,e.visibleTestCases,e.dayId]),(0,i.useEffect)(()=>{v&&getInitialHistory();async function getInitialHistory(){try{await C({wonOnly:!1})}catch(n){console.error(n)}}},[v,C]),(0,i.useEffect)(()=>{v&&j&&0!==b.length&&!Z.current&&(Z.current=!0,console.log({date:j}),M((0,d.cm)(j)))},[v,b.length,M,j]),(0,g.t)();let{width:k}=(0,h.i)();return k&&k<768?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(DailyChallengeCompletionModel,{challenge:e}),(0,l.jsx)(dailyChallenge_DailyChallengeWelcomeBack,{}),(0,l.jsx)(P.Z,{challenge:e,descriptionSource:t,examplesSource:s,hintSrcs:y},j)]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(f.Z,{learningEnv:"courses",dailyChallengeTitle:e.title}),(0,l.jsx)(DailyChallengeCompletionModel,{challenge:e}),(0,l.jsx)(dailyChallenge_DailyChallengeWelcomeBack,{}),(0,l.jsxs)(Y.fj,{children:[(0,l.jsx)(Y.mp,{children:(0,l.jsxs)(o.Z,{sizes:[50,50],minSize:[550,600],expandToMin:!0,gutterSize:5,gutterAlign:"center",snapOffset:30,dragInterval:1,direction:"horizontal",cursor:"col-resize",className:"split-container",children:[(0,l.jsx)(m.Z,{challenge:e,descriptionSource:t,examplesSource:s,hintsSources:y}),(0,l.jsx)(u.Z,{challenge:e})]})}),(0,l.jsx)(w.Z,{challenge:e})]})]})}}},function(n){n.O(0,[1272,8700,1057,3777,4153,1622,9280,286,6095,1226,5024,8727,2214,3764,4844,4898,9428,3355,945,4812,7434,1457,3689,6948,466,9774,2888,179],function(){return n(n.s=66521)}),_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.