1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11779],{18733:(e,t,a)=>{"use strict";a.d(t,{SE:()=>i,_A:()=>r,dw:()=>n,yw:()=>o});var s=a(69859);let l=e=>(e??"").trim().replace(/\/+$/,""),r=()=>{let e=l("https://www.techi.com");return e||"https://www.techi.com"},i=()=>{let e=l("https://www.techi.com");if(e)return e;let t=l("https://www.techi.com");return t&&!function(e){try{return new URL(e).hostname.toLowerCase().endsWith(".vercel.app")}catch{return!1}}(t)?t:"https://www.techi.com"},n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=i();if(!e||"/"===e)return`${t}/`;let a=(e.startsWith("/")?e:`/${e}`).replace(/\/+$/,"");return`${t}${a}/`},o=()=>{if(s.A){let e=window.location.protocol,t=window.location.hostname,a=window.location.port;return`${e}//${t}${a?`:${a}`:""}`}return l("https://www.techi.com")}},69859:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=!!window.document&&!!window.document.createElement},75713:(e,t,a)=>{Promise.resolve().then(a.t.bind(a,12929,23)),Promise.resolve().then(a.bind(a,96517))},96517:(e,t,a)=>{"use strict";a.d(t,{ContactForm:()=>x});var s=a(31426),l=a(12929),r=a.n(l),i=a(4682);let n="[email protected]",o=`mailto:${n}`;var d=a(18733);let c=`${(0,d.SE)()}/your-article/`,m=[{value:"editorial",label:"Editorial â story tips & corrections"},{value:"newsroom",label:"Newsroom â press, interviews, commentary"},{value:"analyst",label:"Analyst program â apply or questions"},{value:"advertising",label:"Advertising & sponsorships"},{value:"partnerships",label:"Syndication & partnerships"},{value:"careers",label:"Careers â role questions"},{value:"support",label:"Support â account, billing, bugs"},{value:"legal",label:"Legal / DMCA / privacy"},{value:"other",label:"Something else"}],h=[{value:"low",label:"Low â no rush"},{value:"medium",label:"Medium â this week"},{value:"high",label:"High â time-sensitive"},{value:"urgent",label:"Urgent â within 24h (please explain why)"}],u="h-11 w-full rounded-lg border border-slate-200 bg-white px-3 text-sm text-slate-900 placeholder:text-slate-400 transition-colors focus:border-techi-teal-deep focus:outline-none focus:ring-2 focus:ring-techi-teal-deep/20 dark:border-white/10 dark:bg-slate-900 dark:text-slate-100",p="mb-1.5 block text-sm font-medium text-slate-700 dark:text-slate-300";function x(){let[e,t]=(0,i.useState)("idle"),[a,l]=(0,i.useState)(""),[d,x]=(0,i.useState)({firstName:"",lastName:"",email:"",company:"",phone:"",department:"",subject:"",articleUrl:"",priority:"medium",message:"",consent:!1,website:""}),b=(e,t)=>x(a=>({...a,[e]:t})),g=async e=>{if(e.preventDefault(),d.website)return void t("success");if(!d.consent)return void l("Please agree to the privacy notice before sending.");t("submitting"),l("");try{let e=await fetch("/api/contact/",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(d)});if(!e.ok){let t=await e.json().catch(()=>({})),a=t.fields?Object.values(t.fields)[0]:void 0;throw Error(a||t.message||(429===e.status?"Too many submissions from this connection. Please try again in a few minutes.":"create_failed"===t.error?"We could not save your message. Please try again, or email [email protected].":`Could not submit (${e.status}). Please try again or email [email protected].`))}t("success")}catch(e){t("error"),l(e instanceof Error?e.message:"Something went wrong.")}};return"success"===e?(0,s.jsxs)("div",{className:"rounded-[14px] border border-emerald-200 bg-emerald-50 p-8 dark:border-emerald-800/40 dark:bg-emerald-900/10",children:[(0,s.jsx)("p",{className:"text-lg font-bold text-emerald-800 dark:text-emerald-300",children:"Message received."}),(0,s.jsxs)("p",{className:"mt-2 text-sm leading-relaxed text-emerald-700 dark:text-emerald-200",children:["A real editor will reply to"," ",(0,s.jsx)("span",{className:"font-semibold",children:d.email})," within one business day. If your note is urgent and more than 24 hours pass, email"," ",(0,s.jsx)("a",{href:o,className:"font-semibold underline-offset-4 hover:underline",children:n})," ","directly and we will escalate."]})]}):(0,s.jsxs)("form",{onSubmit:g,className:"space-y-5 rounded-[18px] border border-slate-200 bg-white p-6 shadow-sm dark:border-white/[0.08] dark:bg-white/[0.02] sm:p-8",children:[a&&(0,s.jsx)("div",{role:"alert",className:"rounded-lg border border-red-200 bg-red-50 px-4 py-3 text-sm text-red-700 dark:border-red-800/50 dark:bg-red-900/20 dark:text-red-300",children:a}
1),(0,s.jsx)("div",{"aria-hidden":!0,className:"hidden",children:(0,s.jsxs)("label",{children:["Website",(0,s.jsx)("input",{type:"text",name:"website",tabIndex:-1,autoComplete:"off",value:d.website,onChange:e=>b("website",e.target.value)})]})}),(0,s.jsxs)("fieldset",{disabled:"submitting"===e,className:"contents",children:[(0,s.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"firstName",className:p,children:"First name"}),(0,s.jsx)("input",{id:"firstName",name:"firstName",required:!0,autoComplete:"given-name",value:d.firstName,onChange:e=>b("firstName",e.target.value),className:u,placeholder:"Jane"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"lastName",className:p,children:"Last name"}),(0,s.jsx)("input",{id:"lastName",name:"lastName",required:!0,autoComplete:"family-name",value:d.lastName,onChange:e=>b("lastName",e.target.value),className:u,placeholder:"Doe"})]})]}),(0,s.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"email",className:p,children:"Email"}),(0,s.jsx)("input",{id:"email",name:"email",type:"email",required:!0,autoComplete:"email",value:d.email,onChange:e=>b("email",e.target.value),className:u,placeholder:"[email protected]"})]}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("label",{htmlFor:"phone",className:p,children:["Phone ",(0,s.jsx)("span",{className:"text-slate-500",children:"(optional)"})]}),(0,s.jsx)("input",{id:"phone",name:"phone",type:"tel",autoComplete:"tel",value:d.phone,onChange:e=>b("phone",e.target.value),className:u,placeholder:"+1 555 555 5555"})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("label",{htmlFor:"company",className:p,children:["Company / affiliation ",(0,s.jsx)("span",{className:"text-slate-500",children:"(optional)"})]}),(0,s.jsx)("input",{id:"company",name:"company",autoComplete:"organization",value:d.company,onChange:e=>b("company",e.target.value),className:u,placeholder:"e.g. Bloomberg, Goldman Sachs, freelance"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"department",className:p,children:"What is this about?"}),(0,s.jsxs)("select",{id:"department",name:"department",required:!0,value:d.department,onChange:e=>b("department",e.target.value),className:u,children:[(0,s.jsx)("option",{value:"",children:"Choose a department"}),m.map(e=>(0,s.jsx)("option",{value:e.value,children:e.label},e.value))]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"subject",className:p,children:"Subject"}),(0,s.jsx)("input",{id:"subject",name:"subject",required:!0,value:d.subject,onChange:e=>b("subject",e.target.value),className:u,placeholder:"Short, specific â e.g. âCorrection on NVDA Q4 FY26 revenue lineâ",maxLength:160})]}),("editorial"===d.department||"legal"===d.department)&&(0,s.jsxs)("div",{children:[(0,s.jsxs)("label",{htmlFor:"articleUrl",className:p,children:["Article URL ",(0,s.jsx)("span",{className:"text-slate-500",children:"(if applicable)"})]}),(0,s.jsx)("input",{id:"articleUrl",name:"articleUrl",type:"url",value:d.articleUrl,onChange:e=>b("articleUrl",e.target.value),className:u,placeholder:c}),(0,s.jsx)("p",{className:"mt-1 text-[12px] text-slate-500 dark:text-slate-400",children:"Please include the exact URL so our editors can triage the right piece."})]}),(0,s.jsxs)("fieldset",{children:[(0,s.jsx)("legend",{className:p,children:"Priority"}),(0,s.jsx)("div",{className:"flex flex-wrap gap-2",children:h.map(e=>(0,s.jsxs)("label",{className:`cursor-pointer rounded-full border px-3.5 py-1.5 text-[12.5px] font-semibold transition-colors ${d.priority===e.value?"border-techi-teal-deep bg-techi-teal-deep/10 text-techi-teal-press dark:border-techi-cyan dark:text-techi-cyan":"border-slate-200 bg-white text-slate-600 hover:border-slate-300 dark:border-white/10 dark:bg-white/[0.03] dark:text-slate-300"}`,children:[(0,s.jsx)("input",{type:"radio",name:"priority",value:e.value,checked:d.priority===e.value,onChange:()=>b("priority",e.value),className:"sr-only"}),e.label]},e.value))})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"message",className:p,children:"Message"}),(0,s.jsx)("textarea",{id:"message",name:"message",required:!0,rows:
17,minLength:30,maxLength:4e3,value:d.message,onChange:e=>b("message",e.target.value),className:"w-full rounded-lg border border-slate-200 bg-white px-3 py-2.5 text-sm text-slate-900 placeholder:text-slate-400 transition-colors focus:border-techi-teal-deep focus:outline-none focus:ring-2 focus:ring-techi-teal-deep/20 dark:border-white/10 dark:bg-slate-900 dark:text-slate-100",placeholder:"Be specific. Include dates, figures, and links wherever possible â the more detail you give, the faster we can help."}),(0,s.jsxs)("p",{className:"mt-1 text-[12px] text-slate-500 dark:text-slate-400",children:[d.message.length,"/4000 characters \xb7 min 30"]})]}),(0,s.jsxs)("label",{className:"flex items-start gap-3 rounded-[12px] border border-slate-200 bg-slate-50/60 p-4 text-[13.5px] leading-relaxed text-slate-700 dark:border-white/[0.08] dark:bg-white/[0.02] dark:text-slate-300",children:[(0,s.jsx)("input",{type:"checkbox",name:"consent",required:!0,checked:d.consent,onChange:e=>b("consent",e.target.checked),className:"mt-0.5 h-4 w-4 rounded border-slate-300 text-techi-teal-deep focus:ring-techi-teal-deep/40"}),(0,s.jsxs)("span",{children:["I agree that TECHi may store and process the information Iâve submitted to respond to my request, consistent with the"," ",(0,s.jsx)(r(),{href:"/privacy-policy/",className:"font-semibold text-techi-teal-press underline-offset-4 hover:underline dark:text-techi-cyan",children:"Privacy Policy"}),". I can request deletion at any time by emailing ",n,"."]})]}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3 border-t border-slate-100 pt-5 dark:border-white/[0.06]",children:[(0,s.jsxs)("p",{className:"text-[12.5px] text-slate-500 dark:text-slate-400",children:["We typically reply within 1 business day. Urgent?"," ",(0,s.jsx)("a",{href:o,className:"font-semibold text-techi-teal-press underline-offset-4 hover:underline dark:text-techi-cyan",children:n})]}),(0,s.jsx)("button",{type:"submit",disabled:"submitting"===e,className:"inline-flex h-11 items-center rounded-full bg-techi-teal-deep px-7 text-sm font-bold text-white transition-colors hover:bg-[#00807c] disabled:cursor-not-allowed disabled:opacity-60",children:"submitting"===e?"Sendingâ¦":"Send message"})]})]})]})}}},e=>{e.O(0,[12929,48434,45228,77358],()=>e(e.s=75713)),_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.