PageSourceSearch

https://hexaloop.com/_next/static/chunks/d588d46ae8c95f17.js

js hexaloop.com collected 2026-10-02 01:31:44 UTC 7,336 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,46087,32616,17549,29428,19628,12680,e=>{"use strict";var t=e.i(43476);e.s(["Input",0,({id:e,label:a,type:s="text",placeholder:r,required:l=!1,value:n,onChange:i})=>(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsxs)("label",{htmlFor:e,className:"block text-sm font-medium text-gray-700 mb-2",children:[a,l&&(0,t.jsx)("span",{className:"text-red-500 ml-1",children:"*"})]}),(0,t.jsx)("input",{id:e,type:s,placeholder:r,required:l,value:n,onChange:i,className:"w-full px-4 py-3 rounded-lg border border-gray-300 focus:border-blue-500 focus:ring-2 focus:ring-blue-200 outline-none transition-all text-gray-800 text-sm sm:text-base"})]})],32616),e.s([],46087),e.s(["TextArea",0,({id:e,label:a,placeholder:s,required:r=!1,rows:l=5,value:n,onChange:i})=>(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsxs)("label",{htmlFor:e,className:"block text-sm font-medium text-gray-700 mb-2",children:[a,r&&(0,t.jsx)("span",{className:"text-red-500 ml-1",children:"*"})]}),(0,t.jsx)("textarea",{id:e,placeholder:s,required:r,rows:l,value:n,onChange:i,className:"w-full px-4 py-3 rounded-lg border border-gray-300 focus:border-blue-500 focus:ring-2 focus:ring-blue-200 outline-none transition-all text-gray-800 resize-none text-sm sm:text-base"})]})],17549),e.s([],29428);var a=e.i(71645);e.s(["Captcha",0,({value:e,onChange:s,onTokenChange:r,refreshSignal:l=0,label:n="Security Check"})=>{let[i,o]=(0,a.useState)(""),[c,u]=(0,a.useState)(!0),[d,m]=(0,a.useState)(!1),[h,x]=(0,a.useState)(0),p=(0,a.useCallback)(()=>x(e=>e+1),[]);return(0,a.useEffect)(()=>{let e=!0;return(async()=>{u(!0),m(!1);try{let t=await fetch("/api/captcha",{cache:"no-store"});if(!t.ok)throw Error("Failed to load captcha");let a=await t.json();if(!e)return;o(a.image),r(a.token),s("")}catch{if(!e)return;o(""),r(""),m(!0)}finally{e&&u(!1)}})(),()=>{e=!1}},[l,h]),(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsxs)("label",{htmlFor:"captchaAnswer",className:"block text-sm font-medium text-gray-700 mb-2",children:[n,(0,t.jsx)("span",{className:"text-red-500 ml-1",children:"*"})]}),(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center gap-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsxs)("div",{className:"h-[60px] w-[170px] rounded-lg border border-gray-300 bg-[#EDF7FC] overflow-hidden flex items-center justify-center shrink-0",children:[c&&(0,t.jsx)("span",{className:"text-xs text-gray-400",children:"Loading…"}),!c&&d&&(0,t.jsx)("span",{className:"text-xs text-red-500 px-2 text-center",children:"Failed to load"}),!c&&!d&&i&&(0,t.jsx)("img",{src:i,alt:"Security code image",width:170,height:60,className:"select-none pointer-events-none",draggable:!1})]}),(0,t.jsx)("button",{type:"button",onClick:p,"aria-label":"Get a new security code",title:"Get a new security code",className:"h-10 w-10 rounded-lg border border-gray-300 text-gray-500 hover:text-[#5EBEEB] hover:border-[#5EBEEB] transition-all flex items-center justify-center shrink-0",children:(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M21 12a9 9 0 1 1-2.64-6.36"}),(0,t.jsx)("polyline",{points:"21 3 21 9 15 9"})]})})]}),(0,t.jsx)("input",{id:"captchaAnswer",name:"captchaAnswer",type:"text",inputMode:"text",autoComplete:"off",autoCapitalize:"characters",spellCheck:!1,maxLength:8,placeholder:"Enter the code",required:!0,value:e,onChange:e=>s(e.target.value.toUpperCase()),className:"w-full px-4 py-3 rounded-lg border border-gray-300 focus:border-blue-500 focus:ring-2 focus:ring-blue-200 outline-none transition-all text-gray-800 text-sm sm:text-base tracking-[0.3em] uppercase"})]}),(0,t.jsx)("p",{className:"text-xs text-gray-400 mt-1.5",children:"Type the characters shown above. Can't read it? Tap the refresh icon."})]})}],19628),e.s([],12680)},64167,e=>{"use strict";var t=e.i(43476),a=e.i(71645);e.i(46087);var s=e.i(32616);e.i(29428);var r=e.i(17549);e.i(18885);var l=e.i(13625);e.i(12680);var n=e.i(19628);e.s(["ContactForm",0,({initialMessage:e=""})=>
1{let[i,o]=(0,a.useState)({name:"",email:"",phone:"",message:e}),[c,u]=(0,a.useState)(""),[d,m]=(0,a.useState)(""),[h,x]=(0,a.useState)(0),[p,g]=(0,a.useState)(""),[b,f]=(0,a.useState)("");(0,a.useEffect)(()=>{e&&o(t=>({...t,message:e}))},[e]);let[y,w]=(0,a.useState)(!1),[j,v]=(0,a.useState)("idle"),C=e=>{let{id:t,value:a}=e.target;o(e=>({...e,[t]:a}))},N=async e=>{e.preventDefault(),w(!0),v("idle"),f("");try{let e=await fetch("/api/contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...i,captchaToken:d,captchaAnswer:c,website:p})}),t=await e.json();e.ok?(v("success"),o({name:"",email:"",phone:"",message:""})):(v("error"),f(t.error||""),console.error("Error:",t.error)),setTimeout(()=>v("idle"),5e3)}catch(e){console.error("Failed to send message:",e),v("error"),setTimeout(()=>v("idle"),5e3)}finally{x(e=>e+1),w(!1)}};return(0,t.jsxs)("form",{onSubmit:N,className:"w-full max-w-4xl mx-auto space-y-5 sm:space-y-6 px-2 sm:px-0 pb-16 sm:pb-20",children:[(0,t.jsx)(s.Input,{id:"name",label:"Your Name",placeholder:"Rahul Sharma",required:!0,value:i.name,onChange:C}),(0,t.jsx)(s.Input,{id:"email",label:"Email Address",type:"email",placeholder:"[email protected]",required:!0,value:i.email,onChange:C}),(0,t.jsx)(s.Input,{id:"phone",label:"Phone Number (Optional)",type:"tel",placeholder:"+91 98765 43210",value:i.phone,onChange:C}),(0,t.jsx)(r.TextArea,{id:"message",label:"Your Message",placeholder:"Tell us about your project...",required:!0,rows:6,value:i.message,onChange:C}),(0,t.jsxs)("div",{style:{position:"absolute",left:"-9999px",width:"1px",height:"1px",overflow:"hidden"},"aria-hidden":"true",children:[(0,t.jsx)("label",{htmlFor:"website",children:"Leave this field empty"}),(0,t.jsx)("input",{id:"website",name:"website",type:"text",tabIndex:-1,autoComplete:"off",value:p,onChange:e=>g(e.target.value)})]}),(0,t.jsx)(n.Captcha,{value:c,onChange:u,onTokenChange:m,refreshSignal:h}),(0,t.jsx)(l.Button,{variant:"primary",type:"submit",className:"w-full",disabled:y||!d||0===c.trim().length,children:y?"Sending...":"Send Message"}),"success"===j&&(0,t.jsx)("p",{className:"text-green-600 text-center text-sm sm:text-base",children:"✓ Message sent successfully! We'll get back to you soon."}),"error"===j&&(0,t.jsxs)("p",{className:"text-red-600 text-center text-sm sm:text-base",children:["✗ ",b||"Failed to send message. Please try again or contact us directly."]})]})}])},75880,e=>{"use strict";var t=e.i(43476),a=e.i(71645),s=e.i(18566),r=e.i(64167);e.s(["ContactFormSection",0,()=>{let e=(0,s.useSearchParams)(),l=(0,a.useRef)(null),n=e.get("message"),i=e.get("type"),o=n?function(e){try{return decodeURIComponent(e)}catch{return e}}(n):"audit"===i?"I would like to request a free website / SEO audit. Here is my current website: ":"";return(0,a.useEffect)(()=>{if(!o)return;let e=window.setTimeout(()=>{l.current?.scrollIntoView({behavior:"smooth",block:"start"})},100);return()=>window.clearTimeout(e)},[o]),(0,t.jsx)("div",{ref:l,children:(0,t.jsx)(r.ContactForm,{initialMessage: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.