PageSourceSearch

https://www.truvis.ai/assets/ContactUs-DrodRytI.js

js truvis.ai collected 2026-10-05 13:57:57 UTC 13,259 bytes, 11 lines download raw bytes

1import{c as b,r as c,j as e,m as p,b as v,g as w,R as y,A as C,p as k}from"./index-XjcTDRdy.js";import{M as A}from"./map-pin-fUlEb5kD.js";import{C as F}from"./clock-DTIEQP29.js";import{C as i}from"./circle-alert-CvIkIeye.js";import{C as S}from"./circle-check-big-D8qaYZxt.js";/**
2 * @license lucide-react v0.546.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 _=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],q=b("phone",_);/**
7 * @license lucide-react v0.546.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 M=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],E=b("send",M);function I({onBack:f}){const[t,x]=c.useState({name:"",email:"",subject:"",company:"",message:""}),[a,o]=c.useState({}),[r,m]=c.useState(!1),[g,u]=c.useState(!1),j=()=>{const s={};return t.name.trim()?t.name.trim().length<2&&(s.name="Name must be at least 2 characters"):s.name="Full name is required",t.email.trim()?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t.email)||(s.email="Please enter a valid email address"):s.email="Email address is required",t.subject.trim()||(s.subject="Subject is required"),t.message.trim()?t.message.trim().length<10&&(s.message="Message must be at least 10 characters"):s.message="Message is required",o(s),Object.keys(s).length===0},N=async s=>{if(s.preventDefault(),!!j()){m(!0),o({});try{const n=await k("/api/submit-sales.php",{kind:"contact",name:t.name,email:t.email,subject:t.subject,company:t.company,message:t.message},"sales");if(!n.ok){o(n.errors??{form:n.message||"Failed to send message. Please try again."});return}u(!0),x({name:"",email:"",subject:"",company:"",message:""}),setTimeout(()=>{u(!1)},8e3)}finally{m(!1)}}},l=(s,n)=>{x(d=>({...d,[s]:n})),a[s]&&o(d=>{const h={...d};return delete h[s],h})};return e.jsxs("div",{className:"bg-white min-h-screen relative overflow-hidden flex flex-col justify-between",children:[e.jsxs("div",{className:"absolute inset-0 -z-10 bg-gradient-to-b from-neutral-50/70 via-white to-neutral-50/50 overflow-hidden",children:[e.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 -z-10 w-[600px] h-[300px] bg-gradient-to-r from-[#0C25A3]/5 via-[#51419E]/5 to-transparent blur-[120px] rounded-full pointer-events-none"}),e.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(to_right,#80808008_1px,transparent_1px),linear-gradient(to_bottom,#80808008_1px,transparent_1px)] bg-[size:16px_24px] [mask-image:radial-gradient(ellipse_60%_50%_at_50%_0%,#000_70%,transparent_100%)] pointer-events-none"})]}),e.jsxs("div",{className:"mx-auto w-full max-w-7xl px-4 sm:px-6 lg:px-8 pt-6 pb-16 md:pt-8 md:pb-24 flex-1 flex flex-col text-left",children:[e.jsxs("div",{className:"max-w-3xl mb-8 md:mb-12",children:[e.jsxs(p.button,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{duration:.3},onClick:f,className:"group mb-4 inline-flex items-center gap-2 text-xs font-semibold text-neutral-500 hover:text-neutral-900 transition-colors cursor-pointer focus:outline-none h-11",children:[e.jsx(v,{className:"h-4 w-4 transition-transform group-hover:-translate-x-0.5"}),e.jsx("span",{children:"Back to Home"})]}),e.jsxs("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold tracking-tight text-neutral-900 leading-tight mb-5",children:["Contact"," ",e.jsx("span",{className:"text-transparent bg-clip-text bg-gradient-to-r from-[#0C25A3] to-[#51419E]",children:"Us"})]}),e.jsx("p",{className:"text-lg md:text-xl text-neutral-500 font-medium leading-relaxed",children:"Whether you're evaluating TruFlow, exploring our technology modules, or planning an enterprise deployment, our experts are here to answer your questions and guide you every step of the way."})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-10 lg:gap-16 items-start",children:[e.jsx("div",{className:"lg:col-span-5 space-y-8",children:e.jsxs("div",{className:"space-y-4",children:[e.jsx("h3",{className:"text-xs font-mono font-bold text-neutral-400 uppercase tracking-widest mb-2",children:"Corporate HQ & Details"}),e.jsxs("div",{className:"bg-white border border-neutral-100 rounded-2xl p-6 shadow-sm hover:shadow-md transition-all flex items-start gap-4",children:[e.jsx("div",{className:"h-10 w-10 rounded-xl bg-neutral-50 border border-neutral-100 flex items-center justify-center text-neutral-600 shrink-0",children:e.jsx(A,{className:"h-5 w-5"})}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("h4",{className:"text-[10px] font-bold text-neutral-400 uppercase tracking-wider",children:"Corporate Office"}),e.jsx("p",{className:"text-sm font-bold text-neutral-900",children:"Truvis Inc."}),e.jsx("p",{className:"text-xs font-medium text-neutral-500 leading-relaxed",children:"Office Address: Unit 505, 5th Floor Tower 1, World Trade Center, Kharadi, Pune - 411014"})]})]}),e.jsxs("div",{className:"bg-white border border-neutral-100 rounded-2xl p-6 shadow-sm hover:shadow-md transition-all flex items-start gap-4",children:[e.jsx("div",{className:"h-10 w-10 rounded-xl bg-neutral-50 border border-neutral-100 flex items-center justify-center text-neutral-600 shrink-0",children:e.jsx(w,{className:"h-5 w-5"})}),e.jsxs("div",{className:"space-y-3",children:[e.jsx("h4",{className:"text-[10px] font-bold text-neutral-400 uppercase tracking-wider",children:"Email"}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-xs text-neutral-400 font-semibold uppercase tracking-wider",children:"Business Operations & Sales"}),e.jsx("a",{href:"mailto:[email protected]",className:"text-sm font-bold text-neutral-900 hover:text-[#0C25A3] transition-colors block",children:"[email protected]"})]})]})]}),e.jsxs("div",{className:"bg-white border border-neutral-100 rounded-2xl p-6 shadow-sm hover:shadow-md transition-all flex items-start gap-4",children:[e.jsx("div",{className:"h-10 w-10 rounded-xl bg-neutral-50 border border-neutral-100 flex items-center justify-center text-neutral-600 shrink-0",children:e.jsx(q,{className:"h-5 w-5"})}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("h4",{className:"text-[10px] font-bold text-neutral-400 uppercase tracking-wider",children:"Phone"}),e.jsx("p",{className:"text-sm font-bold text-neutral-900",children:"+91-9730782170"}),e.jsxs("div",{className:"flex items-center gap-1 text-xs text-neutral-500 font-medium mt
11-1",children:[e.jsx(F,{className:"h-3.5 w-3.5 text-neutral-400"}),e.jsx("span",{children:"Mon - Fri, 9am - 6pm PST"})]})]})]})]})}),e.jsx("div",{className:"lg:col-span-7",children:e.jsx("div",{className:"bg-white border border-neutral-100 rounded-2xl p-6 md:p-8 shadow-sm hover:shadow-md transition-all relative overflow-hidden",children:e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"text-left",children:[e.jsx("h3",{className:"text-xl font-bold text-neutral-900",children:"Send us a Message"}),e.jsx("p",{className:"text-xs font-medium text-neutral-500 leading-relaxed mt-1",children:"Fill out the technical request below and a TruFlow systems engineer will respond within one business day."})]}),e.jsxs("form",{onSubmit:N,className:"space-y-5",children:[e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-1.5 text-left",children:[e.jsxs("label",{htmlFor:"contact-name",className:"text-xs font-bold text-neutral-700",children:["Full Name ",e.jsx("span",{className:"text-rose-500",children:"*"})]}),e.jsx("input",{id:"contact-name",type:"text",value:t.name,onChange:s=>l("name",s.target.value),placeholder:"John Doe",className:`w-full bg-neutral-50/50 border rounded-xl px-4 py-3 text-xs font-medium text-neutral-900 placeholder-neutral-400 focus:outline-none focus:bg-white transition-all h-11 ${a.name?"border-rose-300 focus:border-rose-500":"border-neutral-100 focus:border-[#0C25A3]"}`,disabled:r}),a.name&&e.jsxs("p",{className:"text-[10px] text-rose-500 font-bold flex items-center gap-1",children:[e.jsx(i,{className:"h-3 w-3 shrink-0"}),e.jsx("span",{children:a.name})]})]}),e.jsxs("div",{className:"space-y-1.5 text-left",children:[e.jsxs("label",{htmlFor:"contact-email",className:"text-xs font-bold text-neutral-700",children:["Work Email Address ",e.jsx("span",{className:"text-rose-500",children:"*"})]}),e.jsx("input",{id:"contact-email",type:"email",value:t.email,onChange:s=>l("email",s.target.value),placeholder:"[email protected]",className:`w-full bg-neutral-50/50 border rounded-xl px-4 py-3 text-xs font-medium text-neutral-900 placeholder-neutral-400 focus:outline-none focus:bg-white transition-all h-11 ${a.email?"border-rose-300 focus:border-rose-500":"border-neutral-100 focus:border-[#0C25A3]"}`,disabled:r}),a.email&&e.jsxs("p",{className:"text-[10px] text-rose-500 font-bold flex items-center gap-1",children:[e.jsx(i,{className:"h-3 w-3 shrink-0"}),e.jsx("span",{children:a.email})]})]})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-1.5 text-left",children:[e.jsxs("label",{htmlFor:"contact-subject",className:"text-xs font-bold text-neutral-700",children:["Subject ",e.jsx("span",{className:"text-rose-500",children:"*"})]}),e.jsx("input",{id:"contact-subject",type:"text",value:t.subject,onChange:s=>l("subject",s.target.value),placeholder:"How can we help?",className:`w-full bg-neutral-50/50 border rounded-xl px-4 py-3 text-xs font-medium text-neutral-900 placeholder-neutral-400 focus:outline-none focus:bg-white transition-all h-11 ${a.subject?"border-rose-300 focus:border-rose-500":"border-neutral-100 focus:border-[#0C25A3]"}`,disabled:r}),a.subject&&e.jsxs("p",{className:"text-[10px] text-rose-500 font-bold flex items-center gap-1",children:[e.jsx(i,{className:"h-3 w-3 shrink-0"}),e.jsx("span",{children:a.subject})]})]}),e.jsxs("div",{className:"space-y-1.5 text-left",children:[e.jsxs("label",{htmlFor:"contact-company",className:"text-xs font-bold text-neutral-700",children:["Company Name ",e.jsx("span",{className:"text-neutral-400 font-normal",children:"(Optional)"})]}),e.jsx("input",{id:"contact-company",type:"text",value:t.company,onChange:s=>l("company",s.target.value),placeholder:"Acme Corp",className:"w-full bg-neutral-50/50 border border-neutral-100 rounded-xl px-4 py-3 text-xs font-medium text-neutral-900 placeholder-neutral-400 focus:outline-none focus:border-[#0C25A3] focus:bg-white transition-all h-11",disabled:r})]})]}),e.jsxs("div",{className:"space-y-1.5 text-left",children:[e.jsxs("label",{htmlFor:"contact-message",className:"text-xs font-bold text-neutral-700",children:["Detailed Message ",e.jsx("span",{className:"text-rose-500",children:"*"})]}),e.jsx("textarea",{id:"contact-message",rows:5,value:t.message,onChange:s=>l("message",s.target.value),placeholder:"Please enter your request or technical inquiries in detail here...",className:`w-full bg-neutral-50/50 border rounded-xl p-4 text-xs font-medium text-neutral-900 placeholder-neutral-400 focus:outline-none focus:bg-white transition-all ${a.message?"border-rose-300 focus:border-rose-500":"border-neutral-100 focus:border-[#0C25A3]"}`,disabled:r}),a.message&&e.jsxs("p",{className:"text-[10px] text-rose-500 font-bold flex items-center gap-1",children:[e.jsx(i,{className:"h-3 w-3 shrink-0"}),e.jsx("span",{children:a.message})]})]}),a.form&&e.jsxs("div",{className:"rounded-xl border border-rose-200 bg-rose-50 px-4 py-3 text-[11px] font-semibold text-rose-700 flex items-start gap-2",children:[e.jsx(i,{className:"h-3.5 w-3.5 shrink-0 mt-px"}),e.jsx("span",{children:a.form})]}),e.jsx(y,{}),e.jsx("div",{className:"pt-2 flex justify-end",children:e.jsx("button",{type:"submit",disabled:r,className:"w-full sm:w-auto inline-flex h-11 items-center justify-center gap-2 rounded-xl bg-[#0C25A3] hover:bg-[#091C7A] text-white text-xs font-bold px-6 transition-all cursor-pointer disabled:opacity-50 select-none animate-none",children:r?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"h-3.5 w-3.5 rounded-full border-2 border-white/30 border-t-white animate-spin"}),e.jsx("span",{children:"Sending Request..."})]}):e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Send"}),e.jsx(E,{className:"h-3.5 w-3.5"})]})})})]}),e.jsx(C,{children:g&&e.jsxs(p.div,{initial:{opacity:0,y:10}
11,animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"bg-emerald-50 border border-emerald-200/90 rounded-2xl p-4 text-left flex items-start gap-3 mt-4",children:[e.jsx(S,{className:"h-5 w-5 text-emerald-600 shrink-0 mt-0.5"}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("h4",{className:"text-sm font-bold text-emerald-950",children:"Thank you for reaching out!"}),e.jsx("p",{className:"text-xs font-medium text-emerald-800 leading-relaxed",children:"Your message has been received. Our team will review your inquiry and get back to you shortly."})]})]})})]})})})]})]})]})}export{I 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.