PageSourceSearch

https://machineavatars.com/_next/static/chunks/app/contact-us/page-1706b9d368a26338.js

js machineavatars.com collected 2026-10-09 22:58:50 UTC 14,271 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5746],{98171:function(e,t,r){Promise.resolve().then(r.bind(r,86868))},79205:function(e,t,r){"use strict";r.d(t,{Z:function(){return d}});var a=r(2265);let n=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),s=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase()),o=e=>{let t=s(e);return t.charAt(0).toUpperCase()+t.slice(1)},i=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()},l=e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};var c={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let u=(0,a.forwardRef)((e,t)=>{let{color:r="currentColor",size:n=24,strokeWidth:s=2,absoluteStrokeWidth:o,className:u="",children:d,iconNode:m,...x}=e;return(0,a.createElement)("svg",{ref:t,...c,width:n,height:n,stroke:r,strokeWidth:o?24*Number(s)/Number(n):s,className:i("lucide",u),...!d&&!l(x)&&{"aria-hidden":"true"},...x},[...m.map(e=>{let[t,r]=e;return(0,a.createElement)(t,r)}),...Array.isArray(d)?d:[d]])}),d=(e,t)=>{let r=(0,a.forwardRef)((r,s)=>{let{className:l,...c}=r;return(0,a.createElement)(u,{ref:s,iconNode:t,className:i("lucide-".concat(n(o(e))),"lucide-".concat(e),l),...c})});return r.displayName=o(e),r}},79219:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});let a=(0,r(79205).Z)("facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]])},37760:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});let a=(0,r(79205).Z)("instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]])},50598:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});let a=(0,r(79205).Z)("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"}]])},33145:function(e,t,r){"use strict";r.d(t,{default:function(){return n.a}});var a=r(48461),n=r.n(a)},99376:function(e,t,r){"use strict";var a=r(35475);r.o(a,"useParams")&&r.d(t,{useParams:function(){return a.useParams}}),r.o(a,"usePathname")&&r.d(t,{usePathname:function(){return a.usePathname}}),r.o(a,"useRouter")&&r.d(t,{useRouter:function(){return a.useRouter}}),r.o(a,"useSearchParams")&&r.d(t,{useSearchParams:function(){return a.useSearchParams}})},48461:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return l},getImageProps:function(){return i}});let a=r(47043),n=r(55346),s=r(65878),o=a._(r(5084));function i(e){let{props:t}=(0,n.getImgProps)(e,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let l=s.Image},95446:function(e,t,r){"use strict";r.d(t,{D:function(){return i},default:function(){return l}});var a=r(57437),n=r(99376),s=r(2265);let o=e=>e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||0!==e.button,i="transition:navigate";function l(){let e=(0,n.usePathname)(),[t,r]=(0,s.useState)(0),[l,c]=(0,s.useState)(!1),u=(0,s.useRef)(null),d=(0,s.useRef)(null),m=()=>{u.current&&(window.clearInterval(u.current),u.current=null),d.current&&(window.clearTimeout(d.current),d.current=null),d.current=window.setTimeout(()=>{c(!0),r(10),u.current=window.setInterval(()=>{r(e=>e>=90?e:e+(e<50?12:e<75?6:2))},200)},60)},x=()=>{d.current&&(window.clearTimeout(d.current),d.current=null),u.current&&(window.clearInterval(u.current),u.current=null),r(100),window.setTimeout(()=>{c(!1),window.setTimeout(()=>{r(0)},300)},150)};return(0,s.useEffect)(()=>{x()},[e]),(0,s.useEffect)(()=>{let e=e=>{if(o(e)||e.defaultPrevented)return;let t=e.target,r=null==t?void 0:t.closest("a[href]");if(!r||"_blank"===r.target||r.hasAttribute("download"))return;let a=new URL(r.href,window.location.href);a.origin===window.location.origin&&(a.pathname!==window.location.pathname||a.search!==window.location.search)&&m()};return document.addEventListener("click",e,!0),()=>{document.removeEventListener("click",e,!0),d.current&&window.clearTimeout(d.current),u.current&&window.clearInterval(u.current)}},[]),(0,s.useEffect)(()=>{let e=()=>m();return window.addEventListener(i,e),()=>window.removeEventListener(i,e)},[]),(0,a.jsx)("div",{"aria-hidden":"true",style:{transform:"scaleX(".concat(t/100,")"),opacity:l?1:0},className:"fixed left-0 top-0 z-[9999] h-[3px] w-full origin-left bg-gradient-to-r from-[#19D8EC] via-[#4B33CA] to-[#1B039B] shadow-[0_0_14px_rgba(25,216,236,0.55)] transition-all duration-300 ease-out"})}},86868:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return u}});var a=r(57437),n=r(2265),s=r(33145),o=r(30560),i=r(10048),l={src:"/_next/static/media/ChatGPT.eaeba00a.png",height:1536,width:1024,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAICAMAAAAGL8UJAAAASFBMVEX79fDIk2+zopPex7fVzcXKw72+ta69rqHHvremmo7++vXLoYTaro7avafs5N7Es6euhmm1d1T66+CukXqSe2vLsJbi2tTf1c2ITEVZAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAM0l
1EQVR4nAXBBwKAIAwAsYMCbUFlOPj/T03Ang01ToEqYcGnb7qIJVvi9qwnwa0fDC/afiC3AWR7aNvxAAAAAElFTkSuQmCC",blurWidth:5,blurHeight:8},c=r(34303),u=()=>{let[e,t]=(0,n.useState)({name:"",email:"",phone:"",website:""}),[r,u]=(0,n.useState)("+91"),[d,m]=(0,n.useState)(!0),[x,h]=(0,n.useState)(!1),f=(0,o.w)(),p=window.location.href;(0,n.useEffect)(()=>{(async()=>{try{let e=sessionStorage.getItem("phoneCode");if(e){u(e);return}let t=localStorage.getItem("phoneCode");if(t){u(t),sessionStorage.setItem("phoneCode",t);return}let r=await fetch("https://api.ipdata.co/?api-key=8b5b78805e4345eb06960a7134945bb10ab261d1a67082a39a202350"),a=await r.json(),n=a.calling_code?"+".concat(a.calling_code):"+91";u(n),localStorage.setItem("phoneCode",n),sessionStorage.setItem("phoneCode",n)}catch(e){console.error("Error fetching user's country code:",e)}})()},[]);let g=e=>{let{name:r,value:a}=e.target;if("phone"===r){/^\d*$/.test(a)&&t(e=>({...e,[r]:a}));return}if("website"===r){t(e=>({...e,[r]:a})),m(w(a));return}t(e=>({...e,[r]:a}))},w=e=>!e||/^(https?:\/\/)?([\da-zA-Z.-]+)\.([a-zA-Z.]{2,})([\/\w .-]*)*\/?$/.test(e),b=async a=>{if(a.preventDefault(),!d){alert("Invalid website URL. Please correct it before submitting.");return}if(!/^\d{10}$/.test(e.phone)){alert("Phone number must be exactly 10 digits.");return}if(e.name.length>30){alert("Name cannot exceed 30 characters.");return}h(!0);let n='\n      <html>\n        <head>\n          <title>Contact Us</title>\n        </head>\n        <body>\n          <div>\n            <h2>Service Request - <a href="machineagents.ai">Machine AI Agents</a></h2>\n            <h4>Fullname: '.concat(e.name,"</h4>\n            <h4>Phone: ").concat(r+e.phone,"</h4>\n            <h4>Email: ").concat(e.email,"</h4>\n            <h4>Website: ").concat(e.website,"</h4>\n            <h4>Lead URL: ").concat(p,"</h4>\n          </div>\n        </body>\n      </html>\n    ");try{await (0,i.e)("email/send-email",{html:n,subject:"AI Machine Agents Lead",toRecipients:{to:[{address:"[email protected]",displayName:"Kunal Tomar"},{address:"[email protected]",displayName:"Himani Gurnani"},{address:"[email protected]",displayName:"Vijay Kanathe"},{address:"[email protected]",displayName:"Sheetal Upadhyay"},{address:"[email protected]",displayName:"Meet Kumar"}]},firstName:e.name,website:e.website,phone:e.phone,email:e.email,message:"",purpose:"Demo Request",country:""}),f.push("/thank-you"),t({name:"",email:"",phone:"",website:""})}catch(e){console.error("Error sending email:",e),alert("Error sending email. Please try again.")}finally{h(!1)}};return(0,a.jsxs)("div",{className:"min-h-screen bg-[#FCFDFF] overflow-x-hidden",children:[(0,a.jsxs)("div",{className:"mx-auto max-w-[1920px] px-3 xs:px-4 sm:px-6 md:px-8 lg:px-12 xl:px-16 pt-6 sm:pt-8 md:pt-10 lg:pt-12 pb-8 xs:pb-12 sm:pb-16",children:[(0,a.jsx)("div",{className:"text-center mb-6 xs:mb-8 sm:mb-10",children:(0,a.jsx)("h1",{className:"text-[25px] xs:text-[28px] sm:text-[32px] md:text-[36px] lg:text-[40px] xl:text-[44px] 2xl:text-[48px] font-bold text-[#000080] leading-tight",children:"CONTACT US"})}),(0,a.jsx)("div",{className:"bg-[#F3F3FF] rounded-2xl overflow-hidden shadow-lg border border-gray-200/50 max-w-5xl mx-auto",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2",children:[(0,a.jsx)("div",{className:"bg-[#F3F3FF] flex items-center justify-center p-4 xs:p-6 sm:p-8 lg:p-10 order-2 lg:order-1",children:(0,a.jsx)("div",{className:"w-full max-w-[200px] xs:max-w-[240px] sm:max-w-[280px] lg:max-w-[320px]",children:(0,a.jsx)(s.default,{src:l,alt:"Professional headshot",className:"w-full h-auto rounded-lg object-cover shadow-lg"})})}),(0,a.jsx)("div",{className:"bg-[#F3F3FF] p-4 xs:p-6 sm:p-8 lg:p-10 flex flex-col justify-center order-1 lg:order-2",children:(0,a.jsxs)("div",{className:"max-w-sm mx-auto w-full",children:[(0,a.jsx)("h2",{className:"text-base xs:text-lg sm:text-xl font-semibold text-[#000080] mb-4 xs:mb-5 sm:mb-6 text-center leading-tight",children:"Share your details to book a demo of MachineAvatars"}),(0,a.jsxs)("form",{onSubmit:b,className:"space-y-3 xs:space-y-4 sm:sp
1ace-y-5",children:[(0,a.jsx)("div",{children:(0,a.jsx)("input",{type:"text",name:"name",placeholder:"Name",value:e.name,onChange:g,required:!0,maxLength:30,className:"w-full px-3 xs:px-4 sm:px-5 py-2.5 xs:py-3 sm:py-3.5 border border-gray-300 rounded-lg bg-white text-[#000080] placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-[#19D9EC] focus:border-[#1B039B] transition-all duration-200 text-sm xs:text-base"})}),(0,a.jsx)("div",{children:(0,a.jsx)("input",{type:"email",name:"email",placeholder:"[email protected]",value:e.email,onChange:g,required:!0,className:"w-full px-3 xs:px-4 sm:px-5 py-2.5 xs:py-3 sm:py-3.5 border border-gray-300 rounded-lg bg-white text-[#000080] placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-[#19D9EC] focus:border-[#1B039B] transition-all duration-200 text-sm xs:text-base"})}),(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)("div",{className:"flex items-center px-2 xs:px-3 sm:px-4 py-2.5 xs:py-3 sm:py-3.5 bg-gradient-to-r from-[#f5f9ff] to-[#eef4ff] border border-gray-300 border-r-0 rounded-l-lg",children:(0,a.jsx)("span",{className:"text-[#1B039B] text-xs xs:text-sm sm:text-base font-semibold",children:r})}),(0,a.jsx)("input",{type:"tel",name:"phone",placeholder:"Phone Number",value:e.phone,onChange:g,required:!0,maxLength:10,pattern:"\\d{10}",title:"Phone number must be exactly 10 digits",className:"flex-1 px-3 xs:px-4 sm:px-5 py-2.5 xs:py-3 sm:py-3.5 border border-gray-300 rounded-r-lg bg-white text-[#000080] placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-[#19D9EC] focus:border-[#1B039B] transition-all duration-200 text-sm xs:text-base"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("input",{type:"url",name:"website",placeholder:"Website URL (Optional)",value:e.website,onChange:g,className:"w-full px-3 xs:px-4 sm:px-5 py-2.5 xs:py-3 sm:py-3.5 border rounded-lg bg-white text-[#000080] placeholder-gray-400 focus:outline-none focus:ring-2 transition-all duration-200 text-sm xs:text-base ".concat(!d&&e.website?"border-red-500 focus:ring-red-500 focus:border-red-500":"border-gray-300 focus:ring-[#19D9EC] focus:border-[#1B039B]")}),!d&&e.website&&(0,a.jsx)("p",{className:"text-red-500 text-xs xs:text-sm mt-1 px-1",children:"Invalid website URL"})]}),(0,a.jsx)("button",{type:"submit",disabled:x,className:"w-full bg-gradient-to-r from-[#19D8EC] to-[#1B039B] hover:from-[#19D9EC] hover:to-[#1B039B] disabled:from-gray-300 disabled:to-gray-400 text-white font-medium py-2.5 xs:py-3 sm:py-3.5 px-4 xs:px-5 sm:px-6 rounded-lg transition-all duration-300 mt-4 xs:mt-5 sm:mt-6 flex items-center justify-center shadow-md hover:shadow-lg hover:scale-[1.02] disabled:hover:scale-100 disabled:cursor-not-allowed text-sm xs:text-base sm:text-lg",children:x?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("svg",{className:"animate-spin h-4 w-4 xs:h-5 xs:w-5 sm:h-6 sm:w-6 mr-2 xs:mr-3 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,a.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,a.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v8H4z"})]}),(0,a.jsx)("span",{className:"text-xs xs:text-sm sm:text-base",children:"Submitting..."})]}):"Book a Demo"})]})]})})]})}),(0,a.jsx)("div",{className:"mt-6 xs:mt-8 sm:mt-10 flex flex-col md:flex-row justify-center items-center space-y-4 xs:space-y-5 sm:space-y-6 md:space-y-0 md:space-x-8 lg:space-x-16"})]}),(0,a.jsx)(c.default,{})]})}},10048:function(e,t,r){"use strict";r.d(t,{e:function(){return n}});var a=r(83464);function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((r,n)=>{let s=sessionStorage.getItem("token")||sessionStorage.getItem("authToken")||null;
1a.Z.post("https://machineavatars.com/"+e,t,s?{headers:{authorization:"Bearer "+s}}:{}).then(e=>{r(e.data)}).catch(e=>{n(e)})})}},30560:function(e,t,r){"use strict";r.d(t,{w:function(){return o}});var a=r(99376),n=r(2265),s=r(95446);function o(){let e=(0,a.useRouter)(),t=(0,n.useCallback)(()=>{window.dispatchEvent(new Event(s.D))},[]),r=(0,n.useCallback)(function(){for(var r=arguments.length,a=Array(r),n=0;n<r;n++)a[n]=arguments[n];return t(),e.push(...a)},[e,t]),o=(0,n.useCallback)(function(){for(var r=arguments.length,a=Array(r),n=0;n<r;n++)a[n]=arguments[n];return t(),e.replace(...a)},[e,t]);return(0,n.useMemo)(()=>({...e,push:r,replace:o}),[e,r,o])}}},function(e){e.O(0,[5878,3464,4303,2971,2117,1744],function(){return e(e.s=98171)}),_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.