PageSourceSearch

https://www.capyngen.com/assets/ExitPopup-BG5ra8NP.js

js capyngen.com collected 2026-10-08 06:36:16 UTC 7,128 bytes, 1 lines download raw bytes

1import{j as e}from"./data-vendor-Dm-g84yT.js";import{a as i,j as E}from"./react-vendor-D4WbZ5lj.js";import{M as A,L as M}from"./LandingPage-zFiArKaP.js";import{A as O,m as y}from"./animation-vendor-BF7S2np1.js";import{X as L}from"./x-Dh54ppj2.js";import{S as z}from"./sparkles-9sxROHYf.js";import{C as x}from"./circle-check-qwOcTNvc.js";import{G as F}from"./gift-BmNcS0Xs.js";import{A as D}from"./arrow-right-BubOisEA.js";import"./index-BhvCxTyo.js";import"./Reveal-B2FN1F1G.js";import"./circle-alert-C8nnJvtE.js";import"./createLucideIcon-C3Mu14bM.js";import"./globe-DVKeNOhd.js";import"./chevron-down-BCOUDb9W.js";import"./check-qT0HgTR6.js";function ee(){const[w,l]=i.useState(!1),[f,m]=i.useState(!1),v=E(),[d,c]=i.useState(1),[u,h]=i.useState(!0),[N,r]=i.useState(""),[t,p]=i.useState({fullName:"",email:"",phone:"",whatsappNumber:"",city:"",brandName:"",website:"",businessType:"",serviceType:[],budget:"",bestTime:"",notes:""}),b=s=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s),g=(s=d)=>{switch(s){case 1:return t.fullName.trim()!==""&&b(t.email);case 2:return t.phone.trim()!==""&&u||t.whatsappNumber.trim()!=="";case 3:return t.city.trim()!==""&&t.brandName.trim()!==""&&t.website.trim()!=="";case 4:return t.businessType!=="";case 5:return t.serviceType.length>0;case 6:return t.budget!=="";case 7:return t.bestTime.trim()!=="";default:return!0}},j=()=>
1{if(d===1&&!b(t.email)){r("Invalid email address"),setTimeout(()=>r(""),3e3);return}g()&&c(s=>s+1)},T=()=>c(s=>Math.max(1,s-1)),k=s=>{const{name:a,value:o}=s.target;p(n=>({...n,[a]:o}))},S=s=>{p(a=>{const n=a.serviceType.includes(s)?a.serviceType.filter(P=>P!==s):[...a.serviceType,s];return{...a,serviceType:n}})},_=async s=>{s.preventDefault();try{const a={fullName:t.fullName,email:t.email,phone:t.phone,whatsappNumber:u?t.phone:t.whatsappNumber,city:t.city,brandName:t.brandName,website:t.website,businessType:t.businessType,services:t.serviceType,budget:t.budget,bestTime:t.bestTime,notes:t.notes},o=await fetch("https://api.capyngen.com/api/lead",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),n=await o.json();o.ok&&n.ok?(r("Request received, we will connect with you shortly."),p({fullName:"",email:"",phone:"",whatsappNumber:"",city:"",brandName:"",website:"",businessType:"",serviceType:[],budget:"",bestTime:"",notes:""}),c(1),h(!0),setTimeout(()=>{r(""),m(!1),v("/")},5e3)):(r(n.message||"Something went wrong. Please try again later."),setTimeout(()=>r(""),5e3))}catch{r("Failed to send request. Please check your connection."),setTimeout(()=>r(""),5e3)}},C=["1","2","3","4","5","6","7"];return i.useEffect(()=>{const s=a=>{a.clientY<=0&&l(!0)};return document.addEventListener("mouseleave",s),()=>document.removeEventListener("mouseleave",s)},[]),e.jsxs(e.Fragment,{children:[e.jsx(O,{children:w&&!f&&e.jsx(y.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black/70 backdrop-blur-sm flex items-center justify-center z-[100] px-4 py-6 overflow-y-auto",children:e.jsxs(y.div,{initial:{scale:.95,opacity:0,y:20},animate:{scale:1,opacity:1,y:0},exit:{scale:.95,opacity:0,y:20},transition:{type:"spring",stiffness:400,damping:30},className:"relative w-full max-w-lg bg-[#0f172a]/90 backdrop-blur-xl border border-white/10 rounded-3xl p-8 sm:p-10 shadow-[0_0_80px_rgba(0,0,0,0.6)] overflow-hidden text-center group",children:[e.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(to_right,#ffffff08_1px,transparent_1px),linear-gradient(to_bottom,#ffffff08_1px,transparent_1px)] bg-[size:24px_24px] [mask-image:radial-gradient(ellipse_60%_60%_at_50%_50%,#000_60%,transparent_100%)] pointer-events-none"}),e.jsx("div",{className:"absolute top-[-20%] left-[-10%] w-[300px] h-[300px] bg-indigo-500/20 blur-[80px] rounded-full pointer-events-none transition-transform duration-700 group-hover:scale-110"}),e.jsx("div",{className:"absolute bottom-[-20%] right-[-10%] w-[250px] h-[250px] bg-blue-500/20 blur-[80px] rounded-full pointer-events-none transition-transform duration-700 group-hover:scale-110"}),e.jsx("button",{onClick:()=>l(!1),className:"absolute top-5 right-5 text-slate-400 hover:text-white bg-white/5 hover:bg-white/10 border border-transparent hover:border-white/10 rounded-full p-2 transition-all z-20",children:e.jsx(L,{size:18})}),e.jsxs("div",{className:"relative z-10 flex flex-col items-center",children:[e.jsxs("div",{className:"inline-flex items-center gap-1.5 px-4 py-1.5 rounded-full bg-indigo-500/10 border border-indigo-500/20 text-indigo-300 text-[11px] sm:text-xs font-bold uppercase tracking-widest mb-6",children:[e.jsx(z,{className:"w-3.5 h-3.5 text-indigo-400"}),"Wait! Before you leave"]}),e.jsxs("h2",{className:"text-3xl sm:text-4xl font-extrabold text-white mb-4 tracking-tight leading-tight",children:["Don't leave without your ",e.jsx("br",{className:"hidden sm:block"}),e.jsx("span",{className:"text-transparent bg-clip-text bg-gradient-to-r from-blue-400 via-indigo-400 to-blue-400 drop-shadow-sm",children:"Exclusive Package"})]}),e.jsx("p",{className:"text-slate-300 mb-8 text-sm sm:text-base leading-relaxed max-w-md",children:"We want to help your business scale. Grab a free expert consultation or lock in your special discount right now."}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 sm:gap-6 mb-10 text-xs sm:text-sm font-medium text-slate-300",children:[e.jsxs("span",{className:"flex items-center justify-center gap-2",children:[e.jsx(x,{className:"w-4 h-4 text-emerald-400"})," Free Audit"]}),e.jsxs("span",{className:"flex items-center justify-center gap-2",children:[e.jsx(x,{className:"w-4 h-4 text-emerald-400"})," Custom Strategy"]}),e.jsxs("span",{className:"flex items-center justify-center gap-2",children:[e.jsx(x,{className:"w-4 h-4 text-emerald-400"})," Zero Obligation"]})]}),e.jsxs("div",{className:"w-full flex flex-col gap-4",children:[e.jsxs("div",{className:"relative w-full group/btn",children:[e.jsx("div",{className:"absolute -inset-0.5 bg-gradient-to-r from-indigo-500 to-blue-500 rounded-xl blur opacity-40 group-hover/btn:opacity-70 transition duration-500"}),e.jsxs("button",{onClick:()=>{m(!0),l(!1)},className:"relative w-full flex items-center justify-center gap-2 bg-gradient-to-r from-indigo-600 to-blue-500 hover:from-indigo-500 hover:to-blue-400 text-white font-bold py-4 rounded-xl shadow-lg transition-all duration-300 transform group-hover/btn:-translate-y-0.5",children:[e.jsx(F,{className:"w-5 h-5"}),"Claim My Offer Now",e.jsx(D,{className:"w-4 h-4 ml-1 group-hover/btn:translate-x-1 transition-transform"})]})]}),e.jsx("button",{onClick:()=>l(!1),className:"text-slate-500 hover:text-slate-300 text-sm py-2 font-medium transition-colors hover:underline underline-offset-4",children:"No thanks, I'll pay full price later"})]})]})]})})}),e.jsx(A,{isOpen:f,onClose:()=>m(!1),children:e.jsx(M,{step:d,setStep:c,whatsappSameAsPhone:u,setWhatsappSameAsPhone:h,notification:N,setNotification:r,formData:t,setFormData:p,validateStep:g,handleNext:j,handleBack:T,handleChange:k,handleCheckboxChange:S,handleSubmit:_,stepLabels:C,onClose:()=>m(!1),modalMode:!0})})]})}export{ee 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.