PageSourceSearch

https://surajmaitydev.vercel.app/_next/static/chunks/675-52f21502a1e08dd9.js

js surajmaitydev.vercel.app collected 2026-10-03 07:49:31 UTC 12,427 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[675],{4231:function(e,t,a){"use strict";a.d(t,{Header:function(){return g}});var i=a(7437),s=a(9376),n=a(2265),r=a(4007),l=a(2275),o=a.n(l),d=a(5783),c=a(9390),h=a(4983),m=a.n(h),p=a(7648);let x=()=>{let[e,t]=(0,n.useState)(0),[a,s]=(0,n.useState)(!1),[r,l]=(0,n.useState)(!1),[o,d]=(0,n.useState)(!1),h=["Initializing...","AI Engineer","FullStack Dev","I am"];return((0,n.useEffect)(()=>{let e=setInterval(()=>{t(e=>e<h.length-1?e+1:(setTimeout(()=>{s(!0),setTimeout(()=>{l(!0),setTimeout(()=>{d(!0)},800)},800)},1e3),e))},2e3),a=setTimeout(()=>{s(!1),l(!1),d(!1),t(0)},6e5);return()=>{clearInterval(e),clearTimeout(a)}},[]),a)?(0,i.jsx)(p.default,{href:"/",className:"".concat(m().brandContainer," ").concat(m().finalState),children:(0,i.jsxs)("div",{className:m().nameWrapper,children:[(0,i.jsx)("span",{className:"".concat(m().firstName," ").concat(r?m().visible:""),children:c.lB.firstName.toUpperCase()}),(0,i.jsx)("div",{className:"".concat(m().separator," ").concat(o?m().visible:"")}),(0,i.jsx)("span",{className:"".concat(m().lastName," ").concat(o?m().visible:""),children:c.lB.lastName.toUpperCase()})]})}):(0,i.jsx)(p.default,{href:"/",className:m().brandContainer,children:(0,i.jsx)("div",{className:m().nameWrapper,children:(0,i.jsx)("span",{className:m().animatedText,children:h[e]})})})},f=e=>{let{timeZone:t,locale:a="en-GB"}=e,[s,r]=(0,n.useState)("");return(0,n.useEffect)(()=>{let e=()=>{let e=new Date;r(new Intl.DateTimeFormat(a,{timeZone:t,hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).format(e))};e();let i=setInterval(e,1e3);return()=>clearInterval(i)},[t,a]),(0,i.jsx)(i.Fragment,{children:s})},g=()=>{var e;let t=null!==(e=(0,s.usePathname)())&&void 0!==e?e:"";return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.pT,{hide:"s",fillWidth:!0,position:"fixed",height:"80",zIndex:9}),(0,i.jsx)(r.pT,{show:"s",fillWidth:!0,position:"fixed",bottom:"0",to:"top",height:"80",zIndex:9}),(0,i.jsxs)(r.kC,{fitHeight:!0,className:o().position,as:"header",zIndex:9,fillWidth:!0,padding:"8",horizontal:"space-between",vertical:"center",children:[(0,i.jsx)("div",{className:o().brandContainer,children:(0,i.jsx)(x,{})}),(0,i.jsx)("div",{className:o().navigationContainer,children:(0,i.jsxs)(r.kC,{background:"surface",border:"neutral-medium",radius:"m-4",shadow:"l",padding:"4",horizontal:"center",gap:"2",children:[d._j["/"]&&(0,i.jsx)(r.CO,{prefixIcon:"home",href:"/",selected:"/"===t}),d._j["/about"]&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.CO,{className:"s-flex-hide",prefixIcon:"person",href:"/about",label:c.jZ.label,selected:"/about"===t}),(0,i.jsx)(r.CO,{className:"s-flex-show",prefixIcon:"person",href:"/about",selected:"/about"===t})]}),d._j["/work"]&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.CO,{className:"s-flex-hide",prefixIcon:"grid",href:"/work",label:c.ZT.label,selected:"/work"===t}),(0,i.jsx)(r.CO,{className:"s-flex-show",prefixIcon:"grid",href:"/work",selected:"/work"===t})]}),d._j["/blog"]&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.CO,{className:"s-flex-hide",prefixIcon:"book",href:"/blog",label:c.tQ.label,selected:"/blog"===t}),(0,i.jsx)(r.CO,{className:"s-flex-show",prefixIcon:"book",href:"/blog",selected:"/blog"===t})]}),d._j["/gallery"]&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.CO,{className:"s-flex-hide",prefixIcon:"gallery",href:"/gallery",label:c.lj.label,selected:"/gallery"===t}),(0,i.jsx)(r.CO,{className:"s-flex-show",prefixIcon:"gallery",href:"/gallery",selected:"/gallery"===t})]})]})}),(0,i.jsx)("div",{className:o().timeContainer,children:d.jf.time&&(0,i.jsx)("span",{className:"text-body-default-s",children:(0,i.jsx)(f,{timeZone:c.lB.location})})})]})]})}},1288:function(e,t,a){"use strict";a.d(t,{HeadingLink:function(){return l}});var i=a(7437);a(2265);var s=a(4007),n=a(9187),r=a.n(n);let l=e=>{let{id:t,level:a,children:n,style:l}=e,{addToast:o}=(0,s.pm)(),d=e=>{let t="".concat(window.location.origin).concat(window.location.pathname,"#").concat(e);navigator.clipboard.writeText(t).then(()=>{o({variant:"success",message:"Link copied to clipboard."})},()=>{o({variant:"danger",message:"Failed to copy link."})})};return(0,i.jsxs)(s.kC,{style:l,onClick:()=>d(t),className:r().control,vertical:"center",gap:"4",children:[(0,i.jsx)(s.X6,{className:r().text,id:t,variant:{1:"display-strong-xs",2:"heading-strong-xl",3:"heading-strong-l",4:"heading-strong-m",5:"heading-strong-s",6:"heading-strong-xs"}[a],as:"h".concat(a),children:n}),(0,i.jsx)(s.hU,{className:r().visibility,size:"s",icon:"openLink",variant:"ghost",tooltip:"
1Copy",tooltipPosition:"right"})]})}},1214:function(e,t,a){"use strict";a.d(t,{Mailchimp:function(){return l}});var i=a(7437),s=a(5783),n=a(4007),r=a(2265);let l=e=>{let t,{newsletter:a}=e,[l,o]=(0,r.useState)(""),[d,c]=(0,r.useState)(""),[h,m]=(0,r.useState)(!1),p=e=>""===e||/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),x=e=>{let t=e.target.value;o(t),p(t)?c(""):c("Please enter a valid email address.")},f=function(){for(var e=arguments.length,a=Array(e),i=0;i<e;i++)a[i]=arguments[i];clearTimeout(t),t=setTimeout(()=>x(...a),2e3)};return(0,i.jsxs)(n.sg,{overflow:"hidden",position:"relative",fillWidth:!0,padding:"xl",radius:"l",marginBottom:"m",horizontal:"center",align:"center",background:"surface",border:"neutral-medium",children:[(0,i.jsx)(n.Aq,{mask:{cursor:s.Gp.effects.mask.cursor,x:s.Gp.effects.mask.x,y:s.Gp.effects.mask.y,radius:s.Gp.effects.mask.radius},gradient:{display:s.Gp.effects.gradient.display,x:s.Gp.effects.gradient.x,y:s.Gp.effects.gradient.y,width:s.Gp.effects.gradient.width,height:s.Gp.effects.gradient.height,tilt:s.Gp.effects.gradient.tilt,colorStart:s.Gp.effects.gradient.colorStart,colorEnd:s.Gp.effects.gradient.colorEnd,opacity:s.Gp.effects.gradient.opacity},dots:{display:s.Gp.effects.dots.display,color:s.Gp.effects.dots.color,size:s.Gp.effects.dots.size,opacity:s.Gp.effects.dots.opacity},grid:{display:s.Gp.effects.grid.display,color:s.Gp.effects.grid.color,width:s.Gp.effects.grid.width,height:s.Gp.effects.grid.height,opacity:s.Gp.effects.grid.opacity},lines:{display:s.Gp.effects.lines.display,opacity:s.Gp.effects.lines.opacity}}),(0,i.jsx)(n.X6,{style:{position:"relative"},marginBottom:"s",variant:"display-strong-xs",children:a.title}),(0,i.jsx)(n.xv,{style:{position:"relative",maxWidth:"var(--responsive-width-xs)"},wrap:"balance",marginBottom:"l",onBackground:"neutral-medium",children:a.description}),(0,i.jsx)("form",{style:{width:"100%",display:"flex",justifyContent:"center"},action:s.Gp.action,method:"post",id:"mc-embedded-subscribe-form",name:"mc-embedded-subscribe-form",children:(0,i.jsxs)(n.kC,{id:"mc_embed_signup_scroll",fillWidth:!0,maxWidth:24,gap:"8",children:[(0,i.jsx)(n.II,{formNoValidate:!0,labelAsPlaceholder:!0,id:"mce-EMAIL",name:"EMAIL",type:"email",label:"Email",required:!0,onChange:e=>{d?x(e):f(e)},onBlur:()=>{m(!0),p(l)||c("Please enter a valid email address.")},errorMessage:d}),(0,i.jsx)("div",{style:{display:"none"},children:(0,i.jsx)("input",{type:"checkbox",readOnly:!0,name:"group[3492][1]",id:"mce-group[3492]-3492-0",value:"",checked:!0})}),(0,i.jsxs)("div",{id:"mce-responses",className:"clearfalse",children:[(0,i.jsx)("div",{className:"response",id:"mce-error-response",style:{display:"none"}}),(0,i.jsx)("div",{className:"response",id:"mce-success-response",style:{display:"none"}})]}),(0,i.jsx)("div",{"aria-hidden":"true",style:{position:"absolute",left:"-5000px"},children:(0,i.jsx)("input",{type:"text",readOnly:!0,name:"b_c1a5a210340eb6c7bff33b2ba_0462d244aa",tabIndex:-1,value:""})}),(0,i.jsx)("div",{className:"clear",children:(0,i.jsx)(n.kC,{height:"48",vertical:"center",children:(0,i.jsx)(n.zx,{id:"mc-embedded-subscribe",value:"Subscribe",size:"m",fillWidth:!0,children:"Subscribe"})})})]})})]})}},9818:function(e,t,a){"use strict";a.d(t,{ProjectCard:function(){return n}});var i=a(7437),s=a(4007);let n=e=>{let{href:t,images:a=[],title:n,content:r,description:l,avatars:o,link:d}=e;return(0,i.jsxs)(s.sg,{fillWidth:!0,gap:"m",children:[(0,i.jsx)(s.lr,{sizes:"(max-width: 960px) 100vw, 960px",images:a.map(e=>({src:e,alt:n}))}),(0,i.jsxs)(s.kC,{mobileDirection:"column",fillWidth:!0,paddingX:"s",paddingTop:"12",paddingBottom:"24",gap:"l",children:[n&&(0,i.jsx)(s.kC,{flex:5,children:(0,i.jsx)(s.X6,{as:"h2",wrap:"balance",variant:"heading-strong-xl",children:n})}),((null==o?void 0:o.length)>0||(null==l?void 0:l.trim())||(null==r?void 0:r.trim()))&&(0,i.jsxs)(s.sg,{flex:7,gap:"16",children:[(null==o?void 0:o.length)>0&&(0,i.jsx)(s.HE,{avatars:o,size:"m",reverse:!0}),(null==l?void 0:l.trim())&&(0,i.jsx)(s.xv,{wrap:"balance",variant:"body-default-s",onBackground:"neutral-weak",children:l}),(0,i.jsxs)(s.kC,{gap:"24",wrap:!0,children:[(null==r?void 0:r.trim())&&(0,i.jsx)(s.IW,{suffixIcon:"arrowRight",style:{margin:"0",width:"fit-content"},href:t,children:(0,i.jsx)(s.xv,{variant:"body-default-s",children:"Read case study"})}),d&&(0,i.jsx)(s.IW,{suffixIcon:"arrowUpRightFromSquare",style:{margin:"0",width:"fit-content"},href:d,children:(0,i.jsx)(s.xv,{variant:"body-default-s",children:"View project"})})]})]})]})]})}},1844:function(e,t,a){"use strict";a.d(t,{RouteGuard:function(){return d}});var i=a(7437),s=a(2265),n=a(9376),r=a(5783),l=a(4007);function o(){return(0,i.jsxs)(l.sg,{as:"section",fill:!0,center:!0,paddingBottom:"160",children:[(0,i.jsx)(l.xv,{marginBottom:"s",variant:"display-strong-xl",children:"404"}),(0,i.jsx)(l.X6,{marginBottom:"l",variant:"display-default-xs",children:"Page Not Found"}
1),(0,i.jsx)(l.xv,{onBackground:"neutral-weak",children:"The page you are looking for does not exist."})]})}let d=e=>{let{children:t}=e,a=(0,n.usePathname)(),[d,c]=(0,s.useState)(!1),[h,m]=(0,s.useState)(!1),[p,x]=(0,s.useState)(""),[f,g]=(0,s.useState)(!1),[u,j]=(0,s.useState)(void 0),[v,b]=(0,s.useState)(!0);(0,s.useEffect)(()=>{(async()=>{b(!0),c(!1),m(!1),g(!1),c((()=>{if(!a)return!1;if(a in r._j)return r._j[a];for(let e of["/blog","/work"])if((null==a?void 0:a.startsWith(e))&&r._j[e])return!0;return!1})()),r.Fl[a]&&(m(!0),(await fetch("/api/check-auth")).ok&&g(!0)),b(!1)})()},[a]);let _=async()=>{(await fetch("/api/authenticate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:p})})).ok?(g(!0),j(void 0)):j("Incorrect password")};return v?(0,i.jsxs)(l.sg,{maxWidth:"m",gap:"xl",horizontal:"center",paddingY:"128",children:[(0,i.jsxs)(l.sg,{maxWidth:"s",gap:"m",children:[(0,i.jsx)(l.Od,{shape:"line",width:"xl",height:"l"}),(0,i.jsx)(l.Od,{shape:"line",width:"l",height:"m"}),(0,i.jsx)(l.Od,{shape:"line",width:"m",height:"m"})]}),(0,i.jsx)(l.sg,{fillWidth:!0,gap:"l",children:(0,i.jsxs)(l.sg,{gap:"m",children:[(0,i.jsx)(l.Od,{shape:"line",width:"xl",height:"m"}),(0,i.jsxs)(l.kC,{gap:"l",mobileDirection:"column",children:[(0,i.jsx)(l.Od,{shape:"block",width:"xl",height:"xl"}),(0,i.jsx)(l.Od,{shape:"block",width:"xl",height:"xl"}),(0,i.jsx)(l.Od,{shape:"block",width:"xl",height:"xl"})]})]})}),(0,i.jsx)(l.Od,{shape:"block",width:"xl",height:"l"})]}):d?h&&!f?(0,i.jsxs)(l.sg,{paddingY:"128",maxWidth:24,gap:"24",center:!0,children:[(0,i.jsx)(l.X6,{align:"center",wrap:"balance",children:"This page is password protected"}),(0,i.jsxs)(l.sg,{fillWidth:!0,gap:"8",horizontal:"center",children:[(0,i.jsx)(l.WU,{id:"password",label:"Password",value:p,onChange:e=>x(e.target.value),errorMessage:u}),(0,i.jsx)(l.zx,{onClick:_,children:"Submit"})]})]}):(0,i.jsx)(i.Fragment,{children:t}):(0,i.jsx)(o,{})}},4983:function(e){e.exports={brandContainer:"BrandName_brandContainer__RWLsG",finalState:"BrandName_finalState__JuoMJ",codeSymbolLeft:"BrandName_codeSymbolLeft__kSOUf",codeSymbolRight:"BrandName_codeSymbolRight__Zv0F8",firstName:"BrandName_firstName__w5fPh",lastName:"BrandName_lastName__syaOt",separator:"BrandName_separator__bNs_d",nameWrapper:"BrandName_nameWrapper__QSief",fadeIn:"BrandName_fadeIn__7mQ0O",verticalLineTop:"BrandName_verticalLineTop__k9Zts",verticalLineBottom:"BrandName_verticalLineBottom__rYg8H",animatedText:"BrandName_animatedText__teuvI",revealText:"BrandName_revealText__TVm79"}},2275:function(e){e.exports={position:"Header_position__y2w_C",mask:"Header_mask__joAFr",brandContainer:"Header_brandContainer__YNaN3",navigationContainer:"Header_navigationContainer__BRYr_",timeContainer:"Header_timeContainer__3Z_74"}},9187:function(e){e.exports={control:"HeadingLink_control__SRvcO",visibility:"HeadingLink_visibility__B5_8u",text:"HeadingLink_text__5SJxI"}}}]);

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.