PageSourceSearch

https://shubhamjha.com/_next/static/chunks/1j0yw-vuuy4to.js

js shubhamjha.com collected 2026-10-08 03:47:15 UTC 2,217 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,31278,e=>{"use strict";let r=(0,e.i(75254).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["Loader2",0,r],31278)},51440,e=>{"use strict";var r=e.i(43476),s=e.i(71645),t=e.i(20669),a=e.i(63471),o=e.i(72520),i=e.i(31278),n=e.i(58249);e.s(["NewsletterForm",0,function({source:e="newsletter"}){let[l,c]=(0,s.useState)(""),[d,u]=(0,s.useState)("idle"),[m,p]=(0,s.useState)("");async function h(r){if(r.preventDefault(),!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(l)){u("error"),p("Enter a valid email address.");return}u("loading"),(0,n.track)(`${e}_submit`);try{let r=await fetch("/api/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:l})}),s=await r.json();r.ok&&s.success?(u("success"),p("You're on the list."),c(""),(0,n.track)(`${e}_success`)):(u("error"),p(s.error||"Something went wrong."),(0,n.track)(`${e}_error`,{reason:s.error||"api_error"}))}catch{u("error"),p("Network error. Please try again."),(0,n.track)(`${e}_error`,{reason:"network_error"})}}return"success"===d?(0,r.jsx)("p",{className:"font-mono text-sm text-green-700",children:m}):(0,r.jsxs)("form",{onSubmit:h,noValidate:!0,className:"space-y-2 max-w-sm",children:[(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(t.Input,{type:"email",value:l,onChange:e=>{c(e.target.value),"error"===d&&u("idle")},disabled:"loading"===d,required:!0,placeholder:"[email protected]","aria-label":"Email address",className:"flex-1 border border-border bg-background text-foreground placeholder:text-muted-foreground text-sm font-sans px-3 py-2 focus:outline-none focus:border-primary"}),(0,r.jsx)(a.Button,{type:"submit",variant:"default",className:"h-auto py-2 shrink-0",disabled:"loading"===d,children:"loading"===d?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{children:"Subscribe"}),(0,r.jsx)(i.Loader2,{className:"animate-spin"})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{children:"Subscribe"}),(0,r.jsx)(o.ArrowRight,{})]})})]}),"error"===d&&(0,r.jsx)("p",{role:"alert",className:"font-mono text-xs text-destructive",children:m})]})}])}]);

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.