1import{l as T,t as d,j as e,T as w,G as A,H as I,I as _,J as k,K as E,S as O,d as M,M as x,O as f,P as C,B as D,F as L}from"./index-Bejne2dN.js";import{S as F}from"./send-Cw1louCu.js";/** 2 * @license lucide-react v0.462.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const q=T("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/** 7 * @license lucide-react v0.462.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */const P=T("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]),R=1,V=1e6;let y=0;function z(){return y=(y+1)%Number.MAX_SAFE_INTEGER,y.toString()}const j=new Map,v=s=>{if(j.has(s))return;const a=setTimeout(()=>{j.delete(s),m({type:"REMOVE_TOAST",toastId:s})},V);j.set(s,a)},G=(s,a)=>{switch(a.type){case"ADD_TOAST":return{...s,toasts:[a.toast,...s.toasts].slice(0,R)};case"UPDATE_TOAST":return{...s,toasts:s.toasts.map(n=>n.id===a.toast.id?{...n,...a.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=a;return n?v(n):s.toasts.forEach(t=>{v(t.id)}),{...s,toasts:s.toasts.map(t=>t.id===n||n===void 0?{...t,open:!1}:t)}}case"REMOVE_TOAST":return a.toastId===void 0?{...s,toasts:[]}:{...s,toasts:s.toasts.filter(n=>n.id!==a.toastId)}}},p=[];let g={toasts:[]};function m(s){g=G(g,s),p.forEach(a=>{a(g)})}function U({...s}){const a=z(),n=r=>m({type:"UPDATE_TOAST",toast:{...r,id:a}}),t=()=>m({type:"DISMISS_TOAST",toastId:a});return m({type:"ADD_TOAST",toast:{...s,id:a,open:!0,onOpenChange:r=>{r||t()}}}),{id:a,dismiss:t,update:n}}function N(){const[s,a]=d.useState(g);return d.useEffect(()=>(p.push(a),()=>{const n=p.indexOf(a);n>-1&&p.splice(n,1)}),[s]),{...s,toast:U,dismiss:n=>m({type:"DISMISS_TOAST",toastId:n})}}function Y(){const{toasts:s}=N();return e.jsxs(w,{children:[s.map(function({id:a,title:n,description:t,action:r,...i}){return e.jsxs(A,{...i,children:[e.jsxs("div",{className:"grid gap-1",children:[n&&e.jsx(I,{children:n}),t&&e.jsx(_,{children:t})]}),r,e.jsx(k,{})]},a)}),e.jsx(E,{})]})}const W=()=>{const{toast:s}=N(),[a,n]=d.useState(!1),[t,r]=d.useState({name:"",email:"",company:"",message:"",_gotcha:""});d.useEffect(()=>{window.scrollTo(0,0)},[]);const i=c=>{r(l=>({...l,[c.target.name]:c.target.value}))},b=async c=>{var l;if(c.preventDefault(),!t.name.trim()||!t.email.trim()||!t.message.trim()){s({title:"Please fill in all required fields.",variant:"destructive"});return}n(!0);try{const h=await fetch("https://formspree.io/f/xykogowz",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({name:t.name,email:t.email,company:t.company,message:t.message,_gotcha:t._gotcha})});if(h.ok)s({title:"Message sent!",description:"We'll get back to you shortly."}),r({name:"",email:"",company:"",message:"",_gotcha:""});else{let u="Please try again or email us directly.";try{const o=await h.json();o!=null&&o.error?u=o.error:(l=o==null?void 0:o.errors)!=null&&l.length&&(u=o.errors.map(S=>S.message).join(" "))}catch{}console.error("[Contact] Formspree error",h.status,u),s({title:"Something went wrong.",description:u,variant:"destructive"})}}catch{s({title:"Network error.",description:"Please check your connection and try again.",variant:"destructive"})}finally{n(!1)}};return e.jsxs("div",{className:"min-h-screen flex flex-col bg-background text-foreground",children:[e.jsx(O,{title:"Contact | Niobia AI",description:"Get in touch with Niobia AI about battery R&D workflows, enterprise deployments, security reviews, and product demos.",path:"/contact"}),e.jsx(Y,{}),e.jsx(M,{}),e.jsx("main",{className:"flex-1",children:e.jsx("div",{className:"container py-16 md:py-24",children:e.jsxs("div",{className:"max-w-5xl mx-auto",children:[e.jsxs("div",{className:"text-center mb-12",children:[e.jsx("h1",{className:"text-3xl md:text-4xl font-bold tracking-tight mb-3",children:"Contact Us"}),e.jsx("p",{className:"text-muted-foreground max-w-xl mx-auto",children:"Have a question about Niobia AI? Interested in an enterprise deployment? We'd love to hear from you."})]}
11),e.jsxs("div",{className:"grid md:grid-cols-5 gap-12",children:[e.jsx("div",{className:"md:col-span-3",children:e.jsxs("form",{onSubmit:b,className:"space-y-5",children:[e.jsx("input",{type:"text",name:"_gotcha",value:t._gotcha,onChange:c=>r(l=>({...l,_gotcha:c.target.value})),style:{display:"none"},tabIndex:-1,autoComplete:"off","aria-hidden":"true"}),e.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsxs(x,{htmlFor:"name",children:["Name ",e.jsx("span",{className:"text-destructive",children:"*"})]}),e.jsx(f,{id:"name",name:"name",placeholder:"Your name",value:t.name,onChange:i,maxLength:100,required:!0})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs(x,{htmlFor:"email",children:["Email ",e.jsx("span",{className:"text-destructive",children:"*"})]}),e.jsx(f,{id:"email",name:"email",type:"email",placeholder:"[email protected]",value:t.email,onChange:i,maxLength:255,required:!0})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(x,{htmlFor:"company",children:"Company"}),e.jsx(f,{id:"company",name:"company",placeholder:"Your organization (optional)",value:t.company,onChange:i,maxLength:100})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs(x,{htmlFor:"message",children:["Message ",e.jsx("span",{className:"text-destructive",children:"*"})]}),e.jsx(C,{id:"message",name:"message",placeholder:"Tell us how we can help...",value:t.message,onChange:i,maxLength:2e3,rows:6,required:!0})]}),e.jsxs(D,{type:"submit",disabled:a,className:"w-full sm:w-auto",children:[a?"Sending...":"Send Message",e.jsx(F,{className:"ml-2 h-4 w-4"})]})]})}),e.jsx("div",{className:"md:col-span-2 space-y-8",children:e.jsxs("div",{className:"rounded-xl border border-border bg-card p-6 space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold mb-2",children:"Email"}),e.jsxs("a",{href:"mailto:[email protected]",className:"inline-flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground transition-colors",children:[e.jsx(P,{className:"h-4 w-4"}),"[email protected]"]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold mb-2",children:"LinkedIn"}),e.jsxs("a",{href:"https://linkedin.com/company/niobia-ai/posts/?feedView=all",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground transition-colors",children:[e.jsx(q,{className:"h-4 w-4"}),"Niobia AI"]})]}),e.jsx("div",{className:"pt-2 border-t border-border",children:e.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:"For security inquiries, compliance questionnaires, or enterprise deployment discussions, please mention it in your message and we'll route it to the right team."})})]})})]})]})})}),e.jsx(L,{})]})};export{W as default};
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.