1import{b as S,u as C,r as h,j as e}from"./vendor-react-Dxo5VVMX.js";import{H as D,A as j}from"./index-xsCBv_jq.js";import{mixpanel as c}from"./mixpanel-CmVRJZ7N.js";import"./vendor-analytics-BolNmaul.js";import"./vendor-query-BGDNI3Fe.js";function R({title:d}){const f=S(),y=C(),{car:l,startDate:N,endDate:k,userData:E,totalAmount:z,activeTab:F,city:t}=y.state;h.useEffect(()=>{c.track("Page Viewed",{Page:"SubscriptionFormPage",Title:d,Path:window.location.pathname,Car:l==null?void 0:l.name,City:t})},[d,l,t]),h.useEffect(()=>{document.title=d},[d]);const[o,g]=h.useState({name:"",email:"",phone:"",address:"",city:"",pincode:"",dob:""}),[p,b]=h.useState({}),x=()=>{const a={};if(o.name||(a.name="Name is required"),o.email?/\S+@\S+\.\S+/.test(o.email)||(a.email="Email is invalid"):a.email="Email is required",o.phone?/^\d{10}$/.test(o.phone)||(a.phone="Phone must be 10 digits"):a.phone="Phone is required",o.address||(a.address="Address is required"),o.city||(a.city="City is required"),o.pincode?/^\d{6}$/.test(o.pincode)||(a.pincode="Pincode must be 6 digits"):a.pincode="Pincode is required",(l==null?void 0:l.source)==="mychoize")if(!o.dob)a.dob="Date of Birth is required";else{const s=new Date(o.dob),i=new Date;let n=i.getFullYear()-s.getFullYear();const m=i.getMonth()-s.getMonth(),u=i.getDate()-s.getDate();(m<0||m===0&&u<0)&&n--,n<21&&(a.dob="You must be at least 21 years old")}return b(a),Object.keys(a).length===0},w=a=>{const{name:s,value:i}=a.target;g(n=>({...n,[s]:i})),p[s]&&b(n=>({...n,[s]:""})),c.track("Form Field Changed",{Page:"SubscriptionFormPage",Field:s,Value:i,Path:window.location.pathname})},v=()=>{c.track("Form Submission Attempted",{Page:"SubscriptionFormPage",Path:window.location.pathname}),x()?(localStorage.setItem("formData",JSON.stringify(o)),console.log("formData",o),c.track("Form Submission Succeeded",{Page:"SubscriptionFormPage",FormData:o,Path:window.location.pathname}),f("/subscribe/upload-doc",{state:{...y.state,userData:o}})):c.track("Form Submission Failed",{Page:"SubscriptionFormPage",Errors:p,Path:window.location.pathname})},A=()=>{f(-1)},r=(t==null?void 0:t.charAt(0).toUpperCase())+(t==null?void 0:t.slice(1).toLowerCase()),P={"@context":"https://schema.org","@type":["TravelAgency","LocalBusiness","Vehicle","Car","AutomotiveBusiness","AutoDealer","AutoRental"],name:t?`Zymo - Self Drive Car Rentals in ${r}`:"Zymo - Self Drive Car Rentals in India",image:"https://zymo.app/images/AppLogo/zymo-logo.png","@id":t?`https://zymo.app/self-drive-car-rental-in-${t.toLowerCase()}`:"https://zymo.app/",url:t?`https://zymo.app/self-drive-car-rental-in-${t.toLowerCase()}`:"https://zymo.app/",serviceType:"Self Drive Car Rental",address:{"@type":"PostalAddress",streetAddress:"I/2002 Marina Enclave, Jankalyan Nagar, Malad West",addressLocality:"Mumbai",addressRegion:"MH",postalCode:"400095",addressCountry:"IN"},areaServed:{"@type":"City",name:t?r:"India",address:{"@type":"PostalAddress",addressLocality:t?r:"India",addressRegion:t?"STATE_NAME":"India",addressCountry:"India"}},priceRange:"â¹45-â¹499",sameAs:["https://play.google.com/store/apps/details?id=com.letzrent.letzrentnew","https://apps.apple.com/in/app/zymo-self-drive-car-rental/id1547829759","https://www.facebook.com/zymo.official/","https://www.instagram.com/zymo.app/","https://www.linkedin.com/company/zymoapp"],potentialAction:{"@type":"Action",name:t?`Book Self Drive Car in ${r}`:"Book Self Drive Car in India",target:{"@type":"EntryPoint",urlTemplate:t?`https://zymo.app/self-drive-car-rental-in-${t.toLowerCase()}`:"https://zymo.app/",inLanguage:"en",actionPlatform:["http://schema.org/DesktopWebPlatform","http://schema.org/MobileWebPlatform","http://schema.org/AndroidPlatform","http://schema.org/IOSPlatform"]}},mainEntity:[{"@type":"Question",name:`Which is the cheapest self-drive car rental in ${r||"India"}
1?`,acceptedAnswer:{"@type":"Answer",text:`Zymo offers affordable self-drive car rentals in ${r||"India"} with hourly, daily, and monthly plans â all with transparent pricing and no hidden charges.`}},{"@type":"Question",name:`Does Zymo provide airport pickup in ${r||"India"}?`,acceptedAnswer:{"@type":"Answer",text:`Yes, Zymo provides convenient airport pickup and doorstep delivery across ${r||"India"}.`}},{"@type":"Question",name:`What are the most popular cars available for rent in ${r||"India"}?`,acceptedAnswer:{"@type":"Answer",text:`The most popular self-drive cars in ${r||"India"} include Swift, Baleno, Creta, and XUV500.`}},{"@type":"Question",name:`Can I rent a car in ${r||"India"} without a deposit?`,acceptedAnswer:{"@type":"Answer",text:`Yes, Zymo offers zero-deposit car rental options in ${r||"India"}, making it easier and faster to book.`}}]};return e.jsxs(e.Fragment,{children:[e.jsxs(D,{children:[e.jsx("title",{children:d}),e.jsx("meta",{name:"description",content:"Subscribe to Zymo for exclusive self-drive car rental benefits. Join now and enjoy hassle-free bookings!"}),e.jsx("meta",{property:"og:title",content:d}),e.jsx("meta",{property:"og:description",content:"Explore Zymo's car subscription plans and subscribe now for the best deals!"}),e.jsx("link",{rel:"canonical",href:"https://zymo.app/subscribe/subscribe-info"}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify(P)})]}),e.jsx("div",{className:"min-h-screen bg-[#05070E] text-white px-4 md:px-8",children:e.jsxs("div",{className:"container mx-auto max-w-4xl py-8",children:[e.jsx("button",{onClick:A,className:"absolute left-1 md:left-5 top-8 p-2 text-white/80 hover:text-white hover:bg-[#2A2A2A] bg-transparent transition-all",children:e.jsx(j,{size:28})}),e.jsx("div",{className:"text-center mb-6 md:mb-10",children:e.jsx("h1",{className:"text-xl p-2 md:text-4xl font-bold",children:"Subscription Booking"})}),e.jsxs("div",{className:"bg-[#2A2A2A] p-5 md:p-8 rounded-xl shadow-xl border border-white/10",children:[e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-6",children:[{label:"Name (as on Driving License)",name:"name",type:"text",placeholder:"Enter your Name"},{label:"Email",name:"email",type:"email",placeholder:"Enter your Email"},{label:"Phone Number",name:"phone",type:"tel",placeholder:"Enter your Phone Number",maxLength:10},{label:"Date of Birth",name:"dob",type:"date",placeholder:""},{label:"Street Address",name:"address",type:"text",placeholder:"Enter your Street Address",fullWidth:!0},{label:"City",name:"city",type:"text",placeholder:"Enter your City Name"},{label:"Pincode",name:"pincode",type:"text",placeholder:"Enter your Pincode",maxLength:6}].map(({label:a,name:s,type:i,placeholder:n,fullWidth:m,maxLength:u})=>e.jsxs("div",{className:`space-y-2 ${m?"md:col-span-2":""}`,children:[e.jsx("label",{className:"block text-sm font-medium",children:a}),e.jsx("input",{type:i,name:s,value:o[s],onChange:w,maxLength:u,className:"w-full p-2 md:p-3 rounded-lg backdrop-blur-md bg-[#424242] text-white border border-white/10 focus:outline-none text-sm md:text-base",placeholder:n}),p[s]&&e.jsx("p",{className:"text-red-500 text-xs md:text-sm",children:p[s]})]},s))}),e.jsx("div",{className:"mt-6 md:mt-8",children:e.jsx("button",{onClick:v,className:`w-full p-3 md:p-4 roun
1ded-lg font-semibold text-base md:text-lg transition-transform hover:scale-[1.02] active:scale-[0.98] bg-gradient-to-r from-blue-500 to-purple-500 2 text-white border`,children:"Next"})})]})]})})]})}export{R 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.