1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4749],{155:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});let n={src:"https://static.zircuit.com/stake/app-67b9ea2cd/_next/static/media/orange-cat-head-icon.a8b21781.webp",height:48,width:58,blurDataURL:"data:image/webp;base64,UklGRrgAAABXRUJQVlA4WAoAAAAQAAAABwAABgAAQUxQSDkAAAAAAJF6RD5augAB2//////8DTj///////9Ahf///////526////////vWb///////5yAGLK8fzZZAAAVlA4IFgAAADQAQCdASoIAAcAAkA4JYwCdAEPD9JwHAD5eug1bJlzshno/CGWaZ4admXioY9O7xOpGetg+P1jnYMZuxr9fYifqRyYcSZ+ayWAxIj+csG8sH/DxOwcQAAA",blurWidth:8,blurHeight:7}},13421:(e,t,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/build2025",function(){return i(30108)}])},19007:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});var n=i(14232),r=i(13469),o=i(51038);let a=()=>{let e=(0,n.useRef)(null),t=(0,n.useCallback)(t=>{e.current&&clearInterval(e.current);let i={startVelocity:30,spread:450,ticks:120,zIndex:0,scalar:3,...t},n=Date.now()+1500;e.current=setInterval(()=>{let t=n-Date.now();if(t<=0){clearInterval(e.current),e.current=null;return}let a=t/1500*50;(0,r.t)(Object.assign({},i,{particleCount:a,origin:{x:(0,o.randomInRange)(.1,.3),y:Math.random()-.2}})),(0,r.t)(Object.assign({},i,{particleCount:a,origin:{x:(0,o.randomInRange)(.7,.9),y:Math.random()-.2}}))},250)},[]);return(0,n.useEffect)(()=>()=>{e.current&&(clearInterval(e.current),e.current=null)},[]),{start:t}}},30108:(e,t,i)=>{"use strict";i.r(t),i.d(t,{__N_SSP:()=>H,default:()=>M});var n=i(37876),r=i(14232),o=i(98047),a=i(54587),l=i.n(a),s=i(47385),c=i(51284),d=i.n(c);let u=o.Ay.div.withConfig({componentId:"sc-841f8d31-0"})(["height:50px;background-image:url(",");background-size:auto;background-repeat:no-repeat;background-position:bottom;"],"https://static.zircuit.com/stake/app-67b9ea2cd/_next/static/media/terminal-header-bar-with-headline.72291f66.svg"),h=o.Ay.div.withConfig({componentId:"sc-841f8d31-1"})(["display:flex;flex-wrap:wrap;gap:12px;padding:12px;background:linear-gradient(90deg,#13181b 0%,#222321 55%,#26231b 100%);"]),p=o.Ay.div.withConfig({componentId:"sc-841f8d31-2"})(["font-size:14px;font-style:normal;font-weight:600;line-height:117%;color:#f4f1e5;padding:8px 16px;border-top-left-radius:8px;border-top-right-radius:8px;cursor:",";",""],e=>{let{disabled:t}=e;return t?"not-allowed":"pointer"},e=>{let{selected:t}=e;return t?"\n background-color: #0A4005;":"\n opacity: 0.8;\n background-color: rgba(255, 255, 255, 0.1);\n "}),f=o.Ay.div.withConfig({componentId:"sc-841f8d31-3"})(["background:linear-gradient(90deg,#13181b 0%,#222321 55%,#26231b 100%);color:white;font-family:",";font-weight:500;font-size:14px;padding:24px 24px 10px 24px;text-align:left;min-height:300px;max-height:300px;overflow-y:auto;white-space:pre-wrap;scroll-behavior:smooth;position:relative;cursor:text;"],d().style.fontFamily),g=o.Ay.textarea.withConfig({componentId:"sc-841f8d31-4"})(["background:linear-gradient(90deg,#13181b 0%,#222321 55%,#26231b 100%);color:white;font-family:",";font-weight:500;font-size:14px;line-height:1.29;border:none;outline:none;resize:none;width:100%;box-sizing:border-box;height:300px;padding:0 24px 24px;border-bottom-left-radius:6px;border-bottom-right-radius:6px;text-align:left;caret-color:transparent;border-radius:0;border:0;outline:0;&::placeholder{color:white;}&:disabled{cursor:not-allowed;background:linear-gradient(90deg,#13181b 0%,#222321 55%,#26231b 100%);opacity:1;}"],d().style.fontFamily),x=o.Ay.div.withConfig({componentId:"sc-841f8d31-5"})(["display:flex;align-items:flex-start;margin-bottom:8px;font-family:",";font-size:14px;line-height:1.4;@media (max-width:768px){flex-direction:column;font-size:12px;}"],d().style.fontFamily),m=o.Ay.span.withConfig({componentId:"sc-841f8d31-6"})(["color:rgb(43,126,33);margin-right:8px;"]),b=o.Ay.span.withConfig({componentId:"sc-841f8d31-7"})(["color:#ffffff;"]),y=o.Ay.textarea.withConfig({componentId:"sc-841f8d31-8"})(["background:transparent;border:none;outline:none;color:#ffffff;font-family:",";font-size:14px;flex:1;caret-color:rgb(43,126,33);cursor:text;resize:none;height:auto;min-height:1.4em;max-height:200px;overflow-y:auto;line-height:1.4;&::placeholder{color:#666666;}@media (max-width:768px){width:100%;margin-top:4px;font-size:12px;}"],d().style.fontFamily),A=o.Ay.div.withConfig({componentId:"sc-841f8d31-9"})(["color:#ff4444;margin-top:4px;font-size:12px;@media (max-width:768px){font-size:10px;}"]),w=o.Ay.div.withConfig({componentId:"sc-841f8d31-10"})(["color:rgb(43,126,33);font-size:14px;@media (max-width:768px){font-size:12px;}"]),v="build@zircuit:~ > Hello dev! describe your project below.",j=e=>{let t=/(https?:\/\/[^\s]+)/g;return e.split(t).map((e,i)=>t.test(e)?(0,n.jsx)("a",{href:e,target:"_blank",rel:"noopener noreferrer",style:{color:"#4CAF50",textDecoration:"underline"},children:e},i):e)},C=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0;if(t<e.length){let r=t+1;i(e.substring(0,r)),setTimeout(()=>C(e,r,i,n),50)}else n()},I=e=>{let{value:t,defaultValue:i,onChange:o,disabled:a,prevTerminalTabs:l,interactive:s=!1,questions:c=[],currentStep:d=0,terminalHistory:I=[],currentInput:k="",onInputChange:E,onInputKeyDown:R,error:_="",success:z="",inputRef:S,inputRows:T=1,placeholder:O="_"}=e,L=(null==t?void 0:t.length)!==0,[P,D]=(0,r.useState)(null),[H,M]=(0,r.useState)(L?v:""),[N,G]=(0,r.useState)(L),[U,F]=(0,r.useState)(L),W=(0,r.useRef)(null),Y=S||W,B=(0,r.useRef)(null);(0,r.useEffect)(()=>{N||s||C(v,0,M,()=>G(!0))},[N,s]),(0,r.useEffect)(()=>{!U&&i&&N&&!s&&C(i,0,o,()=>{F(!0)})},[i,N,o,U,s]),(0,r.useEffect)(()=>{U&&!s&&(L&&t&&(Y.current.selectionStart=t.length),Y.current.focus())},[U,null==P?void 0:P.id,L,t,s,Y]),(0,r.useEffect)(()=>{s&&B.current&&(B.current.scrollTop=B.current.scrollHeight),s&&Y.current&&Y.current.focus()},[d,I.length,z,_,s,Y]);let Z=U&&!a;return s?(0,n.jsxs)("div",{children:[(0,n.jsx)(u,{}),(0,n.jsxs)(f,{ref:B,onClick:()=>{var e;return null==(e=Y.current)?void 0:e.focus()},children:[I.map((e,t)=>(0,n.jsxs)("div",{children:[(0,n.jsxs)(x,{children:[(0,n.jsx)(m,{children:"build@zircuit:~>"}),(0,n.jsx)(b,{children:j(e.question)})]}),(0,n.jsxs)(x,{children:[(0,n.jsx)(m,{children:"build@zircuit:~>"}),(0,n.jsx)(b,{children:e.answer})]})]},t)),d<c.length&&I.length<=d&&!z&&(0,n.jsxs)(x,{children:[(0,n.jsx)(m,{children:"build@zircuit:~>"}),(0,n.jsx)(b,{children:j(c[d].question)})]}),d<c.length&&!z&&(0,n.jsxs)(x,{style:{position:"relative"},children:[(0,n.jsx)(m,{children:"build@zircuit:~>"}),(0,n.jsx)(y,{ref:Y,value:k,onChange:e=>{E(e)},rows:T,onKeyDown:R,placeholder:O,disabled:a,"aria-label":"Terminal input"})]}),z&&(0,n.jsxs)(x,{children:[(0,n.jsx)(m,{children:"build@zircuit:~>"}),(0,n.jsx)(w,{children:z})]}),_&&(0,n.jsx)(A,{children:_})]})]}):(0,n.jsxs)("div",{children:[(0,n.jsx)(u,{}),(0,n.jsxs)(h,{children:[null==l?void 0:l.map(e=>(0,n.jsx)(p,{selected:(null==P?void 0:P.id)===e.id,onClick:()=>Z&&D(e),disabled:!Z,children:e.tab},e.id)),(0,n.jsx)(p,{onClick:()=>Z&&D(null),selected:!P,disabled:!Z,children:"Current submission"})]}),(0,n.jsx)(f,{children:H}),(0,n.jsx)("div",{style:{position:"relative"},children:(0,n.jsx)(g,{ref:Y,value:P?P.content:t,onChange:e=>{o(e.target.value)},spellCheck:!1,disabled:!Z||!!P})})]})};var k=i(96316),E=i(19007),R=i(78875),_=i(587);let z={TRACK:"track",TELEGRAM_HANDLE:"telegramHandle",REPOSITORY_URL:"repositoryUrl",SHOWCASE:"showcase",CONFIRMATION:"confirmation"},S=o.Ay.div.withConfig({componentId:"sc-d34dbf76-0"})(["border-top:1px solid #dddddd;overflow-y:auto;"]),T=o.Ay.div.withConfig({componentId:"sc-d34dbf76-1"})(["max-width:840px;margin:24px auto;text-align:left;position:relative;@media screen and (max-width:1200px){padding:0 10px;}"]),O=o.Ay.div.withConfig({componentId:"sc-d34dbf76-2"})(["h1{display:flex;gap:16px;align-items:center;font-size:32px;font-weight:500;line-height:40px;margin-bottom:28px;justify-content:center;}h3{font-size:20px;font-weight:500;line-height:24px;margin-bottom:32px;text-align:center;}p{font-size:16px;font-weight:600;line-height:20px;text-align:center;}"]),L=o.Ay.div.withConfig({componentId:"sc-d34dbf76-3"})(["margin:12px 0;"]),P=function(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e=>e.trim().toLowerCase();return{id:e,question:t,validation:e=>i(e.trim().toLowerCase()),processValue:n}},D=[P(z.TRACK,"Hello dev! Which track of Zircuit 2025 grants do you want to apply for?\n\n1. Super app track (2 x $135,000)\n2. Ecosystem growth track (5 x $45,000)\n\nEnter your choice:",e=>"1"!==e&&"2"!==e?"Please enter 1 or 2":null),P(z.TELEGRAM_HANDLE,"Great! What's the telegram handle of the point of contact?",e=>e?_.TELEGRAM_HANDLE_REGEX.test(e)?null:"Please enter a valid telegram handle (5-32 characters, letters, numbers, and underscores only)":"Please enter a telegram handle"),P(z.REPOSITORY_URL,"Thank you! What is the link of the repository that you shared with zircuit-grants25 on Github?\nExample: https://github.com/zircuit-labs/grant-application-example/commit/3660af4bad37e4495a786b
1c43177019941afa592\n",e=>e?_.GITHUB_REPO_URL_REGEX.test(e)?null:"Please enter a valid GitHub commit URL":"Please enter a repository URL"),P(z.SHOWCASE,"Would you like the opportunity to showcase your proposal publicly? If so, we will contact you with more details.\nType 'Y' for yes, anything else for no.\n",e=>e?null:"Please enter Y for yes or anything else for no",e=>"y"===e.toLowerCase()),P(z.CONFIRMATION,"I've got it. One last question! Did you fill out the application completely, and included your telegram? Type 'Y' for yes, anything else for no.\n",e=>e?null:"Please enter Y for yes or anything else for no",e=>"y"===e.toLowerCase())];var H=!0;let M=e=>{var t;let{csrfToken:i}=e,[o,a]=(0,r.useState)(!1),[c,d]=(0,r.useState)(!1),[u,h]=(0,r.useState)(0),[p,f]=(0,r.useState)({track:"",telegramHandle:"",repositoryUrl:"",showcase:!1,confirmation:!1}),[g,x]=(0,r.useState)([]),[m,b]=(0,r.useState)(""),[y,A]=(0,r.useState)(""),[w,v]=(0,r.useState)(""),j=(0,r.useRef)(null),{start:C}=(0,E.A)();(0,r.useEffect)(()=>{C({shapes:["emoji"],shapeOptions:{emoji:{value:["\uD83E\uDD41","\uD83C\uDF1F","\uD83D\uDC9A","\uD83D\uDE3D"]}}})},[C]);let _=async e=>{a(!0),A("");try{let t=await fetch("/api/build/submit",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...e,csrf_token:i})}),n=await t.json();if(!t.ok)throw Error(n.message||"Submission failed");v("â
Application submitted successfully! Our review team will be in touch."),d(!0)}catch(t){console.error("Submission error:",t);let e=t.message||"Failed to submit application";A("".concat(e,"\n\nRestarting repository URL step in 5 seconds...")),setTimeout(()=>{h(2),a(!1),A(""),v(""),f(e=>({...e,repositoryUrl:""})),x(e=>e.slice(0,2))},5e3)}finally{a(!1)}};return(0,r.useEffect)(()=>{j.current&&j.current.focus()},[u]),(0,n.jsxs)(S,{children:[(0,n.jsx)(k.A,{}),(0,n.jsxs)(T,{children:[(0,n.jsxs)(O,{children:[(0,n.jsxs)("h1",{children:[(0,n.jsx)(l(),{src:s.default,alt:"Build"})," Zircuit Grants Program"," ",(0,n.jsx)(l(),{src:s.default,alt:"Build",style:{transform:"scaleX(-1)"}})," "]}),(0,n.jsxs)("p",{children:["Build on the fast-growing Zircuit ecosystem. Follow the application instructions"," ",(0,n.jsx)(R.A,{href:"https://docs.zircuit.com/build/grants#application-process",target:"_blank",rel:"noopener noreferrer",children:"here"})]})]}),(0,n.jsx)(L,{children:(0,n.jsx)(I,{interactive:!0,questions:D,currentStep:u,terminalHistory:g,currentInput:m,onInputChange:e=>{b(e.target.value),A("")},onInputKeyDown:e=>{if("Enter"===e.key){e.preventDefault();let t=D[u],i=t.validation(m);if(i)return void A(i);let n=t.processValue(m);if(t.id===z.CONFIRMATION&&!n){A("Restarting the process..."),setTimeout(()=>{h(0),f({track:"",telegramHandle:"",repositoryUrl:"",showcase:!1,confirmation:!1}),x([]),b(""),A("")},3e3);return}let r={...p,[t.id]:n};f(r);let o=[...g];o.push({question:t.question,answer:m,step:u}),x(o),b(""),A(""),u===D.length-1?(v("Submitting your application..."),setTimeout(()=>{_(r)},1e3)):h(u+1)}},error:y,success:o?"â³ Processing your application...":w,inputRef:j,disabled:o||c,inputRows:(e=>e?Math.min(Math.max(Math.ceil(e.length/76),1),3):1)(m),placeholder:(null==(t=D[u])?void 0:t.id)===z.TELEGRAM_HANDLE?"@":"_"})})]})]})}},47385:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});let n={src:"https://static.zircuit.com/stake/app-67b9ea2cd/_next/static/media/builder-cat-icon.77772d8c.svg",height:40,width:44,blurWidth:0,blurHeight:0}},51284:e=>{e.exports={style:{fontFamily:"'IBM Plex Mono', 'IBM Plex Mono Fallback', Roboto Mono",fontWeight:500,fontStyle:"normal"},className:"__className_b269bc"}},78875:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});let n=i(98047).Ay.a.withConfig({componentId:"sc-1d4667ad-0"})(["color:#2b7e21;text-decoration:underline;cursor:pointer;"])},96316:(e,t,i)=>{"use strict";i.d(t,{A:()=>h});var n=i(37876),r=i(54587),o=i.n(r),a=i(98047),l=i(80051),s=i(155),c=i(10587);let d=(0,a.Ay)(l.A).withConfig({componentId:"sc-d1b7c8bd-0"})(["justify-content:center;gap:16px;","{width:179px;height:32px;font-size:16px;padding:0;}"],c.A),u=()=>(0,n.jsxs)(d,{children:[(0,n.jsx)(o(),{src:s.A,alt:"Cute face",width:29,height:24})," Zircuit L2 Mainnet is Live, Season 1 & 2 Airdrop is Live"]}),h=e=>{let{showClaimAnnouncement:t}=e;return t?(0,n.jsx)(u,{}):null}}},e=>{e.O(0,[3469,636,6593,8792],()=>e(e.s=13421)),_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.