1/*! For license information please see 7719.9a6ab1b5.chunk.js.LICENSE.txt */ 2"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[7719],{23946(e,s,a){a.d(s,{A:()=>t});const t=(0,a(77784).A)("gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]])},35327(e,s,a){a.d(s,{A:()=>t});const t=(0,a(77784).A)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]])},50516(e,s,a){a.d(s,{A:()=>t});const t=(0,a(77784).A)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},60100(e,s,a){a.r(s),a.d(s,{default:()=>Y});var t=a(89379),r=a(65043),l=a(53880),n=a(23946),i=a(77784);const c=(0,i.A)("trophy",[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]]);var d=a(63944),o=a(91286),x=a(82054),h=a(72313),m=a(42574),p=a(28814),f=a(44632),u=a(35327);const b=(0,i.A)("user-plus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);var g=a(7118),j=a(85692),N=a(73062),w=a(28006),v=a(75088),y=a(50516),k=a(35746),A=a(20073),C=a(87975),_=a(13390),R=a(92264),S=a(9114
20),W=a(56328),H=a(70579);const Y=()=>{const{user:e}=(0,C.As)(),[s,a]=(0,r.useState)(null),[i,Y]=(0,r.useState)(!0),[M,q]=(0,r.useState)(!1),[E,L]=(0,r.useState)(""),[P,T]=(0,r.useState)(""),[I,$]=(0,r.useState)(""),[D,Z]=(0,r.useState)(!1),[z,F]=(0,r.useState)(!1),[U,V]=(0,r.useState)([]),[B,G]=(0,r.useState)(null),[O,K]=(0,r.useState)({referred_name:"",referred_phone:"",referred_city:"",notes:""}),[Q,J]=(0,r.useState)(!1),X=(null===e||void 0===e?void 0:e.referral_code)||I||"HEARCLEAR15K",ee="https://hearclear.in?ref=".concat(X);(0,r.useEffect)(()=>{e?(ae(),te()):Y(!1);const s=new URLSearchParams(window.location.search).get("ref");s&&se(s)},[e]);const se=async e=>{try{await C.nC.post("/referrals/track-visit?ref_code=".concat(e),{page:window.location.pathname,user_agent:navigator.userAgent})}catch(s){console.error("Error tracking referral visit:",s)}},ae=async()=>{try{const e=await C.nC.get("/referrals/stats");a(e.data)}catch(e){console.error("Error fetching referral stats:",e)}finally{Y(!1)}},te=async()=>{try{const e=await C.nC.get("/referrals/my-referrals");V(e.data.referrals||[]),G(e.data.stats)}catch(e){console.error("Error fetching my referrals:",e)}},re=e=>{const s={pending:{color:"bg-yellow-100 text-yellow-800",label:"Pending"},contacted:{color:"bg-blue-100 text-blue-800",label:"WhatsApp Sent"},visited:{color:"bg-purple-100 text-purple-800",label:"Visited Site"},converted:{color:"bg-green-100 text-green-800",label:"Purchased!"}},a=s[e]||s.pending;return(0,H.jsx)("span",{className:"px-2 py-1 rounded-full text-xs font-medium ".concat(a.color),children:a.label})},le=e=>{const s="Get premium hearing aids at HearClear India! Use my referral code ".concat(X," and get up to \u20b915,000 off your first hearing aid. ").concat(ee),a=encodeURIComponent(s),t={whatsapp:"https://wa.me/?text=".concat(a),linkedin:"https://www.linkedin.com/sharing/share-offsite/?url=".concat(encodeURIComponent(ee)),facebook:"https://www.facebook.com/sharer/sharer.php?u=".concat(encodeURIComponent(ee),""e=").concat(a),email:"mailto:?subject=Check out HearClear India!&body=".concat(a)};(0,C.sx)("referral_shared",{platform:e,referral_code:X}),window.open(t[e],"_blank")},ne=[{icon:n.A,title:"\u20b915,000 Off",description:"Your friend gets up to \u20b915,000 off their first hearing aid purchase"},{icon:c,title:"\u20b95,000 Reward",description:"You earn \u20b95,000 cashback for each successful referral"},{icon:d.A,title:"Exclusive Rewards",description:"Top referrers get exclusive discounts & early access"}],ie=[{num:1,title:"Share Your Link",description:"Copy your unique referral link and share with friends & family"},{num:2,title:"Friend Signs Up",description:"When they register using your link, they get up to \u20b915,000 off"},{num:3,title:"Earn Rewards",description:"You earn \u20b95,000 cashback when they make their first purchase"}];return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(l.mg,{children:[(0,H.jsx)("title",{children:"Refer & Earn | HearClear India Referral Program"}),(0,H.jsx)("meta",{name:"description",content:"Refer friends to HearClear India and earn rewards! Get 500 points for each successful referral. Your friends get \u20b9500 off their first order."}),(0,H.jsx)("link",{rel:"canonical",href:"https://hearclear.in/refer"})]}),(0,H.jsxs)("div",{className:"min-h-screen bg-gradient-to-b from-blue-50 to-white",children:[(0,H.jsx)("section",{className:"py-16 px-4",children:(0,H.jsxs)("div",{className:"max-w-4xl mx-auto text-center",children:[(0,H.jsxs)("div",{className:"inline-flex items-center gap-2 bg-blue-100 text-blue-800 px-4 py-2 rounded-full text-sm font-medium mb-6",children:[(0,H.jsx)(n.A,{className:"h-4 w-4"}),"Referral Program"]}),(0,H.jsx)("h1",{className:"text-4xl md:text-5xl font-bold text-slate-900 mb-4",children:"Share the Gift of Better Hearing"}),(0,H.jsx)("p",{className:"text-xl text-slate-600 mb-4 max-w-2xl mx-auto",children:"Refer your loved ones to HearClear and both of you earn rewards. Help someone hear better while earning cashback!"}),(0,H.jsx)("p",{className:"text-sm text-slate-500 mb-8",children:"*T&C Apply. Discount applicable on hearing aids only. Maximum discount up to \u20b915,000."}),(0,H.jsx)("div",{className:"grid md:grid-cols-3 gap-6 mb-12",children:ne.map((e,s)=>(0,H.jsxs)("div",{className:"bg-white rounded-2xl p-6 shadow-sm border",children:[(0,H.jsx)("div",{className:"w-12 h-12 bg-blue-100 rounded-xl flex items-center justify-center mb-4 mx-auto",children:(0,H.jsx)(e.icon,{className:"h-6 w-6 text-blue-600"})}),(0,H.jsx)("h3",{className:"font-bold text-lg text-slate-900 mb-2",children:e.title}),(0,H.jsx)("p",{className:"text-sm text-slate-600",children:e.description})]},s))})]})}),(0,H.jsx)("section",{className:"py-12 px-4 bg-white",children:(0,H.jsx)("div",{className:"max-w-2xl mx-auto",children:(0,H.jsxs)("div",{className:"bg-gradient-to-br from-blue-600 to-blue-700 rounded-3xl p-8 text-white","data-testid":"referral-box",children:[(0,H.jsx)("h2",{className:"text-2xl font-bold mb-2 text-center",children:"Your Referral Link"}),(0,H.jsx)("p",{className:"text-blue-100 text-center mb-6",children:"Share this link to earn rewards"}),e&&s&&(0,H.jsxs)("div",{className:"grid grid-cols-3 gap-4 mb-6",children:[(0,H.jsxs)("div",{className:"bg-white/10 rounded-xl p-4 text-center",children:[(0,H.jsx)("p",{className:"text-3xl font-bold",children:s.total_referrals||0}),(0,H.jsx)("p",{className:"text-xs text-blue-200",children:"Referrals"})]}),(0,H.jsxs)("div",{className:"bg-white/10 rounded-xl p-4 text-center",children:[(0,H.jsxs)("p",{className:"text-3xl font-bold",children:["\u20b9",(s.total_earnings||0).toLocaleStr
2ing()]}),(0,H.jsx)("p",{className:"text-xs text-blue-200",children:"Cashback Earned"})]}),(0,H.jsxs)("div",{className:"bg-white/10 rounded-xl p-4 text-center",children:[(0,H.jsx)("p",{className:"text-3xl font-bold",children:X}),(0,H.jsx)("p",{className:"text-xs text-blue-200",children:"Your Code"})]})]}),!e&&!I&&(0,H.jsxs)("div",{className:"bg-white/10 rounded-xl p-4 mb-6",children:[(0,H.jsx)("p",{className:"text-sm text-blue-100 mb-3 text-center",children:"Enter your details to get a personalized referral code"}),(0,H.jsxs)("div",{className:"space-y-2",children:[(0,H.jsx)(R.p,{type:"text",value:E,onChange:e=>L(e.target.value),placeholder:"Your Name (optional)",className:"bg-white/10 border-white/20 text-white placeholder-white/50","data-testid":"referrer-name-input"}),(0,H.jsxs)("div",{className:"flex gap-2",children:[(0,H.jsx)(R.p,{type:"tel",value:P,onChange:e=>T(e.target.value.replace(/\D/g,"").slice(0,10)),placeholder:"Your 10-digit phone",className:"flex-1 bg-white/10 border-white/20 text-white placeholder-white/50","data-testid":"referrer-phone-input"}),(0,H.jsxs)(_.$,{onClick:async()=>{if(!P||P.length<10)W.oR.error("Please enter a valid 10-digit phone number");else{Z(!0);try{const e=(await C.nC.post("/referrals/register-referrer",{phone:P,name:E})).data.referral_code;$(e),W.oR.success("Your referral code: ".concat(e)),(0,C.sx)("referral_code_generated",{phone:P.slice(-4)})}catch(e){const s="HC".concat(P.slice(-4));$(s),W.oR.success("Your referral code: ".concat(s))}finally{Z(!1)}}},disabled:D,className:"bg-white text-blue-700 hover:bg-blue-50",children:[(0,H.jsx)(o.A,{className:"h-4 w-4 mr-1"})," ",D?"Saving...":"Get Code"]})]})]}),(0,H.jsx)("p",{className:"text-xs text-blue-200 mt-2 text-center",children:"Your details will be saved to track referrals"})]}),!e&&I&&(0,H.jsxs)("div",{className:"bg-white/10 rounded-xl p-4 mb-6 text-center",children:[(0,H.jsx)("p",{className:"text-blue-200 text-sm",children:"Your Personal Referral Code"}),(0,H.jsx)("p",{className:"text-3xl font-bold mt-1",children:I})]}),(0,H.jsxs)("div",{className:"flex gap-2 mb-6",children:[(0,H.jsx)(R.p,{value:ee,readOnly:!0,className:"flex-1 bg-white/10 border-white/20 text-white placeholder-white/50"}),(0,H.jsx)(_.$,{onClick:()=>{navigator.clipboard.writeText(ee),q(!0),W.oR.success("Referral link copied!"),(0,C.sx)("referral_link_copied",{referral_code:X}),setTimeout(()=>q(!1),3e3)},className:"".concat(M?"bg-green-500":"bg-white text-blue-700 hover:bg-blue-50"),"data-testid":"copy-referral-btn",children:M?(0,H.jsx)(x.A,{className:"h-5 w-5"}):(0,H.jsx)(h.A,{className:"h-5 w-5"})})]}),(0,H.jsxs)("div",{className:"flex flex-wrap justify-center gap-3",children:[(0,H.jsxs)(_.$,{onClick:()=>le("whatsapp"),className:"bg-[#25D366] hover:bg-[#1fb855]",children:[(0,H.jsx)(m.A,{className:"h-4 w-4 mr-2"})," WhatsApp"]}),(0,H.jsxs)(_.$,{onClick:()=>le("linkedin"),className:"bg-[#0077B5] hover:bg-[#006097]",children:[(0,H.jsx)(p.A,{className:"h-4 w-4 mr-2"})," LinkedIn"]}),(0,H.jsxs)(_.$,{onClick:()=>le("facebook"),className:"bg-[#1877F2] hover:bg-[#0d65d9]",children:[(0,H.jsx)(f.A,{className:"h-4 w-4 mr-2"})," Facebook"]}),(0,H.jsxs)(_.$,{onClick:()=>le("email"),variant:"outline",className:"border-white text-white hover:bg-white/10",children:[(0,H.jsx)(u.A,{className:"h-4 w-4 mr-2"})," Email"]})]})]})})}),(0,H.jsx)("section",{className:"py-16 px-4",children:(0,H.jsxs)("div",{className:"max-w-4xl mx-auto",children:[(0,H.jsx)("h2",{className:"text-3xl font-bold text-center text-slate-900 mb-12",children:"How It Works"}),(0,H.jsx)("div",{className:"grid md:grid-cols-3 gap-8",children:ie.map((e,s)=>(0,H.jsxs)("div",{className:"relative",children:[(0,H.jsx)("div",{className:"bg-blue-600 text-white w-10 h-10 rounded-full flex items-center justify-center font-bold text-lg mb-4",children:e.num}),(0,H.jsx)("h3",{className:"font-bold text-lg text-slate-900 mb-2",children:e.title}),(0,H.jsx)("p",{className:"text-slate-600",children:e.description}),s<ie.length-1&&(0,H.jsx)("div",{className:"hidden md:block absolute top-5 left-full w-full h-0.5 bg-blue-200 -translate-x-1/2"})]},s))})]})}),e&&(0,H.jsx)("section",{className:"py-16 px-4 bg-gradient-to-r from-teal-50 to-emerald-50","data-testid":"refer-patient-section",children:(0,H.jsxs)("div",{className:"max-w-5xl mx-auto",children:[(0,H.jsxs)("div",{className:"flex flex-col md:flex-row md:items-center md:justify-between mb-8",children:[(0,H.jsxs)("div",{children:[(0,H.jsx)("h2",{className:"text-3xl font-bold text-slate-900 mb-2",children:"Refer a Patient"}),(0,H.jsx)("p",{className:"text-slate-600",children:"Submit details of someone who needs hearing care. We'll reach out via WhatsApp!"})]}),(0,H.jsxs)(_.$,{onClick:()=>F(!0),className:"mt-4 md:mt-0 bg-teal-600 hover:bg-teal-700","data-testid":"refer-patient-btn",children:[(0,H.jsx)(b,{className:"h-4 w-4 mr-2"}),"Add New Referral"]})]}),B&&(0,H.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-5 ga
2p-4 mb-8",children:[(0,H.jsx)(S.Zp,{className:"bg-white",children:(0,H.jsxs)(S.Wu,{className:"pt-4 text-center",children:[(0,H.jsx)(g.A,{className:"h-6 w-6 text-slate-400 mx-auto mb-1"}),(0,H.jsx)("div",{className:"text-2xl font-bold text-slate-900",children:B.total_referrals||0}),(0,H.jsx)("div",{className:"text-xs text-slate-500",children:"Total Referrals"})]})}),(0,H.jsx)(S.Zp,{className:"bg-white",children:(0,H.jsxs)(S.Wu,{className:"pt-4 text-center",children:[(0,H.jsx)(m.A,{className:"h-6 w-6 text-blue-400 mx-auto mb-1"}),(0,H.jsx)("div",{className:"text-2xl font-bold text-blue-600",children:B.contacted||0}),(0,H.jsx)("div",{className:"text-xs text-slate-500",children:"Contacted"})]})}),(0,H.jsx)(S.Zp,{className:"bg-white",children:(0,H.jsxs)(S.Wu,{className:"pt-4 text-center",children:[(0,H.jsx)(j.A,{className:"h-6 w-6 text-purple-400 mx-auto mb-1"}),(0,H.jsx)("div",{className:"text-2xl font-bold text-purple-600",children:B.visited||0}),(0,H.jsx)("div",{className:"text-xs text-slate-500",children:"Visited"})]})}),(0,H.jsx)(S.Zp,{className:"bg-white",children:(0,H.jsxs)(S.Wu,{className:"pt-4 text-center",children:[(0,H.jsx)(x.A,{className:"h-6 w-6 text-green-400 mx-auto mb-1"}),(0,H.jsx)("div",{className:"text-2xl font-bold text-green-600",children:B.converted||0}),(0,H.jsx)("div",{className:"text-xs text-slate-500",children:"Converted"})]})}),(0,H.jsx)(S.Zp,{className:"bg-teal-50 border-teal-200",children:(0,H.jsxs)(S.Wu,{className:"pt-4 text-center",children:[(0,H.jsx)(N.A,{className:"h-6 w-6 text-teal-500 mx-auto mb-1"}),(0,H.jsxs)("div",{className:"text-2xl font-bold text-teal-700",children:["\u20b9",(B.total_earnings||0).toLocaleString()]}),(0,H.jsx)("div",{className:"text-xs text-slate-500",children:"Total Earnings"})]})})]}),U.length>0?(0,H.jsxs)("div",{className:"space-y-3",children:[(0,H.jsx)("h3",{className:"font-semibold text-lg text-slate-800 mb-4",children:"Your Referrals"}),U.map(e=>(0,H.jsx)(S.Zp,{className:"bg-white hover:shadow-md transition-shadow","data-testid":"my-referral-".concat(e.id),children:(0,H.jsx)(S.Wu,{className:"py-4",children:(0,H.jsxs)("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-4",children:[(0,H.jsxs)("div",{className:"flex-1",children:[(0,H.jsxs)("div",{className:"flex items-center gap-3 mb-2",children:[(0,H.jsx)("h4",{className:"font-semibold text-slate-900",children:e.referred_name}),re(e.status)]}),(0,H.jsxs)("div",{className:"flex flex-wrap gap-4 text-sm text-slate-500",children:[(0,H.jsxs)("span",{className:"flex items-center gap-1",children:[(0,H.jsx)(o.A,{className:"h-3.5 w-3.5"}),e.referred_phone]}),e.referred_city&&(0,H.jsxs)("span",{className:"flex items-center gap-1",children:[(0,H.jsx)(w.A,{className:"h-3.5 w-3.5"}),e.referred_city]}),(0,H.jsxs)("span",{className:"flex items-center gap-1",children:[(0,H.jsx)(v.A,{className:"h-3.5 w-3.5"}),new Date(e.created_at).toLocaleDateString()]})]})]}),(0,H.jsx)("div",{className:"flex items-center gap-4",children:"converted"===e.status?(0,H.jsxs)("div",{className:"text-right",children:[(0,H.jsxs)("div",{className:"text-green-600 font-bold",children:["\u20b9",(e.payout_amount||0).toLocaleString()]}),(0,H.jsx)("div",{className:"text-xs text-slate-500",children:"paid"===e.payout_status?"Paid":"Pending"})]}):(0,H.jsxs)(_.$,{variant:"outline",size:"sm",onClick:()=>(async(e,s)=>{try{await C.nC.post("/referrals/resend-whatsapp/".concat(e)),W.oR.success("WhatsApp resent to ".concat(s)),(0,C.sx)("referral_whatsapp_resent")}catch(a){W.oR.error("Failed to resend WhatsApp")}})(e.id,e.referred_name),children:[(0,H.jsx)(y.A,{className:"h-3.5 w-3.5 mr-1"}),"Resend"]})})]})})},e.id))]}):(0,H.jsx)(S.Zp,{className:"bg-white text-center py-12",children:(0,H.jsxs)(S.Wu,{children:[(0,H.jsx)(g.A,{className:"h-12 w-12 text-slate-300 mx-auto mb-4"}),(0,H.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No Direct Referrals Yet"}),(0,H.jsx)("p",{className:"text-slate-500 mb-4",children:"Submit someone's details and we'll send them a WhatsApp message!"}),(0,H.jsxs)(_.$,{onClick:()=>F(!0),className:"bg-teal-600 hover:bg-teal-700",children:[(0,H.jsx)(b,{className:"h-4 w-4 mr-2"}),"Add Your First Referral"]})]})})]})}),z&&(0,H.jsx)("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4","data-testid":"referral-form-modal",children:(0,H.jsxs)(S.Zp,{className:"w-full max-w-md animate-in fade-in zoom-in",children:[(0,H.jsxs)(S.aR,{children:[(0,H.jsxs)(S.ZB,{className:"flex items-center gap-2",children:[(0,H.jsx)(b,{className:"h-5 w-5 text-teal-600"}),"Refer a Patient"]}),(0,H.jsx)(S.BT,{children:"Enter the details of the person you want to refer. We'll send them a personalized WhatsApp message with your name and special offers."})]}),(0,H.jsx)(S.Wu,{children:(0,H.jsxs)("form",{onSubmit:async e=>{if(e.preventDefault(),!O.referred_name||!O.referred_phone)return void W.oR.error("Please enter name and phone number");const s=O.referred_phone.replace(/\D/g,"");if(s.length<10)W.oR.error("Please enter a valid 10-digit phone number");else{J(!0);try{const e=await C.nC.post("/referrals/submit",{referred_name:O.referred_name,referred_phone:s.slice(-10),referred_city:O.referred_city,notes:O.notes});W.oR.success(e.data.message),(0,C.sx)("referral_submitted",{referred_phone:s.slice(-4)}),K({referred_name:"",referred_phone:"",referred_city:"",notes:""}),F(!1),te()}catch(r){var a,t;W.oR.error((null===(a=r.response)||void 0===a||null===(t=a.data)||void 0===t?void 0:t.detail)||"Failed to submit referral")}finally{J(!1)}}},className:"space-y-4",children:[(0,H.jsxs)("div",{children:[(0,H.jsx)("label",{className:"block text-sm font-medium mb-1",children:"Patient Name *"}),(0,H.jsx)(R.p,{placeholder:"Enter their name",value:O.referred_name,onChange:e=>K((0,t.A)((0,t.A)({},O),{},{referred_name:e.target.value})),required:!0,"data-testid":"referral-name-input"})]}),(0,H.jsxs)("div",{children:[(0,H.jsx)("label",{className:"block text-sm font-medium mb-1",children:"Phone Number *"}),(0,H.jsx)(R.p,{type:"tel",placeholder:"10-digit mobile number",value:O.referred_phone,onChange:e=>K((0,t.A)((0,t.A)({},O),{},{referred_phone:e.target.value.replace(/\D/g,"").slice(0,10)})),required:!0,"data-testid":"referral-phone-input"})]}),(0,H.jsxs)("div",{children:[(0,H.jsx)("label",{className:"block text-sm font-medium mb-1",children:"City (Optional)"}),(0,H.jsx)(R.p,{placeholder:"Their city",value:O.referred_city,onChange:e=>K((0,t.A)((0,t.A)({},O),{},{referred_city:e.target.value}))})]}),(0,H.jsxs)("div",{children:[(0,H.jsx)("label",{className:"block text-sm font-medium mb-1",children:"Note (Optional)"}),(0,H.jsx)(R.p,{placeholder:"Any additional info about their hearing needs",value:O.notes,onChange:e=>K((0,t.A)((0,t.A)({},O),{},{notes:e.target.value}))})]}),(0,H.jsx)("div",{className:"bg-teal-50 rounded-lg p-3 text-sm",children:(0,H.jsxs)("div",{className:"flex items-start gap-2",children:[(0,H.jsx)(m.A,{className:"h-4 w-4 text-teal-600 mt-0.5"}),(0,H.jsxs)("div",{children:[(0,H.jsx)("p",{className:"font-medium text-teal-800",children:"WhatsApp Will Be Sent"}),(0,H.jsx)("p",{className:"text-teal-700",children:"They'll receive a message mentioning your name, along with special offers and free hearing test invite."})]})]})}),(0,H.jsxs)("div",{className:"flex gap-3 pt-2",children:[(0,H.jsx)(_.$,{type:"button",variant:"outline",className:"flex-1",onClick:()=>F(!1),children:"Cancel"}),(0,H.jsxs)(_.$,{type:"submit",className:"flex-1 bg-teal-600 hover:bg-teal-700",disabled:Q,"data-testid":"submit-referral-btn",children:[Q?"Sending...":"Submit & Send WhatsApp",(0,H.jsx)(k.A,{className:"h-4 w-4 ml-2"})]})]})]})})]})}),(0,H.jsx)("section",{className:"py-16 px-4 bg-slate-50",children:(0,H.jsxs)("div",{className:"max-w-3xl mx-auto",children:[(0,H.jsx)("h2",{className:"text-3xl font-bold text-center text-slate-900 mb-12",children:"Frequently Asked Questions"}),(0,H.jsx)("div",{className:"space-y-4",children:[{q:"How many people can I refer?",a:"There's no limit! Refer as many friends and family as you like and earn \u20b95,000 cashback for each successful referral."},{q:"When do I receive my cashback?",a:"You'll receive \u20b95,000 cashback within 7 days after your referred friend makes their first hearing aid purchase."},{q:"What discount does my friend get?",a:"Your friend gets up to \u20b915,000 off on their first hearing aid purchase. Discount varies based on the product value."},{q:"Can I refer someone who already has an account?",a:"The referral code only works for new customers who don't have an existing account."},{q:"Is there a minimum purchase value?",a:"Yes, the referral discount is applicable on hearing aid purchases of \u20b925,000 and above. T&C Apply."}].map((e,s)=>(0,H.jsxs)("div",{className:"bg-white rounded-xl p-6 shadow-sm",children:[(0,H.jsx)("h3",{className:"font-bold text-slate-900 mb-2",children:e.q}),(0,H.jsx)("p",{className:"text-slate-600",children:e.a})]},s))}),(0,H.jsx)("p",{className:"text-xs text-slate-500 text-center mt-6",children:"*Terms & Conditions: Referral discount applicable on hearing aids only. Maximum discount \u20b915,000 or 10% of cart value, whichever is lower. Cashback will be credited
2within 7 working days of successful purchase. HearClear reserves the right to modify or discontinue this program at any time."})]})}),(0,H.jsx)("section",{className:"py-16 px-4",children:(0,H.jsxs)("div",{className:"max-w-2xl mx-auto text-center",children:[(0,H.jsx)(A.A,{className:"h-12 w-12 text-yellow-500 mx-auto mb-4"}),(0,H.jsx)("h2",{className:"text-3xl font-bold text-slate-900 mb-4",children:"Start Referring Today!"}),(0,H.jsx)("p",{className:"text-slate-600 mb-8",children:"Help your loved ones hear better and earn rewards at the same time."}),(0,H.jsxs)(_.$,{size:"lg",className:"bg-blue-600 hover:bg-blue-700",onClick:()=>window.scrollTo({top:400,behavior:"smooth"}),children:["Get Your Referral Link ",(0,H.jsx)(j.A,{className:"h-5 w-5 ml-2"})]})]})})]})]})}},63944(e,s,a){a.d(s,{A:()=>t});const t=(0,a(77784).A)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]])},72313(e,s,a){a.d(s,{A:()=>t});const t=(0,a(77784).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},75088(e,s,a){a.d(s,{A:()=>t});const t=(0,a(77784).A)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])}}]); 3//# sourceMappingURL=7719.9a6ab1b5.chunk.js.map
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.