1import{g as h,r as n,j as e}from"./vendor-react-Dxo5VVMX.js";import{H as g}from"./index-6F7UmCCt.js";import{F as u,a as y}from"./index-savkvWnN.js";import{N as j}from"./NavBar-DlpVal7E.js";import{mixpanel as i}from"./mixpanel-BhrQiLh9.js";import"./vendor-analytics-BolNmaul.js";import"./vendor-query-BGDNI3Fe.js";import"./iconBase-WaUYP6_C.js";import"./firebaseCore-DdWO-lul.js";import"./vendor-firebase-core-Bea8MryS.js";const w="https://play.google.com/store/apps/details?id=com.letzrent.letzrentnew",c="https://apps.apple.com/in/app/zymo-self-drive-car-rental/id1547829759";function b(){const o=typeof navigator<"u"?navigator.userAgent:"";return/android/i.test(o)?"android":/iphone|ipad|ipod/i.test(o)?"ios":"desktop"}function d(o,t){const r=new URLSearchParams;r.set("utm_source","referral"),r.set("utm_medium","share"),r.set("ref",o),t&&r.set("sig",t);const a=encodeURIComponent(r.toString());return`${w}&referrer=${a}`}function _(){const[o]=h(),t=(o.get("ref")||"").trim(),r=o.get("sig"),[a]=n.useState(b),[m,l]=n.useState(!1);n.useEffect(()=>{if(i.track("Page View",{page:"Referral Go",ref:t||"(empty)",hasSig:!!r,platform:a}),a==="android")window.location.replace(d(t,r));else if(a==="ios"){const s=()=>window.location.replace(c);if(t){const f=r?`zymo-referral:${t}|${r}`:`zymo-referral:${t}`;navigator.clipboard.writeText(f).then(()=>{i.track("Referral Go iOS Clipboard",{ok:!0,ref:t}),s()}).catch(x=>{console.warn("[ReferralGo] clipboard write failed:",x),i.track("Referral Go iOS Clipboard",{ok:!1,ref:t}),s()})}else s()}},[t,r,a]);const p=async()=>{try{await navigator.clipboard.writeText(t),l(!0),setTimeout(()=>l(!1),2e3)}catch(s){console.warn("[ReferralGo] navigator.clipboard.writeText failed:",s)}};return e.jsxs(e.Fragment,{children:[e.jsxs(g,{children:[e.jsx("title",{children:"Get the Zymo app"}),e.jsx("meta",{name:"description",content:"Install Zymo to redeem your referral reward."}),e.jsx("meta",{name:"robots",content:"noindex"})]}),e.jsx(j,{}),e.jsx("div",{className:"min-h-screen bg-black text-white flex flex-col items-center justify-center px-6 py-12",children:e.jsx("div",{className:"max-w-md w-full text-center",children:a!=="desktop"?e.jsxs("p",{className:"text-gray-300",children:["Opening the ",a==="android"?"Play Store":"App Store","â¦"]}):e.jsxs(e.Fragment,{children:[e.jsx("h1",{className:"text-2xl font-semibold mb-3",children:"Get the Zymo app"}),e.jsx("p",{className:"text-gray-300 mb-8",children:"Install Zymo on your phone to redeem this referral reward. Zymo works on Android and iPhone."}),t&&e.jsxs("div",{className:"bg-white/10 rounded-lg px-4 py-3 mb-6 flex items-center justify-between",children:[e.jsxs("div",{className:"text-left",children:[e.jsx("div",{className:"text-xs text-gray-400 uppercase tracking-wide",children:"Your referral code"}),e.jsx("div",{className:"text-lg font-mono",children:t})]}),e.jsx("button",{onClick:p,className:"ml-4 bg-white/20 hover:bg-white/30 text-white text-sm font-medium py-2 px-3 rounded",children:m?"Copied":"Copy"})]}),e.jsxs("div",{className:"flex flex-col gap-3",children:[e.jsxs("a",{href:d(t,r),className:"flex items-center justify-center gap-3 bg-white text-black py-3 rounded-lg font-medium hover:bg-gray-100",onClick:()=>i.track("Button Click",{page:"Referral Go",button:"Play Store",ref:t}),children:[e.jsx(u,{className:"text-xl"}),e.jsx("span",{children:"Get on Google Play"})]}),e.jsxs("a",{href:c,className:"flex items-center justify-center gap-3 bg-white text-black py-3 rounded-lg font-medium hover:bg-gray-100",onClick:()=>i.track("Button Click",{page:"Referral Go",button:"App Store",ref:t}),children:[e.jsx(y,{className:"text-xl"}),e.jsx("span",{children:"Download on the App Store"})]})]}),e.jsx("p",{className:"text-xs text-gray-500 mt-8",children:"Referral rewards land automatically after install and first booking."})]})})})]})}export{_ 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.