1import{u as re,r as n,t as Oe,j as e,ai as Le,aj as Pe,K as ft,v as Bt,m as C,a3 as bt,a as W,R as It,ak as Me,al as S,S as qe,L as Ot,am as Lt,e as Pt,l as E,an as Mt,ao as qt,ap as $t,aq as Ut,ar as we,as as $e,at as Vt,au as Ht,av as Wt,b as Kt,aw as gt,a0 as Se,a7 as vt,I as Ue,s as Yt,a9 as Qt,U as Ve,ax as Jt,ay as He,az as Xt,a2 as Zt,a1 as es,A as We,aA as ts,a4 as ss,h as q,ag as as,g as is}from"./index-Bn97Kz8X.js";import{S as rs}from"./SEO-BjAPr8No.js";import{w as ns}from"./session-retry-5dmS_nZl.js";import{C as ls}from"./chevron-right-nGmEXHGw.js";import{D as wt,a as yt,b as os,c as jt,d as Nt,e as cs,f as ds,C as xs,g as ps}from"./dialog-BUVob_13.js";import{a as us,b as Ke}from"./funnelTracking-Cf6qY1mn.js";import{f as ms}from"./driverLookup-D4dGuHVM.js";import{g as _t}from"./rsg-channel-thumbnails-CxijqOu4.js";import{g as kt}from"./rsg-channel-videos-DVR63uOT.js";import{S as hs}from"./StoreBadges-BOqtCuG_.js";import{C as Ye}from"./CityLaunchStatusBanner-BRpmfKf7.js";import{S as Ft}from"./share-2-m_Gi-ymW.js";import{C as fs}from"./calendar-days-87MNVOcb.js";
1import{g as bs,D as gs}from"./don-brand-D2BVnhf0.js";import"./index-CHNzXfCG.js";import"./index-CdzkXYzZ.js";import"./cityData-BTGjLPwk.js";const Qe="845f1c27-a439-4b32-b048-db126d07bf8a",Je="cdbb50a38f02b0eed07e8563ed181af942ecaa73b9534c4617fa6408c6a68c52",be="rsg:benny-visitor:session-token",vs="benny-relationship-memory-v1",Xe="I agree to let Benny remember my first name and helpful visit context for future RideShareGuides conversations. This does not subscribe me to marketing messages.",Ze="If a saved Benny relationship matches that email, a one-time code is on its way.",he=["current_stage","biggest_need","help_style"],ws=[{label:"Driver",value:"driver"},{label:"Rider",value:"rider"},{label:"Business owner",value:"business_owner"},{label:"Still exploring",value:"exploring"}],St=[{label:"Get started with RSG",value:"getting_started"},{label:"Make more money",value:"making_more_money"},{label:"Find RSG resources",value:"finding_rsg_resources"},{label:"Find local options",value:"finding_local_options"},{label:"Grow a business",value:"growing_a_business"},{label:"Join the community",value:"joining_community"},{label:"Get support",value:"getting_support"},{label:"Explore membership",value:"exploring_membership"}],fe={current_stage:[{label:"Iâm new to RSG",value:"new_to_rsg"},{label:"Iâm exploring options",value:"exploring"},{label:"Iâm an active member",value:"active_member"},{label:"Iâm returning",value:"returning_member"}],biggest_need:[{label:"Get started",value:"getting_started"},{label:"Make more money",value:"making_more_money"},{label:"Find local options",value:"finding_local_options"},{label:"Reach more customers",value:"reaching_customers"},{label:"Understand membership",value:"understanding_membership"},{label:"Find support",value:"finding_support"}],help_style:[{label:"Quick answer",value:"quick_answer"},{label:"Step-by-step",value:"step_by_step"},{label:"Recommend a path",value:"recommendation"},{label:"Human help",value:"human_help"}]};function K(t){return!!t&&typeof t=="object"&&!Array.isArray(t)}function ge(t){return typeof t=="string"&&/^[A-Za-z0-9_-]{32,128}$/.test(t)}function ys(){try{const t=localStorage.getItem(be);if(ge(t))return t;t&&localStorage.removeItem(be)}catch{}return null}function et(t){if(ge(t))try{localStorage.setItem(be,t)}catch{}}function tt(){try{localStorage.removeItem(be)}catch{}}function Rt(t){return typeof t=="string"?t.replace(/[\u0000-\u001f\u007f<>]/g,"").replace(/\s+/g," ").trim().slice(0,80):""}function st(t){return typeof t=="string"?t.normalize("NFKC").trim().toLowerCase().slice(0,254):""}function at(t){return/^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(t)&&!t.includes("..")}function Re(t){if(typeof t!="string")return"";const s=t.replace(/[\u0000-\u001f\u007f<>]/g,"").replace(/\s+/g," ").trim().slice(0,280);return/(?:https?:\/\/|www\.|\S+@\S+|\b(?:password|passcode|secret|api[_ -]?key|access[_ -]?token|bearer)\b|\b\d{3}[- .]\d{3}[- .]\d{4}\b)/i.test(s)?"":s}function js(t){return typeof t=="string"?t.replace(/[\u0000-\u001f\u007f<>]/g,"").replace(/\s+/g," ").trim().slice(0,800):""}function Ns(t){var d;const s=t;for(const r of[s,s==null?void 0:s.data,s==null?void 0:s.contact,(d=s==null?void 0:s.data)==null?void 0:d.contact,s==null?void 0:s.result,Array.isArray(s)?s[0]:null]){const l=(r==null?void 0:r.id)??(r==null?void 0:r._id)??(r==null?void 0:r.contact_id)??(r==null?void 0:r.contactId);if(typeof l=="string"||typeof l=="number"){const i=String(l).trim();if(i)return i}}return null}function ye(t){if(!K(t))return null;const s=typeof t.role=="string"&&["driver","rider","business_owner","exploring"].includes(t.role)?t.role:null,d=typeof t.visit_goal=="string"&&St.some(l=>l.value===t.visit_goal)?t.visit_goal:null,r=[];if(Array.isArray(t.quiz_answers))for(const l of t.quiz_answers){if(!K(l))continue;const i=l.key,u=l.value;typeof i=="string"&&he.includes(i)&&typeof u=="string"&&fe[i].some(g=>g.value===u)&&!r.some(g=>g.key===i)&&r.push({key:i,value:u})}return{first_name:Rt(t.first_name)||null,email_verified:t.email_verified===!0,memory_consent_status:t.memory_consent_status==="granted"?"granted":t.memory_consent_status==="declined"?"declined":"not_asked",role:s,visit_goal:d,quiz_answers:r.slice(0,6),needs_summary:Re(t.needs_summary)||null}}function it(t){return{first_name:t.first_name,verified:t.email_verified,role:t.role,visit_goal:t.visit_goal,quiz_answers:t.quiz_answers,needs_summary:t.needs_summary}}function rt(t){return`Hi${t.first_name?` ${t.first_name}`:" there"}, Iâm Benny the Beaver. I help you find the right RSG starting point and solve RSG platform questions. What should we work on first?`}function _s(t){return K(t)&&typeof t.code=="string"?t.code:""}
1function je(t,s){switch(_s(t)){case"invalid_code":return"That code did not work. Check the six digits or request a new one.";case"invalid_email":return"Enter a valid email address, then try again.";case"consent_mismatch":return"Please refresh Bennyâs welcome and try again.";case"invalid_session":case"verification_required":return"This private Benny session has ended. Start a fresh welcome or verify your email again.";case"profile_unavailable":case"request_failed":case"server_config":return"Bennyâs private welcome is unavailable right now. Please try again in a moment.";default:return s}}async function X(t,s={}){const d=$t;if(typeof d!="function")throw Object.assign(new Error("Visitor service unavailable"),{code:"profile_unavailable"});const r=await d({action:t,...s}),l=K(r)&&K(r.data)&&("success"in r.data||"code"in r.data)?r.data:r;if(!K(l)||l.success===!1)throw Object.assign(new Error("Visitor request failed"),{code:K(l)&&typeof l.code=="string"?l.code:"request_failed"});return l}function Ne({id:t,legend:s,value:d,options:r,onChange:l,error:i}){return e.jsxs("fieldset",{"aria-describedby":i?`${t}-error`:void 0,children:[e.jsxs("legend",{className:"text-[11px] font-black uppercase tracking-[0.12em] text-zinc-700",children:[s," ",e.jsx("span",{className:"text-[#F45815]",children:"*"})]}),e.jsx("div",{className:"mt-2 grid grid-cols-2 gap-2",children:r.map(u=>e.jsx("button",{type:"button","aria-pressed":d===u.value,onClick:()=>l(u.value),className:`min-h-[44px] rounded-[11px] border px-3 py-2 text-left text-[12px] font-bold transition focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#F45815]/40 ${d===u.value?"border-[#F45815] bg-[#FFF1E8] text-[#A83E10]":"border-zinc-200 bg-white text-zinc-700 hover:border-[#F45815]/50 hover:bg-[#FFF8F3]"}`,children:u.label},u.value))}),i&&e.jsx("p",{id:`${t}-error`,className:"mt-1.5 text-[11px] font-semibold text-red-600",children:i})]})}function ks(){const t=re(),[s,d]=n.useState(!0),[r,l]=n.useState("booting"),[i,u]=n.useState(null),[g,N]=n.useState(null),[m,w]=n.useState(""),[b,y]=n.useState(""),[F,_]=n.useState(""),[D,ne]=n.useState(""),[A,ve]=n.useState(""),[p,Z]=n.useState({}),[ee,te]=n.useState(""),[$,se]=n.useState(!1),[h,U]=n.useState({}),[T,j]=n.useState(""),[R,L]=n.useState(!1),[v,k]=n.useState(""),[ae,le]=n.useState(""),[Y,P]=n.useState(""),[G,z]=n.useState([]),[V,Q]=n.useState(""),[ie,B]=n.useState(null),[M,oe]=n.useState(!1),[Ce,ce]=n.useState(""),Ee=n.useRef(null),De=n.useRef(null),Ae=n.useRef(null),Te=n.useRef(null),de=n.useRef(null),xe=n.useRef(!1),J=n.useCallback(async(a,c=!0)=>{oe(!0),ce("");try{const o=await Oe({agent_id:Qe,mode:"init",metadata:it(a)},{headers:{"X-Public-Chat-Key":Je}}),x=typeof(o==null?void 0:o.conversation_id)=="string"?o.conversation_id:null;if(!x)throw new Error("No conversation");return B(x),c&&z(f=>f.length?f:[{id:`welcome-${Date.now()}`,role:"assistant",text:(o==null?void 0:o.response)||(o==null?void 0:o.message)||rt(a)}]),x}catch(o){return console.warn("[Benny visitor] chat init failed",o),ce("Benny could not open the conversation yet. Try again, and your private profile will remain safe."),c&&z(x=>x.length?x:[{id:`fallback-${Date.now()}`,role:"assistant",text:rt(a)}]),null}finally{oe(!1)}},[]),pe=n.useCallback(async()=>{l("booting"),w("");const a=ys();if(a)try{const c=await X("resume_session",{session_token:a}),o=ye(c.profile);if(!o||o.memory_consent_status!=="granted")throw new Error("Invalid visitor session");N(a),u(o),l("chat"),await J(o);return}catch(c){console.warn("[Benny visitor] resume unavailable",c),tt(),N(null),u(null)}try{const o=(await X("start_session")).session_token;if(!ge(o))throw Object.assign(new Error("Missing visitor session"),{code:"profile_unavailable"});et(o),N(o),l("welcome")}catch(c){console.warn("[Benny visitor] session start failed",c),w(je(c,"Benny could not prepare this private welcome. Please try again.")),l("boot_error")}},[J]);n.useEffect(()=>{pe()},[pe]),n.useEffect(()=>{if(!xe.current||!s)return;const a=window.setTimeout(()=>{var c,o,x,f;r==="welcome"&&((c=Ee.current)==null||c.focus({preventScroll:!0})),r==="returning_email"&&((o=De.current)==null||o.focus({preventScroll:!0})),r==="returning_code"&&((x=Ae.current)==null||x.focus({preventScroll:!0}
1)),r==="chat"&&((f=Te.current)==null||f.focus({preventScroll:!0}))},100);return()=>window.clearTimeout(a)},[s,r]),n.useEffect(()=>{de.current&&de.current.scrollTo({top:de.current.scrollHeight,behavior:t?"auto":"smooth"})},[G,M,t]),n.useEffect(()=>{if(!s)return;const a=c=>{c.key==="Escape"&&d(!1)};return window.addEventListener("keydown",a),()=>window.removeEventListener("keydown",a)},[s]);const Ge=n.useCallback(async(a,c)=>{const o=c||g;if(!(!o||a.memory_consent_status!=="granted"))try{const x=await X("update_context",{session_token:o,role:a.role,visit_goal:a.visit_goal,quiz_answers:a.quiz_answers,needs_summary:a.needs_summary}),f=ye(x.profile);f&&u(f)}catch(x){console.warn("[Benny visitor] context update skipped",x)}},[g]),Et=async a=>{a.preventDefault();const c=Rt(b),o=st(F),x=Re(ee),f={};c.length<2&&(f.name="Enter your first name."),at(o)||(f.email="Enter a valid email address."),D||(f.role="Choose the path that fits you best."),A||(f.goal="Choose what brought you here.");for(const I of he)p[I]||(f[I]="Choose one answer.");if(ee.trim()&&!x&&(f.needs="Use a short question without links, email addresses, or private codes."),$||(f.consent="Please choose whether Benny may remember your visit."),U(f),Object.keys(f).length||!g){g||j("Bennyâs private welcome session is not ready. Please try again.");return}L(!0),j("");let ue="contact";try{const I=await Mt({email:o,first_name:c,tags:["benny-welcome","benny-visitor"],source:"rsg-benny-welcome"}),O=Ns(I);if(ue="profile",!O)throw Object.assign(new Error("Contact reference missing"),{code:"request_failed"});await X("save_first_visit",{session_token:g,contact_id:O,email:o,first_name:c,memory_consent:!0,memory_consent_wording:Xe,memory_consent_version:vs,role:D,visit_goal:A,quiz_answers:he.map(H=>({key:H,value:p[H]})),needs_summary:x||null});try{await qt({contact_id:O,event_name:"benny_visitor_started",properties:{role:D,visit_goal:A,source:"benny-welcome"},source:"benny-visitor"})}catch(H){console.warn("[Benny visitor] event skipped",H)}const Ie={first_name:c,email_verified:!1,memory_consent_status:"granted",role:D,visit_goal:A,quiz_answers:he.map(H=>({key:H,value:p[H]})),needs_summary:x||null};u(Ie),l("chat"),_(""),te(""),await J(Ie)}catch(I){console.warn("[Benny visitor] welcome save failed",I),j(ue==="contact"?"We could not save your welcome yet. Your answers are still here, so please try again.":"Your contact was saved, but Benny could not finish the private welcome. Please try again.")}finally{L(!1)}},Dt=async a=>{a.preventDefault();const c=st(v);if(!at(c)){j("Enter a valid email address.");return}L(!0),j("");try{const o=await X("request_verification",{email:c});k(c),P(typeof o.message=="string"?o.message:Ze),l("returning_code")}catch(o){console.warn("[Benny visitor] verification request failed",o),j(je(o,"We could not start email verification. Please try again."))}finally{L(!1)}},At=async a=>{a.preventDefault();const c=ae.trim();if(!/^\d{6}$/.test(c)){j("Enter the six-digit code from your email.");return}L(!0),j("");try{const o=await X("confirm_verification",{email:v,code:c}),x=o.session_token,f=ye(o.profile);if(!ge(x)||!f||f.memory_consent_status!=="granted")throw Object.assign(new Error("Invalid verification"),{code:"invalid_code"});et(x),N(x),u(f),l("chat"),le(""),k(""),await Ge(f,x),await J(f)}catch(o){console.warn("[Benny visitor] verification failed",o),j(je(o,"That code did not work. Check it and try again."))}finally{L(!1)}},Be=async a=>{typeof a!="string"&&(a==null||a.preventDefault());const c=js(typeof a=="string"?a:V);if(!(!c||M||!i)){Q(""),oe(!0),ce("");try{let o=ie;if(o||(o=await J(i,!1)),!o)throw new Error("Conversation unavailable");z(O=>[...O,{id:`user-${Date.now()}`,role:"user",text:c}]);const x=await ns(()=>Oe({agent_id:Qe,mode:"message",message:c,conversation_id:o,metadata:it(i)},{headers:{"X-Public-Chat-Key":Je}})),f=(x==null?void 0:x.response)||(x==null?void 0:x.message)||(x==null?void 0:x.output)||"Tell me a little more about what you need, and Iâll point you to one useful next step.";typeof(x==null?void 0:x.conversation_id)=="string"&&x.conversation_id!==o&&B(x.conversation_id),z(O=>[...O,{id:`assistant-${Date.now()}`,role:"assistant",text:f}]);const ue=G.filter(O=>O.role==="user").length+1,I=Re(c);i.memory_consent_status==="granted"&&ue%3===0&&I&&Ge({...i,needs_summary:I})}catch(o){console.warn("[Benny visitor] message failed",o),ce("Benny hit a connection problem. Try sending that again."),z(x=>[...x,{id:`error-${Date.now()}`,role:"assistant",text:"I hit a connection problem. Please try that again, and Iâll keep helping from there."}])}finally{oe(!1)}}},Tt=()=>{j(""),P(""),k(""),l("returning_email")},Gt=()=>{tt(),N(null),u(null),B(null),z([]),j(""),pe()};return e.jsxs("div",{className:"w-full",children:[!s&&e.jsxs("button",{type:"button",onClick:()=>{xe.current=!0,d(!0)},"aria-expanded":!1,className:"flex min-h-[54px] w-full items-center gap-3 rounded-[18px] border border-[#F45815]/25 bg-white px-4 py-3 text-left shadow-[0_8px_24px_rgba(24,24,27,0.08)] transition hover:border-[#F45815]/50 hover:bg-[#FFF8F3] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#F45815]/45",children:[e.jsx("span",{className:"flex h-10 w-10 shrink-0 items-center justify-center overflow-hidden rounded-full border border-[#F45815]/30 bg-[#FFF8F3]",children:e.jsx("img",{src:Le,alt:Pe,className:"h-full w-full object-contain",width:80,height:80})}),e.jsxs("span",{className:"min-w-0 flex-1",children:[e.jsx("span",{className:"block text-[13px] font-black text-zinc-900",children:i!=null&&i.first_name?`Continue with Benny, ${i.first_name}`:"Meet Benny the Beaver"}),e.jsx("span",{className:"block text-[11px] font-medium text-zinc-500",children:"Your RSG starting point"})]}),e.jsx(ft,{className:"h-5 w-5 shrink-0 text-[#F45815]","aria-hidden":"true"})]}),e.jsx(Bt,{initial:!1,children:s&&e.jsxs(C.section,{initial:t?!1:{opacity:0,y:10}
1,animate:{opacity:1,y:0},exit:t?void 0:{opacity:0,y:8},transition:{duration:t?0:.24},className:"overflow-hidden rounded-[22px] border border-zinc-200 bg-white text-zinc-900 shadow-[0_14px_38px_rgba(24,24,27,0.09)]",role:"dialog","aria-label":"Benny visitor welcome",onPointerDown:()=>{xe.current=!0},onKeyDown:()=>{xe.current=!0},children:[e.jsxs("header",{className:"flex items-center justify-between gap-3 border-b border-zinc-100 bg-white px-4 py-3.5 sm:px-5",children:[e.jsxs("div",{className:"flex min-w-0 items-center gap-3",children:[e.jsx("span",{className:"flex h-11 w-11 shrink-0 items-center justify-center overflow-hidden rounded-full border border-[#F45815]/30 bg-[#FFF8F3]",children:e.jsx("img",{src:Le,alt:Pe,className:"h-full w-full object-contain",width:88,height:88})}),e.jsxs("div",{className:"min-w-0",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx("h2",{className:"text-[15px] font-black tracking-tight text-zinc-950",children:"Benny the Beaver"}),e.jsx("span",{className:"rounded-full border border-[#F45815]/20 bg-[#FFF8F3] px-2 py-0.5 text-[9px] font-black uppercase tracking-[0.12em] text-[#A83E10]",children:"RSG guide"})]}),e.jsx("p",{className:"mt-0.5 text-[11px] font-semibold text-zinc-500",children:"A private starting point for your RSG visit"})]})]}),e.jsx("button",{type:"button",onClick:()=>d(!1),"aria-label":"Hide Benny welcome",className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-full border border-zinc-200 bg-white text-zinc-500 transition hover:border-[#F45815]/40 hover:bg-[#FFF8F3] hover:text-[#A83E10] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#F45815]/40",children:e.jsx(bt,{className:"h-4 w-4"})})]}),e.jsxs("div",{className:"max-h-[min(70dvh,680px)] overflow-y-auto",children:[r==="booting"&&e.jsxs("div",{className:"flex min-h-[230px] items-center justify-center gap-3 p-6 text-[13px] font-semibold text-zinc-600",children:[e.jsx(W,{className:"h-5 w-5 animate-spin text-[#F45815]"})," Preparing Bennyâs private welcomeâ¦"]}),r==="boot_error"&&e.jsxs("div",{className:"space-y-4 p-5",children:[e.jsxs("div",{className:"rounded-[15px] border border-red-200 bg-red-50 p-4 text-[13px] leading-relaxed text-red-800",children:[e.jsx("p",{className:"font-bold",children:"Benny is taking a short pause."}),e.jsx("p",{className:"mt-1",children:m})]}),e.jsxs("button",{type:"button",onClick:()=>void pe(),className:"inline-flex min-h-[46px] w-full items-center justify-center gap-2 rounded-[13px] bg-[#F45815] px-4 text-[13px] font-black text-white shadow-[0_8px_18px_rgba(244,88,21,0.22)] transition hover:bg-[#D9470D] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#F45815]/45",children:[e.jsx(It,{className:"h-4 w-4"})," Try Benny again"]})]}),r==="welcome"&&e.jsxs("div",{className:"p-4 sm:p-5",children:[e.jsxs("div",{className:"rounded-[16px] border border-[#F45815]/15 bg-[#FFF8F3] p-4",children:[e.jsx("p",{className:"text-[15px] font-black text-zinc-950",children:"Hi, Iâm Benny. What brings you to RSG?"}),e.jsx("p",{className:"mt-1.5 text-[12.5px] leading-relaxed text-zinc-700",children:"Iâll help you find the right starting point, answer platform questions, and keep a small approved note so your next visit can pick up where you left off."})]}),e.jsxs("form",{onSubmit:Et,noValidate:!0,className:"mt-5 space-y-4","aria-label":"Benny first visit welcome",children:[e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"benny-first-name",className:"mb-1.5 block text-[11px] font-black uppercase tracking-[0.12em] text-zinc-700",children:["First name ",e.jsx("span",{className:"text-[#F45815]",children:"*"})]}),e.jsx("input",{ref:Ee,id:"benny-first-name",value:b,onChange:a=>y(a.target.value),autoComplete:"given-name",placeholder:"Your first name",className:`h-[46px] w-full rounded-[12px] border bg-white px-3.5 text-[16px] text-zinc-900 outline-none transition focus:border-[#F45815] focus:ring-2 focus:ring-[#F45815]/15 ${h.name?"border-red-300":"border-zinc-200"}`,"aria-invalid":!!h.name,"aria-describedby":h.name?"benny-name-error":void 0}),h.name&&e.jsx("p",{id:"benny-name-error",className:"mt-1.5 text-[11px] font-semibold text-red-600",children:h.name})]}),e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"benny-email",className:"mb-1.5 flex items-center gap-1.5 text-[11px] font-black uppercase tracking-[0.12em] text-zinc-700",children:[e.jsx(Me,{className:"h-3.5 w-3.5 text-[#F45815]"})," Email ",e.jsx("span",{className:"text-[#F45815]",children:"*"})]}),e.jsx("input",{id:"benny-email",type:"email",value:F,onChange:a=>_(a.target.value),autoComplete:"email",placeholder:"[email protected]",className:`h-[46px] w-full rounded-[12px] border bg-white px-3.5 text-[16px] text-zinc-900 outline-none transition focus:border-[#F45815] focus:ring-2 focus:ring-[#F45815]/15 ${h.email?"border-red-300":"border-zinc-200"}`,"aria-invalid":!!h.email}),h.email&&e.jsx("p",{className:"mt-1.5 text-[11px] font-semibold text-red-600",children:h.email})]}),e.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"benny-role",className:"mb-1.5 block text-[11px] font-black uppercase tracking-[0.12em] text-zinc-700",children:["Iâm here as a ",e.jsx("span",{className:"text-[#F45815]",children:"*"})]}),e.jsxs("select",{id:"benny-role",value:D,onChange:a=>ne(a.target.value),className:`h-[46px] w-full rounded-[12px] border bg-white px-3.5 text-[14px] font-semibold text-zinc-900 outline-none focus:border-[#F45815] focus:ring-2 focus:ring-[#F45815]/15 ${h.role?"border-red-300":"border-zinc-200"}`,children:[e.jsx("option",{value:"",children:"Choose one"}),ws.map(a=>e.jsx("option",{value:a.value,children:a.label},a.value))]}),h.role&&e.jsx("p",{className:"mt-1.5 text-[11px] font-semibold text-red-600",children:h.role})]}),e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"benny-goal",className:"mb-1.5 block text-[11px] font-black uppercase tracking-[0.12em] text-zinc-700",children:["My main goal is ",e.jsx("span",{className:"text-[#F45815]",children:"*"})]}),e.jsxs("select",{id:"benny-goal",value:A,onChange:a=>ve(a.target.value),className:`h-[46px] w-full rounded-[12px] border bg-white px-3.5 text-[14px] font-semibold text-zinc-900 outline-none focus:border-[#F45815] focus:ring-2 focus:ring-[#F45815]/15 ${h.goal?"border-red-300":"border-zinc-200"}`,children:[e.jsx("option",{value:"",children:"Choose one"}),St.map(a=>e.jsx("option",{value:a.value,children:a.label},a.value))]}),h.goal&&e.jsx("p",{className:"mt-1.5 text-[11px] font-semibold text-red-600",children:h.goal})]})]}),e.jsx(Ne,{id:"benny-stage",legend:"Where are you with RSG?",value:p.current_stage||"",options:fe.current_stage,onChange:a=>Z(c=>({...c,current_stage:a})),error:h.current_stage}),e.jsx(Ne,{id:"benny-need",legend:"What would help most?",value:p.biggest_need||"",options:fe.biggest_need,onChange:a=>Z(c=>({...c,biggest_need:a})),error:h.biggest_need}),e.jsx(Ne,{id:"benny-style",legend:"How should Benny help?",value:p.help_style||"",options:fe.help_style,onChange:a=>Z(c=>({...c,help_style:a})),error:h.help_style}),e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"benny-needs",className:"mb-1.5 block text-[11px] font-black uppercase tracking-[0.12em] text-zinc-700",children:["What do you want Benny to help solve? ",e.jsx("span",{className:"normal-case tracking-normal text-zinc-400",children:"(optional)"})]}),e.jsx("textarea",{id:"benny-needs",value:ee,onChange:a=>te(a.target.value.slice(0,280)),rows:2,placeholder:"A short question or goal",className:`min-h-[72px] w-full resize-y rounded-[12px] border bg-white px-3.5 py-2.5 text-[14px] leading-relaxed text-zinc-900 outline-none focus:border-[#F45815] focus:ring-2 focus:ring-[#F45815]/15 ${h.needs?"border-red-300":"border-zinc-200"}`}),h.needs&&e.jsx("p",{className:"mt-1.5 text-[11px] font-semibold text-red-600",children:h.needs})]}),e.jsxs("label",{className:`flex cursor-pointer items-start gap-3 rounded-[13px] border p-3.5 ${h.consent?"border-red-300 bg-red-50/40":"border-zinc-200 bg-zinc-50/60"}`,children:[e.jsx("input",{type:"checkbox",checked:$,onChange:a=>se(a.target.checked),className:"mt-0.5 h-[18px] w-[18px] shrink-0 accent-[#F45815]","aria-describedby":"benny-consent-copy"}),e.jsx("span",{id:"benny-consent-copy",className:"text-[11.5px] leading-[1.55] text-zinc-700",children:Xe})]}),h.consent&&e.jsx("p",{className:"-mt-2 text-[11px] font-semibold text-red-600",children:h.consent}),T&&e.jsx("p",{role:"alert",className:"rounded-[12px] border border-red-200 bg-red-50 px-3.5 py-3 text-[12px] font-semibold leading-relaxed text-red-800",children:T}),e.jsxs("button",{type:"submit",disabled:R,className:"inline-flex min-h-[50px] w-full items-center justify-center gap-2 rounded-[14px] bg-[#F45815] px-5 text-[14px] font-black text-white shadow-[0_9px_20px_rgba(244,88,21,0.25)] transition hover:bg-[#D9470D] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#F45815]/45 disabled:cursor-not-allowed disabled:opacity-60",children:[R?e.jsx(W,{className:"h-5 w-5 animate-spin"}):e.jsx(S,{className:"h-5 w-5"}),R?"Saving your welcomeâ¦":"Start with Benny"]})]}),e.jsxs("button",{type:"button",onClick:Tt,className:"mt-4 inline-flex min-h-[42px] w-full items-center justify-center gap-1 text-[12px] font-bold text-[#A83E10] transition hover:text-[#7C2D12] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#F45815]/40",children:["Returning visitor? Verify your email ",e.jsx(ls,{className:"h-4 w-4"})]})]}),r==="returning_email"&&e.jsxs("form",{onSubmit:Dt,className:"space-y-4 p-5",noValidate:!0,children:[e.jsxs("div",{className:"rounded-[15p
1x] border border-[#F45815]/15 bg-[#FFF8F3] p-4",children:[e.jsx("p",{className:"text-[15px] font-black text-zinc-950",children:"Welcome back to Benny"}),e.jsx("p",{className:"mt-1.5 text-[12.5px] leading-relaxed text-zinc-700",children:"Enter your email and weâll send a one-time code if a saved Benny relationship matches. The response is the same either way."})]}),e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"benny-returning-email",className:"mb-1.5 block text-[11px] font-black uppercase tracking-[0.12em] text-zinc-700",children:["Email ",e.jsx("span",{className:"text-[#F45815]",children:"*"})]}),e.jsx("input",{ref:De,id:"benny-returning-email",type:"email",value:v,onChange:a=>k(a.target.value),autoComplete:"email",placeholder:"[email protected]",className:"h-[48px] w-full rounded-[12px] border border-zinc-200 bg-white px-3.5 text-[16px] text-zinc-900 outline-none focus:border-[#F45815] focus:ring-2 focus:ring-[#F45815]/15"})]}),T&&e.jsx("p",{role:"alert",className:"rounded-[12px] border border-red-200 bg-red-50 px-3.5 py-3 text-[12px] font-semibold text-red-800",children:T}),e.jsxs("button",{type:"submit",disabled:R,className:"inline-flex min-h-[49px] w-full items-center justify-center gap-2 rounded-[14px] bg-[#F45815] px-5 text-[14px] font-black text-white transition hover:bg-[#D9470D] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#F45815]/45 disabled:opacity-60",children:[R?e.jsx(W,{className:"h-5 w-5 animate-spin"}):e.jsx(Me,{className:"h-5 w-5"}),R?"Checking securelyâ¦":"Send verification code"]}),e.jsx("button",{type:"button",onClick:()=>{j(""),l("welcome")},className:"min-h-[42px] w-full text-[12px] font-bold text-zinc-600 hover:text-zinc-950",children:"Back to first visit"})]}),r==="returning_code"&&e.jsxs("form",{onSubmit:At,className:"space-y-4 p-5",noValidate:!0,children:[e.jsxs("div",{className:"rounded-[15px] border border-emerald-200 bg-emerald-50 p-4",children:[e.jsx("p",{className:"text-[14px] font-black text-emerald-900",children:"Check your email"}),e.jsx("p",{className:"mt-1.5 text-[12.5px] leading-relaxed text-emerald-800",children:Y||Ze})]}),e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"benny-verification-code",className:"mb-1.5 block text-[11px] font-black uppercase tracking-[0.12em] text-zinc-700",children:["Six-digit code ",e.jsx("span",{className:"text-[#F45815]",children:"*"})]}),e.jsx("input",{ref:Ae,id:"benny-verification-code",value:ae,onChange:a=>le(a.target.value.replace(/\D/g,"").slice(0,6)),inputMode:"numeric",autoComplete:"one-time-code",placeholder:"000000",className:"h-[52px] w-full rounded-[12px] border border-zinc-200 bg-white px-3.5 text-center text-[22px] font-black tracking-[0.28em] text-zinc-900 outline-none focus:border-[#F45815] focus:ring-2 focus:ring-[#F45815]/15"})]}),T&&e.jsx("p",{role:"alert",className:"rounded-[12px] border border-red-200 bg-red-50 px-3.5 py-3 text-[12px] font-semibold leading-relaxed text-red-800",children:T}),e.jsxs("button",{type:"submit",disabled:R,className:"inline-flex min-h-[49px] w-full items-center justify-center gap-2 rounded-[14px] bg-[#F45815] px-5 text-[14px] font-black text-white transition hover:bg-[#D9470D] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#F45815]/45 disabled:opacity-60",children:[R?e.jsx(W,{className:"h-5 w-5 animate-spin"}):e.jsx(qe,{className:"h-5 w-5"}),R?"Verifyingâ¦":"Return to my Benny relationship"]}),e.jsx("button",{type:"button",onClick:()=>{j(""),l("returning_email")},className:"min-h-[42px] w-full text-[12px] font-bold text-[#A83E10] hover:text-[#7C2D12]",children:"Use a different email"})]}),r==="chat"&&i&&e.jsxs("div",{className:"flex flex-col",children:[e.jsxs("div",{ref:de,className:"min-h-[240px] max-h-[min(49dvh,430px)] space-y-3 overflow-y-auto bg-white px-4 py-4","aria-live":"polite",children:[e.jsxs("div",{className:"mb-2 flex items-center gap-2 rounded-[12px] border border-[#F45815]/15 bg-[#FFF8F3] px-3 py-2 text-[11px] font-semibold text-zinc-700",children:[e.jsx(Ot,{className:"h-3.5 w-3.5 shrink-0 text-[#F45815]"})," Benny uses your approved context, not a transcript saved in this browser."]}
1),G.map(a=>e.jsx("div",{className:`flex ${a.role==="user"?"justify-end":"justify-start"}`,children:e.jsx("div",{className:`max-w-[87%] rounded-[15px] px-3.5 py-2.5 text-[13px] leading-[1.55] shadow-sm ${a.role==="user"?"rounded-br-[4px] bg-[#F45815] text-white":"rounded-bl-[4px] border border-zinc-200 bg-zinc-50 text-zinc-800"}`,children:e.jsx("p",{className:"whitespace-pre-wrap break-words",children:a.text})})},a.id)),M&&e.jsx("div",{className:"flex justify-start",children:e.jsx("div",{className:"rounded-[15px] rounded-bl-[4px] border border-zinc-200 bg-zinc-50 px-4 py-3",children:e.jsxs("div",{className:"flex items-center gap-1.5","aria-label":"Benny is thinking",children:[e.jsx("span",{className:"h-1.5 w-1.5 animate-bounce rounded-full bg-[#F45815] [animation-delay:-0.3s]"}),e.jsx("span",{className:"h-1.5 w-1.5 animate-bounce rounded-full bg-zinc-400 [animation-delay:-0.15s]"}),e.jsx("span",{className:"h-1.5 w-1.5 animate-bounce rounded-full bg-zinc-300"})]})})}),Ce&&e.jsxs("div",{role:"alert",className:"rounded-[12px] border border-red-200 bg-red-50 px-3 py-2.5 text-[12px] font-semibold leading-relaxed text-red-800",children:[Ce,e.jsx("button",{type:"button",onClick:()=>void J(i),className:"ml-2 font-black underline",children:"Try again"})]}),e.jsx(Lt,{})]}),e.jsxs("div",{className:"border-t border-zinc-100 bg-white px-3 py-2.5",children:[e.jsx("div",{className:"mb-2 flex gap-2 overflow-x-auto",children:["What should I do first?","Which RSG path fits me?"].map(a=>e.jsx("button",{type:"button",disabled:M,onClick:()=>void Be(a),className:"shrink-0 rounded-full border border-zinc-200 bg-white px-3 py-1.5 text-[11px] font-bold text-zinc-700 transition hover:border-[#F45815]/50 hover:bg-[#FFF8F3] disabled:opacity-50",children:a},a))}),e.jsxs("form",{onSubmit:Be,className:"flex items-center gap-2",children:[e.jsx("input",{ref:Te,value:V,onChange:a=>Q(a.target.value),placeholder:"Ask Benny about RSGâ¦",className:"h-11 min-w-0 flex-1 rounded-full border border-zinc-200 bg-zinc-50 px-4 text-[14px] text-zinc-900 outline-none focus:border-[#F45815] focus:bg-white focus:ring-2 focus:ring-[#F45815]/15"}),e.jsx("button",{type:"submit",disabled:!V.trim()||M,"aria-label":"Send message",className:"flex h-11 w-11 shrink-0 items-center justify-center rounded-full bg-[#F45815] text-white shadow-[0_6px_16px_rgba(244,88,21,0.25)] transition hover:bg-[#D9470D] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#F45815]/45 disabled:bg-zinc-200 disabled:text-zinc-400",children:e.jsx(Pt,{className:"h-4 w-4"})})]})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2 border-t border-zinc-100 px-4 py-3",children:[e.jsx("span",{className:"mr-1 text-[10px] font-black uppercase tracking-[0.12em] text-zinc-500",children:"Next step"}),e.jsxs(E,{to:i.role==="business_owner"?"/get-listed":"/directory",className:"inline-flex min-h-[32px] items-center gap-1 rounded-full border border-[#F45815]/25 bg-white px-3 py-1.5 text-[11px] font-bold text-[#A83E10] hover:bg-[#FFF8F3]",children:[i.role==="business_owner"?"Grow your business":"Browse RSG options",e.jsx(S,{className:"h-3.5 w-3.5"})]}),e.jsx("button",{type:"button",onClick:Gt,className:"ml-auto text-[10px] font-bold text-zinc-500 underline hover:text-zinc-900",children:"Start over"})]})]})]}),e.jsxs("footer",{className:"flex items-start gap-2 border-t border-zinc-100 bg-zinc-50/60 px-4 py-2.5 text-[10px] leading-relaxed text-zinc-500",children:[e.jsx(qe,{className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-[#F45815]"})," You control relationship memory. This welcome does not sign you up for marketing messages."]})]})})]})}function me(t){if(!Number.isFinite(t)||t<0)return"00:00";const s=Math.floor(t),d=Math.floor(s/60).toString().padStart(2,"0"),r=(s%60).toString().padStart(2,"0");return`${d}:${r}`}function Fs({artworkUrl:t,audioUrl:s=gt}){const[d,r]=n.useState(!1),l=re(),i=Ut(),u=!!(s!=null&&s.trim()),g=u&&i.hasError,N=i.isActive&&!i.isReady&&!i.hasError,m=i.duration>0?i.duration:1,w=Math.min(i.currentTime,m),b=g?"The theme song could not load right now. Try again when your connection is ready.":u?i.isPlaying?"The RSG theme song is playing. Close this panel and keep browsing while it continues.":i.isActive?"The song is paused. Use the mini-player at the bottom of the screen whenever you are ready.":"Press play to hear the signature sound of RideShareGuides. It repeats while you listen.":"The RSG signature sound is being prepared. The player will activate here as soon as the audio link is added.";return e.jsxs(wt,{open:d,onOpenChange:r,children:[e.jsx(C.div,{initial:l?!1:{opacity:0,y:16}
1,animate:{opacity:1,y:0},transition:l?{duration:0}:{delay:.08,duration:.55,ease:[.25,.1,.25,1]},children:e.jsx(yt,{asChild:!0,children:e.jsxs("button",{type:"button",className:"group/theme relative flex w-full flex-col overflow-hidden rounded-[28px] border border-[#F0E6D6] bg-white text-left shadow-[0_8px_30px_rgba(199,125,40,0.10)] outline-none transition-all duration-300 hover:-translate-y-1 hover:border-[#F45815]/[0.35] hover:shadow-[0_16px_42px_rgba(199,125,40,0.16)] focus-visible:ring-2 focus-visible:ring-[#F45815] focus-visible:ring-offset-2 focus-visible:ring-offset-white active:translate-y-0 active:scale-[0.995] md:flex-row","aria-label":"Listen to the RSG Theme Song",children:[e.jsxs("span",{className:"relative isolate flex min-h-[224px] items-center justify-center overflow-hidden border-b border-[#F0E6D6] bg-[#FFF8EF] p-3 sm:p-4 md:min-h-[302px] md:w-[38%] md:border-b-0 md:border-r md:p-4",children:[e.jsx("span",{"aria-hidden":!0,className:"absolute inset-0 bg-[radial-gradient(circle_at_50%_38%,rgba(255,255,255,0.92),transparent_64%),linear-gradient(145deg,rgba(255,244,229,0.92),rgba(255,250,244,0.72))]"}),e.jsx("span",{className:"relative z-10 block w-full max-w-[560px] overflow-hidden rounded-[22px] border border-[#F0E6D6] bg-[#FFFCF8] shadow-[0_8px_22px_rgba(199,125,40,0.10)]",children:e.jsx("span",{className:"block aspect-[4/3] w-full",children:e.jsx("img",{src:t,alt:"Black musical note artwork for the RideShareGuides theme song",className:"h-full w-full object-contain transition-transform duration-500 group-hover/theme:scale-[1.025]",loading:"lazy",decoding:"async",draggable:!1})})}),e.jsx("span",{"aria-hidden":!0,className:"absolute right-5 top-5 flex h-9 w-9 items-center justify-center rounded-full border border-[#F45815]/20 bg-white/80 text-[#C85B1B] shadow-sm backdrop-blur-sm sm:right-6 sm:top-6",children:e.jsx(we,{className:"h-4 w-4"})})]}),e.jsxs("span",{className:"flex min-w-0 flex-1 flex-col justify-center p-6 sm:p-8 md:p-9",children:[e.jsxs("span",{className:"flex flex-wrap items-center gap-2",children:[e.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-[#FFF1E8] px-2.5 py-1 text-[10px] font-black uppercase tracking-[0.15em] text-[#A83E10]",children:[e.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-[#F45815]"})," RSG Original"]}),e.jsx("span",{className:"text-[10px] font-bold uppercase tracking-[0.15em] text-zinc-400",children:"Listen"})]}),e.jsx("span",{className:"mt-4 block text-[30px] font-black leading-[0.98] tracking-[-0.035em] text-zinc-900 sm:text-[36px]",children:"Listen to the RSG Theme Song"}),e.jsx("span",{className:"mt-3 block max-w-[40ch] text-[15px] font-medium leading-[1.55] text-zinc-600 sm:text-[16px]",children:"The signature sound of RideShareGuides, made for the people who keep South Florida moving."}),e.jsxs("span",{className:"mt-7 flex items-center justify-between gap-4 border-t border-zinc-100 pt-5",children:[e.jsxs("span",{children:[e.jsx("span",{className:"block text-[11px] font-bold uppercase tracking-[0.14em] text-[#C77D28]",children:"Signature sound"}),e.jsx("span",{className:"mt-1 block text-[12px] font-medium text-zinc-500",children:"Tap to open the listening panel"})]}),e.jsx("span",{"aria-hidden":!0,className:"inline-flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-[#F45815] text-white shadow-[0_8px_20px_rgba(244,88,21,0.25)] transition-all duration-300 group-hover/theme:bg-[#D9480D] group-hover/theme:shadow-[0_10px_24px_rgba(244,88,21,0.35)] group-active/theme:scale-95",children:e.jsx($e,{className:"ml-0.5 h-5 w-5 fill-current"})})]})]})]})})}),e.jsxs(os,{className:"max-h-[calc(100dvh-2rem)] max-w-[540px] overflow-y-auto rounded-[28px] border-[#F0E6D6] bg-[#FFFCF7] p-0 text-zinc-900 shadow-[0_24px_80px_rgba(67,38,12,0.24)] sm:max-h-[calc(100dvh-4rem)]",children:[e.jsxs("div",{className:"relative flex min-h-[154px] items-center overflow-hidden bg-[#FFF0DF] px-6 py-8 pr-16 sm:px-8",children:[e.jsx("div",{"aria-hidden":!0,className:"absolute inset-0 bg-[radial-gradient(circle_at_22%_20%,rgba(255,255,255,0.9),transparent_34%),linear-gradient(125deg,rgba(244,88,21,0.12),transparent_62%)]"}
1),e.jsx("div",{"aria-hidden":!0,className:"absolute -bottom-16 -right-8 h-44 w-44 rounded-full border border-[#F45815]/20"}),e.jsxs("div",{className:"relative z-10 flex items-center gap-4",children:[e.jsx("span",{className:"flex h-16 w-16 shrink-0 items-center justify-center overflow-hidden rounded-2xl border border-[#F45815]/20 bg-white/80 shadow-sm",children:e.jsx("img",{src:t,alt:"","aria-hidden":"true",className:"h-full w-full object-contain p-2 mix-blend-multiply"})}),e.jsxs("span",{children:[e.jsx("span",{className:"block text-[10px] font-black uppercase tracking-[0.16em] text-[#A83E10]",children:"RSG Original"}),e.jsx(jt,{className:"mt-1 text-[24px] font-black leading-[1.05] tracking-tight text-zinc-900",children:"Listen to the RSG Theme Song"})]})]})]}),e.jsxs("div",{className:"space-y-5 px-6 pb-[max(1.5rem,env(safe-area-inset-bottom))] pt-6 sm:px-8 sm:pb-8",children:[e.jsx(Nt,{className:"text-[15px] leading-[1.55] text-zinc-600",children:b}),u?e.jsx("div",{className:"rounded-2xl border border-[#F0E6D6] bg-white p-4 shadow-sm",children:g?e.jsx("div",{role:"alert","aria-live":"polite",className:"rounded-xl border border-[#F45815]/[0.18] bg-[#FFF3E5] p-4",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("span",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-[#F45815] text-white shadow-sm",children:e.jsx(we,{className:"h-4 w-4"})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("p",{className:"text-[15px] font-bold text-zinc-900",children:"The theme song could not load"}),e.jsx("p",{className:"mt-1.5 text-[13px] leading-[1.5] text-zinc-600",children:"Check your connection, then try the player again."}),e.jsxs("button",{type:"button",onClick:i.retry,className:"mt-4 inline-flex min-h-10 items-center gap-2 rounded-full bg-[#F45815] px-4 py-2 text-[12px] font-black uppercase tracking-[0.12em] text-white shadow-[0_6px_16px_rgba(244,88,21,0.2)] transition hover:bg-[#D9480D] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#F45815] focus-visible:ring-offset-2 active:scale-[0.98]",children:[e.jsx(Vt,{className:"h-3.5 w-3.5"})," Retry"]})]})]})}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex items-center gap-2 text-[11px] font-bold uppercase tracking-[0.14em] text-[#C77D28]","aria-live":"polite",children:[e.jsx(we,{className:"h-4 w-4"})," ",N?"Loading audio":i.isPlaying?"Playing while you browse":i.isActive?"Paused":i.isReady?"Ready to play":"Ready when you press play"]}),e.jsxs("button",{type:"button",onClick:()=>{i.isPlaying?i.pause():i.play()},disabled:N,className:"mt-4 inline-flex min-h-[54px] w-full items-center justify-center gap-2.5 rounded-full bg-[#F45815] px-5 text-[14px] font-black text-white shadow-[0_8px_22px_rgba(244,88,21,0.25)] transition hover:bg-[#D9480D] disabled:cursor-wait disabled:opacity-70 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#F45815] focus-visible:ring-offset-2 active:scale-[0.99]","aria-label":i.isPlaying?"Pause the RSG Theme Song":"Play the RSG Theme Song while browsing",children:[N?e.jsx("span",{className:"h-5 w-5 animate-spin rounded-full border-2 border-white/40 border-t-white"}):i.isPlaying?e.jsx(Ht,{className:"h-5 w-5 fill-current"}):e.jsx($e,{className:"ml-0.5 h-5 w-5 fill-current"}),i.isPlaying?"Pause":"Play while you browse"]}),i.duration>0&&e.jsxs("div",{className:"mt-4",children:[e.jsx("input",{type:"range",min:0,max:m,step:.1,value:w,onChange:y=>i.seek(Number(y.target.value)),className:"h-1.5 w-full cursor-pointer accent-[#F45815]","aria-label":"Theme song progress","aria-valuetext":`${me(i.currentTime)} of ${me(i.duration)}`}),e.jsxs("div",{className:"mt-1 flex justify-between text-[10px] font-semibold tabular-nums text-zinc-400",children:[e.jsx("span",{children:me(i.currentTime)}),e.jsx("span",{children:me(i.duration)})]})]}),e.jsxs("div",{className:"mt-4 flex items-center justify-between gap-3 rounded-xl border border-[#F0E6D6] bg-[#FFFCF7] px-3 py-2.5",children:[e.jsx("p",{className:"text-[12px] leading-[1.45] text-zinc-600",children:"Keeps playing while you browse. Close this panel whenever you are ready."}),i.isActive&&e.jsxs("button",{type:"button",onClick:i.stop,className:"inline-flex shrink-0 items-center gap-1.5 rounded-full border border-zinc-200 bg-white px-3 py-2 text-[10px] font-black uppercase tracking-[0.1em] text-zinc-700 transition hover:border-[#F45815]/40 hover:text-[#D9480D] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#F45815] focus-visible:ring-offset-2","aria-label":"Stop the RSG Theme Song",children:[e.jsx(Wt,{className:"h-3 w-3 fill-current"})," Stop"]})]})]})}):e.jsx("div",{className:"rounded-2xl border border-[#F45815]/[0.15] bg-[#FFF3E5] p-5",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("span",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-[#F45815] text-white shadow-sm",children:e.jsx(Kt,{className:"h-4 w-4"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-[15px] font-bold text-zinc-900",children:"Theme song coming soon"}),e.jsx("p",{className:"mt-1.5 text-[13px] leading-[1.5] text-zinc-600",children:"We're getting the RSG sound ready for the road. Check back here when the player goes live."})]})]})}),e.jsx("p",{className:"text-center text-[11px] font-semibold uppercase tracking-[0.13em] text-zinc-400",children:"RideShareGuides · Est. 2016"})]})]})]})}const ze="https://rideshareguides.com",nt="RideShareGuides",Ss=`RSG Driver-Owned Network 2${ze}`;function lt(t){return!!(t&&typeof t=="object"&&"name"in t&&t.name==="AbortError")}async function Rs(){const t=await fetch(Se,{cache:"force-cache"});if(!t.ok)throw new Error("The RSG logo could not be loaded.");const s=await t.blob();return new File([s],"rideshareguides-logo.png",{type:"image/png"})}function zs(){const[t,s]=n.useState(!1),[d,r]=n.useState(null),l=n.useRef(null);n.useEffect(()=>()=>{l.current!==null&&window.clearTimeout(l.current)},[]);const i=m=>{r(m),l.current!==null&&window.clearTimeout(l.current),l.current=window.setTimeout(()=>{r(null),l.current=null},4200)},u=async()=>{const m=await vt(ze);i(m?"The share sheet is unavailable, so the site link was copied.":"Sharing is unavailable here. Copy the site link manually.")},g=async m=>{if(typeof m.share!="function")return"unavailable";try{return await m.share({title:nt,text:"RSG Driver-Owned Network",url:ze}),i("Shared the RSG site link."),"shared"}catch(w){return lt(w)?"canceled":"unavailable"}},N=async()=>
2{if(!t){s(!0),r(null);try{if(typeof navigator>"u"){await u();return}const m=navigator;if(typeof m.share!="function"){await u();return}let w=null;try{typeof File<"u"&&(w=await Rs())}catch{w=null}if(w&&typeof m.canShare=="function"){let y=!1;try{y=m.canShare({files:[w]})}catch{y=!1}if(y)try{await m.share({files:[w],title:nt,text:Ss}),i("Shared the RSG logo and site link.");return}catch(F){if(lt(F))return}}const b=await g(m);if(b==="canceled"||b==="shared")return;await u()}finally{s(!1)}}};return e.jsxs("div",{className:"flex min-w-0 flex-col items-center gap-1.5","aria-busy":t,children:[e.jsxs("button",{type:"button",onClick:N,disabled:t,"aria-label":"Share the RideShareGuides logo and production website",className:"inline-flex min-h-[44px] shrink-0 items-center justify-center gap-2 rounded-full border border-zinc-300 bg-white px-4 py-2 text-[12px] font-bold text-zinc-800 shadow-[0_2px_10px_rgba(0,0,0,0.03)] transition hover:border-[#F45815]/[0.55] hover:bg-[#FFF8F3] hover:text-[#B9380B] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#F45815]/40 focus-visible:ring-offset-2 focus-visible:ring-offset-white disabled:cursor-wait disabled:opacity-60",children:[t?e.jsx(W,{className:"h-4 w-4 animate-spin text-[#F45815]","aria-hidden":"true"}):e.jsx(Ft,{className:"h-4 w-4 text-[#F45815]","aria-hidden":"true"}),e.jsx("span",{children:t?"Preparing...":"Share RSG"})]}),d&&e.jsx("p",{role:"status","aria-live":"polite",className:"max-w-[250px] text-center text-[10px] leading-relaxed text-zinc-500",children:d})]})}const Cs="https://ellprnxjjzatijdxcogk.supabase.co/storage/v1/render/image/public/files/chat-generated-images/project-9xrrufffexrbbkhc2dshz/97829caa-00f6-4902-a8bb-ac1f1fc49aee.png?width=900&resize=contain&quality=80";function Es(){const t=re();return e.jsxs(C.article,{initial:t?!1:{opacity:0,y:16},animate:{opacity:1,y:0},transition:t?{duration:0}:{duration:.55,ease:[.25,.1,.25,1]},className:"group relative overflow-hidden rounded-[28px] border border-[#F0E6D6] bg-white shadow-[0_8px_30px_rgba(199,125,40,0.09)] transition-all duration-300 hover:-translate-y-[2px] hover:border-[#F45815]/[0.35] hover:shadow-[0_14px_38px_rgba(199,125,40,0.15)]",children:[e.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 top-0 h-28 bg-gradient-to-br from-[#FFF7ED] via-[#FFFCF9] to-transparent"}),e.jsxs("div",{className:"relative flex flex-col md:flex-row",children:[e.jsx("div",{className:"relative shrink-0 bg-[#FFF7ED] p-2.5 sm:p-3 md:w-[36%] md:p-3.5",children:e.jsxs("div",{className:"relative h-[148px] overflow-hidden rounded-[21px] border border-[#F3DCCB] bg-[#FFFDF9] sm:h-[178px] md:h-full md:min-h-[232px]",children:[e.jsx("img",{src:Cs,alt:"Drivers and community members sharing updates across the road",className:"h-full w-full object-cover object-center transition duration-700 group-hover:scale-[1.025]",loading:"lazy",decoding:"async",draggable:!1}),e.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 ring-1 ring-inset ring-[#C77D28]/[0.08]"})]})}),e.jsxs("div",{className:"flex min-w-0 flex-1 flex-col justify-center p-5 sm:p-7 md:p-8",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-[#FFF1E8] px-2.5 py-1 text-[10px] font-black uppercase tracking-[0.16em] text-[#A83E10]",children:[e.jsx(ft,{"aria-hidden":"true",className:"h-3.5 w-3.5"})," RSG News"]}),e.jsx("span",{className:"text-[10px] font-bold uppercase tracking-[0.15em] text-zinc-400",children:"Public feed"})]}),e.jsx("h2",{className:"mt-4 max-w-[24ch] text-[26px] font-black leading-[1.02] tracking-[-0.035em] text-zinc-950 sm:text-[32px]",children:"Share something with drivers worldwide..."}),e.jsx("p",{className:"mt-3 max-w-[48ch] text-[14px] font-medium leading-[1.55] text-zinc-600 sm:text-[15px]",children:"Anyone can read the public News feed and leave a thoughtful comment."}),e.jsxs("div",{className:"mt-5 flex flex-wrap items-center justify-between gap-4 border-t border-zinc-100 pt-4 sm:mt-6 sm:pt-5",children:[e.jsx("span",{className:"text-[11px] font-bold uppercase tracking-[0.14em] text-[#C77D28]",children:"Read · comment · connect"}),e.jsxs(E,{to:"/news","aria-label":"Open the public RSG News feed",className:"inline-flex min-h-11 items-center gap-2 rounded-full bg-[#F45815] px-5 py-2.5 text-[13px] font-bold text-white shadow-[0_8px_18px_rgba(244,88,21,0.22)] transition-all duration-300 hover:bg-[#
2E04E12] hover:shadow-[0_10px_24px_rgba(244,88,21,0.3)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#F45815] focus-visible:ring-offset-2 focus-visible:ring-offset-white active:scale-[0.98]",children:["Open News Feed ",e.jsx(S,{"aria-hidden":"true",className:"h-4 w-4 transition-transform group-hover:translate-x-0.5"})]})]})]})]})]})}const Ds="2026-09-07T00:00:00-04:00",As="2026-09-14T00:00:00-04:00";function Ts(){const t=Date.now(),s=Date.parse(Ds),d=Date.parse(As);return t<s||t>=d?null:e.jsx(Gs,{})}function Gs(){const t=re();return e.jsxs(C.section,{"aria-labelledby":"driver-membership-week-title",initial:t?!1:{opacity:0,y:16},animate:{opacity:1,y:0},transition:t?{duration:0}:{duration:.55,ease:[.25,.1,.25,1]},className:"group relative mx-auto mb-10 w-full max-w-[1060px] overflow-hidden rounded-[24px] border border-stone-200 bg-white shadow-[0_6px_24px_rgba(35,31,28,0.06)] transition-all duration-300 hover:-translate-y-[1px] hover:border-stone-300 hover:shadow-[0_10px_30px_rgba(35,31,28,0.08)] sm:mb-12",children:[e.jsx("div",{"aria-hidden":"true",className:"absolute inset-y-0 left-0 w-1.5 bg-[#F45815]"}),e.jsxs("div",{className:"relative p-5 pl-7 sm:p-7 sm:pl-9 lg:p-8 lg:pl-10",children:[e.jsxs("div",{className:"flex flex-col gap-6 lg:flex-row lg:items-start lg:gap-10",children:[e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full border border-[#F45815]/20 bg-[#FFF4EE] px-2.5 py-1 text-[10px] font-black uppercase tracking-[0.16em] text-[#C84A16]",children:[e.jsx(Ue,{"aria-hidden":"true",className:"h-3.5 w-3.5"})," Current driver campaign"]}),e.jsx("span",{className:"text-[10px] font-bold uppercase tracking-[0.15em] text-zinc-400",children:"September 7â13, 2026"})]}),e.jsx("h2",{id:"driver-membership-week-title",className:"mt-4 max-w-[22ch] text-[28px] font-black leading-[1.02] tracking-[-0.04em] text-zinc-950 sm:text-[34px]",children:"South Florida Driver Membership Week"}),e.jsx("p",{className:"mt-3 max-w-[56ch] text-[14px] font-medium leading-[1.55] text-zinc-600 sm:text-[15px]",children:"South Florida rideshare and delivery drivers can start free RSG membership for a server-assigned Driver ID, a shareable DON Card, and community value built for life on the road. A planned $50 gift-card drawing is being prepared for one eligible newly verified member this week."}),e.jsxs("div",{className:"mt-5 grid gap-2 border-y border-zinc-100 py-3 sm:grid-cols-3 sm:gap-0",children:[e.jsxs("div",{className:"flex items-center gap-3 border-zinc-100 sm:border-r sm:pr-4",children:[e.jsx(fs,{"aria-hidden":"true",className:"h-5 w-5 shrink-0 text-[#F45815]"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-[12px] font-black text-zinc-900",children:"September 7â13"}),e.jsx("p",{className:"text-[11px] font-medium text-zinc-500",children:"2026, Eastern Time"})]})]}),e.jsxs("div",{className:"flex items-center gap-3 border-zinc-100 sm:border-r sm:px-4",children:[e.jsx(Ue,{"aria-hidden":"true",className:"h-5 w-5 shrink-0 text-[#F45815]"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-[12px] font-black text-zinc-900",children:"Free RSG membership"}),e.jsx("p",{className:"text-[11px] font-medium text-zinc-500",children:"Driver ID + shareable DON Card"})]})]}),e.jsxs("div",{className:"flex items-center gap-3 sm:pl-4",children:[e.jsx(Yt,{"aria-hidden":"true",className:"h-5 w-5 shrink-0 text-[#F45815]"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-[12px] font-black text-zinc-900",children:"Planned $50 drawing"}),e.jsx("p",{className:"text-[11px] font-medium text-zinc-500",children:"retailer to be announced"})]})]})]})]}),e.jsxs("div",{className:"flex shrink-0 flex-col justify-center lg:w-[220px] lg:pt-8",children:[e.jsx("p",{className:"text-[11px] font-black uppercase tracking-[0.14em] text-[#C84A16]",children:"For South Florida drivers"}),e.jsx("p",{className:"mt-1.5 text-[13px] leading-5 text-zinc-600",children:"Start with free membership and see the Driver ID, DON Card, and community benefits available to you. Final prize details and official rules will be announced before entry opens."}),e.jsxs(E,{to:"/driver-home",className:"mt-4 inline-flex min-h-11 w-full items-center justify-center gap-2 rounded-full bg-[#F45815] px-5 py-2.5 text-[13px] font-bold text-white shadow-[0_7px_18px_rgba(244,88,21,0.22)] transition-all duration-300 hover:-translate-y-0.5 hover:bg-[#
2E94E0E] hover:shadow-[0_10px_22px_rgba(244,88,21,0.28)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#F45815] focus-visible:ring-offset-2 focus-visible:ring-offset-white active:scale-[0.98]",children:["Start free RSG membership",e.jsx(S,{"aria-hidden":"true",className:"h-4 w-4 transition-transform duration-300 group-hover:translate-x-0.5"})]})]})]}),e.jsxs("div",{className:"mt-5 flex flex-col gap-1.5 border-t border-zinc-100 pt-4 sm:mt-6 sm:flex-row sm:items-baseline sm:gap-3 sm:pt-5",children:[e.jsx("span",{className:"shrink-0 text-[10px] font-black uppercase tracking-[0.16em] text-[#C84A16]",children:"Campaign note"}),e.jsx("p",{className:"text-[12px] leading-5 text-zinc-600 sm:text-[13px]",children:"Planned incentive: one $50 gift-card drawing each week for eligible newly verified RSG members. One prize per person per year. The retailer, final prize details, and official entry rules will be announced before entry opens. Membership does not guarantee earnings, work, or giveaway eligibility."})]})]})]})}const _e="https://rideshareguides.com/rsg-network",Bs={en:{quickHint:"For the drivers you meet",openQr:"RSG Network",dialogTitle:"Share the RSG Network",dialogDescription:"Give another driver one place to learn about free RSG membership, a Driver ID, the DON Card, and tools for drivers.",qrAlt:"QR code linking to the RSG Network page",scanHint:"Scan to explore RSG",directLabel:"Open the page directly",copyLabel:"Copy link",shareLabel:"Share link",shareTitle:"RSG Network for drivers",shareText:"Explore free RSG membership and driver resources.",copied:"Link copied. Send it to a driver you meet.",shared:"Sharing completed.",copyFallback:"Copy was unavailable. Use the RSG Network link above.",close:"Close share dialog"},es:{quickHint:"Para los conductores que conozcas",openQr:"RSG Network",dialogTitle:"Comparte RSG Network",dialogDescription:"Comparte un lugar donde otro conductor puede conocer la membresÃa gratis de RSG, el Driver ID, la DON Card y herramientas para conductores.",qrAlt:"Código QR que lleva a la página RSG Network",scanHint:"Escanea para conocer RSG",directLabel:"Abre la página directamente",copyLabel:"Copiar enlace",shareLabel:"Compartir enlace",shareTitle:"RSG Network para conductores",shareText:"Conoce la membresÃa gratis de RSG y sus recursos para conductores.",copied:"Enlace copiado. EnvÃalo a otro conductor.",shared:"Se completó el uso de compartir.",copyFallback:"No se pudo copiar. Usa el enlace RSG Network de arriba.",close:"Cerrar ventana para compartir"},fr:{quickHint:"Pour les chauffeurs que vous rencontrez",openQr:"RSG Network",dialogTitle:"Partager le réseau RSG",dialogDescription:"Donnez à un autre chauffeur un lien pour découvrir lâadhésion RSG gratuite, le Driver ID, la DON Card et des outils pour les chauffeurs.",qrAlt:"Code QR menant à la page RSG Network",scanHint:"Scannez pour découvrir RSG",directLabel:"Ouvrir la page directement",copyLabel:"Copier le lien",shareLabel:"Partager le lien",shareTitle:"RSG Network pour les chauffeurs",shareText:"Découvrez lâadhésion RSG gratuite et les ressources pour les chauffeurs.",copied:"Lien copié. Envoyez-le à un chauffeur que vous rencontrez.",shared:"Le partage est terminé.",copyFallback:"La copie nâa pas fonctionné. Utilisez le lien RSG Network ci-dessus.",close:"Fermer la fenêtre de partage"}},Is="https://ellprnxjjzatijdxcogk.supabase.co/storage/v1/object/public/files/chat-generated-images/project-9xrrufffexrbbkhc2dshz/c9e2e888-6b5f-48e1-a73b-4150b6733306.png",Os="https://ellprnxjjzatijdxcogk.supabase.co/storage/v1/object/public/files/chat-generated-images/project-9xrrufffexrbbkhc2dshz/53f487ee-c93f-457e-9a77-1e29da2a0be5.png",ot=Is.replace("/storage/v1/object/public/","/storage/v1/render/image/public/")+"?width=800&resize=contain&quality=80",ct=Os.replace("/storage/v1/object/public/","/storage/v1/render/image/public/")+"?width=800&resize=contain&quality=80",Ls="https://ellprnxjjzatijdxcogk.supabase.co/storage/v1/object/public/files/chat-generated-images/project-9xrrufffexrbbkhc2dshz/144d7630-b3af-420d-b319-b75e11df192c.png",dt=Ls.replace("/storage/v1/object/public/","/storage/v1/render/image/public/")+"?width=900&resize=contain&quality=75",Ps="https://ellprnxjjzatijdxcogk.supabase.co/storage/v1/object/public/files/chat-generated-images/project-9xrrufffexrbbkhc2dshz/db151504-db6b-4b63-9d3e-15653f9ea343.png",Ms=Ps.replace("/storage/v1/object/public/","/storage/v1/render/image/public/")+"?width=760&resize=contain&quality=76",zt=kt("book-the-don"),Ct=kt("don-delivery"),qs=zt.poster||_t("book-the-don"),$s=Ct.poster||_t("don-delivery"),Us="https://apps.apple.com/app/id6450987934",Vs="https://play.google.com/store/apps/details?id=com.don.order&hl=en_US";function Hs(t){return is(`${window.location.origin}${t}`)}function Ws(t){try{if(window.top){window.top.location.href=t;return}}catch{}window.open(t,"_top")}const Ks=new Set(["active","pending_approval","calendar_pending","founding_bonus_pending","bonus_activated"]);function Ys(t){const s=typeof(t==null?void 0:t.driver_id)=="string"?t.driver_id.trim():"",d=typeof(t==null?void 0:t.status)=="string"?t.status.trim():"";return!!s&&Ks.has(d)}function Qs(t){const s=typeof(t==null?void 0:t.market_code)=="string"?t.market_code.trim():"",d=typeof(t==null?void 0:t.first_name)=="str
2ing"?t.first_name.trim():"";return!!(s&&d)}const Js=["ref","referral","via","ambassador","r","rsg_ref"],ke=4500,Xs=1200;function Zs(){var t;try{const s=new URLSearchParams(window.location.search);for(const d of Js){const r=(t=s.get(d))==null?void 0:t.trim();if(r){sessionStorage.setItem("rsg_referral_id",r.slice(0,100));return}}}catch{}}function Fe(t,s){return new Promise((d,r)=>{const l=setTimeout(()=>r(new Error("RSG member check timed out")),s);t.then(i=>{clearTimeout(l),d(i)},i=>{clearTimeout(l),r(i)})})}function ba(){const[t,s]=n.useState(!1),[d,r]=n.useState(null),[l,i]=n.useState(null),[u,g]=n.useState(!1),[N,m]=n.useState(null),[w,b]=n.useState(!1),[y,F]=n.useState(null),_=n.useRef(null),D=n.useRef(0),ne=n.useRef(0),A=n.useRef(!0),ve=Qt(),p=Bs[ve],[Z,ee]=n.useState(!1),[te,$]=n.useState(null),se=n.useCallback(async()=>{const v=await vt(_e);$(v?p.copied:p.copyFallback)},[p.copied,p.copyFallback]),h=n.useCallback(async()=>{$(null);const v=typeof navigator>"u"?null:navigator;if(typeof(v==null?void 0:v.share)=="function")try{await v.share({title:p.shareTitle,text:p.shareText,url:_e}),$(p.shared);return}catch(k){if((k==null?void 0:k.name)==="AbortError")return}await se()},[se,p.shareText,p.shareTitle,p.shared]),U=n.useCallback((v={})=>{const k=_.current;if(k)return k;const ae=Date.now();if(!v.force&&ae-ne.current<Xs)return Promise.resolve();ne.current=ae;const le=++D.current,Y=()=>A.current&&D.current===le,P=(async()=>{Y()&&b(!1);try{const G=await Fe(Promise.resolve(Ve.me()),ke);if(!Y())return;const z=typeof(G==null?void 0:G.email)=="string"?G.email.trim().toLowerCase():"";if(s(!0),r(z||null),i(null),g(!1),m(null),!z)return;const[V,Q]=await Promise.allSettled([Fe(Promise.resolve().then(()=>Jt.entity("Rider").filter({email:z})),ke),Fe(Promise.resolve().then(()=>ms({userId:G.id||null,email:z})),ke)]);if(!Y())return;let ie=!1;if(V.status==="fulfilled"){const B=Array.isArray(V.value)?V.value:[],M=B.length>0?B[0]:null;g(!!M),m(M)}else ie=!0,g(!1),m(null);if(Q.status==="fulfilled"){const B=Array.isArray(Q.value)?Q.value:[];i(B.length>0?B[0]:null)}else ie=!0,i(null);b(ie)}catch{if(!Y())return;s(!1),r(null),i(null),g(!1),m(null),b(!1)}})();return _.current=P,P.then(()=>{_.current===P&&(_.current=null)},()=>{_.current===P&&(_.current=null)}),P},[]);n.useEffect(()=>{A.current=!0,Zs(),U({force:!0}),us({page:"home"});const v=()=>{U()},k=()=>{document.visibilityState==="visible"&&U()};return window.addEventListener("focus",v),document.addEventListener("visibilitychange",k),()=>{A.current=!1,D.current+=1,_.current=null,window.removeEventListener("focus",v),document.removeEventListener("visibilitychange",k)}},[U]);const T=v=>{if(y){v.preventDefault();return}F("rider");try{sessionStorage.setItem("rsg_entry_intent","rider")}catch{}Ke({choice:"rider",source_page:"home"}),F(null)},j=v=>{if(y){v.preventDefault();return}F("driver");try{sessionStorage.setItem("rsg_entry_intent","driver")}catch{}Ke({choice:"driver",source_page:"home"}),F(null)},R=()=>{Ws(Hs("/home"))},L=async()=>{try{await Ve.logout()}finally{r(null),s(!1),i(null),g(!1),m(null),b(!1),window.location.reload()}};return t&&Ys(l)?e.jsx(He,{to:"/driver-hq",replace:!0}):t&&Qs(N)?e.jsx(He,{to:"/rider-home",replace:!0}):e.jsxs("div",{className:"min-h-screen w-full overflow-x-clip bg-white text-zinc-900 antialiased selection:bg-[#F45815] selection:text-white",children:[e.jsx(rs,{title:"RideShareGuides | RSG Driver-Owned Network",description:"RideShareGuides (RSG) is a driver-owned network for rideshare and delivery drivers, riders, and local businesses, with direct booking, community, and practical local tools.",url:"https://rideshareguides.com",image:Se,ogImageWidth:1024,ogImageHeight:1024,ogImageAlt:"RideShareGuides RSG official logo with shield, roadway, and RIDESHAREGUIDES wordmark",siteName:"RideShareGuides",ogType:"website",twitterCardType:"summary_large_image",structuredData:[{"@context":"https://schema.org","@type":"Organization","@id":"https://rideshareguides.com/#organization",name:"RideShareGuides",alternateName:"RSG",url:"https://rideshareguides.com",logo:Se,description:"A driver-owned network for rideshare and delivery drivers, riders, and local businesses, with direct booking, community, and practical local tools."},{"@context":"https://schema.org","@type":"WebSite","@id":"https://rideshareguides.com/#website",name:"RideShareGuides",alternateName:"RSG",url:"https://rideshareguides.com",description:"Ride
2ShareGuides is a driver-owned network for rideshare and delivery drivers, riders, and local businesses.",publisher:{"@id":"https://rideshareguides.com/#organization"}}]}),e.jsxs("div",{"aria-hidden":!0,className:"pointer-events-none fixed inset-0 z-0",children:[e.jsx("div",{className:"absolute inset-0 bg-white"}),e.jsx("div",{className:"absolute left-1/2 top-[-280px] h-[680px] w-[1200px] -translate-x-1/2 rounded-full bg-gradient-to-b from-[#FFF4E6] via-[#FFFAF0] to-transparent opacity-70 blur-[1px]"}),e.jsx("div",{className:"absolute bottom-[-240px] left-1/2 h-[560px] w-[1000px] -translate-x-1/2 rounded-full bg-gradient-to-t from-[#F3FFF6] to-transparent opacity-60"})]}),e.jsx("header",{className:"sticky top-0 z-[100] isolate w-full border-b border-zinc-100 bg-white/80 backdrop-blur-xl",children:e.jsxs("div",{className:"relative mx-auto flex h-[72px] max-w-[1280px] items-center justify-center px-3 sm:h-[80px] sm:px-6",children:[e.jsxs(E,{to:"/",className:"group flex min-w-0 max-w-[calc(100%_-_76px)] -translate-x-2 items-center gap-1 rounded-full px-1.5 py-1.5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#F45815]/30 focus-visible:ring-offset-2 focus-visible:ring-offset-white min-[480px]:translate-x-0 min-[480px]:gap-1.5 min-[480px]:px-2 sm:gap-2.5 sm:px-3","aria-label":"RideShareGuides Home",children:[e.jsx("img",{src:Xt,alt:"RideShareGuides official animated logo, open guide with celebrating drivers, RSG, and cars on the road",className:"block h-auto w-[48px] max-h-[25px] shrink-0 object-contain object-center min-[480px]:w-[72px] min-[480px]:max-h-[32px] sm:w-[108px] sm:max-h-[40px]",loading:"eager",decoding:"async",draggable:!1}),e.jsxs("span",{className:"flex min-w-0 items-baseline gap-0 whitespace-nowrap text-[13px] font-bold tracking-tight min-[480px]:text-[16px] sm:text-[20px]",children:[e.jsx("span",{className:"text-zinc-900",children:"RideShare"}),e.jsx("span",{className:"text-[#C77D28]",children:"Guides"}),e.jsx("span",{className:"ml-1.5 rounded-full border border-zinc-200 bg-zinc-50 px-1.5 py-0.5 text-[8px] font-bold uppercase tracking-[0.12em] text-zinc-600 max-[479px]:hidden min-[480px]:text-[9px] sm:ml-2 sm:px-2 sm:text-[10px]",children:"Est. 2016"})]})]}),e.jsx("div",{className:"absolute right-3 flex origin-right items-center pl-2 max-[400px]:scale-[0.85] sm:right-6",children:e.jsx(Zt,{})})]})}),e.jsxs(wt,{open:Z,onOpenChange:v=>{ee(v),v&&$(null)},children:[e.jsx("section",{"aria-label":p.openQr,className:"relative z-30 border-b border-zinc-100 bg-white/95 px-3 py-2 sm:px-6",children:e.jsxs("div",{className:"mx-auto flex min-h-[44px] w-full max-w-[1280px] items-center justify-between gap-3",children:[e.jsx("span",{className:"min-w-0 truncate text-[10px] font-semibold text-zinc-500 sm:text-[12px]",children:p.quickHint}),e.jsx(yt,{asChild:!0,children:e.jsxs("button",{type:"button","aria-label":p.openQr,className:"inline-flex min-h-[40px] shrink-0 items-center justify-center gap-2 rounded-full border border-[#F45815]/25 bg-[#FFF7F2] px-3.5 py-2 text-[12px] font-extrabold text-zinc-950 shadow-[0_2px_8px_rgba(0,0,0,0.04)] transition hover:-translate-y-0.5 hover:border-[#F45815]/60 hover:bg-[#FFF0E7] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#F45815]/50 focus-visible:ring-offset-2 focus-visible:ring-offset-white sm:px-4 sm:text-[13px]",children:[e.jsx(es,{className:"h-4 w-4 text-[#F45815]","aria-hidden":"true"}),e.jsx("span",{children:p.openQr}),e.jsx(We,{className:"h-3.5 w-3.5 text-zinc-500","aria-hidden":"true"})]})})]})}),e.jsxs(cs,{children:[e.jsx(ds,{className:"z-[110] bg-black/75"}),e.jsxs(xs,{className:"fixed left-[50%] top-[50%] z-[120] flex max-h-[calc(100dvh-1.25rem)] w-[calc(100vw-1.25rem)] max-w-[480px] -translate-x-1/2 -translate-y-1/2 flex-col gap-4 overflow-y-auto rounded-[26px] border border-zinc-200 bg-white p-5 text-zinc-950 shadow-[0_28px_90px_rgba(0,0,0,0.32)] outline-none duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 sm:rounded-[30px] sm:p-7",children:[e.jsxs("div",{className:"pr-8",children:[e.jsx("p",{className:"text-[9px] font-extrabold uppercase tracking-[0.18em] text-[#C7440C] sm:text-[10px]",children:"RSG · DRIVER NETWORK"}),e.jsx(jt,{className:"mt-2 text-left text-[22px] font-black leading-tight tracking-[-0.035em] text-zinc-950 sm:text-[26px]",children:p.dialogTitle}),e.jsx(Nt,{className:"mt-2 text-left text-[13px] leading-6 text-zinc-600",children:p.dialogDescription})]}),e.jsxs("div",{className:"flex flex-col items-center rounded-[22px] border border-zinc-200 bg-white px-4 pb-4 pt-5",children:[e.jsx(ts,{value:_e,size:216,ariaLabel:p.qrAlt,marker:"NETWORK"}),e.jsx("p",{className:"mt-3 text-center text-[11px] font-semibold text-zinc-600",children:p.scanHint})]}),e.jsxs("div",{className:"rounded-[16px] border border-zinc-200 bg-white p-3.5",children:[e.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-[0.1em] text-zinc-500",children:p.directLabel}),e.jsxs(E,{to:"/rsg-network",className:"mt-2 inline-flex min-h-[38px] items-center gap-2 rounded-lg px-1 text-[14px] font-extrabold text-zinc-950 underline decoration-[#F45815]/70 decoration-2 underline-offset-4 transition hover:text-[#C7440C] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#F45815]/50 focus-visible:ring-offset-2",children:[e.jsx("span",{children:"RSG Network"}),e.jsx(We,{className:"h-4 w-4 text-[#F45815]","aria-hidden":"true"})]})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-2.5",children:[e.jsxs("button",{type:"button",onClick:()=>void se(),className:"inline-flex min-h-[46px] items-center justify-center gap-2 rounded-full border border-zinc-300 bg-white px-3 py-2.5 text-[12px] font-bold text-zinc-800 transition hover:border-zinc-500 hover:bg-zinc-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#F45815]/50 focus-visible:ring-offset-2",children:[e.jsx(ss,{className:"h-4 w-4 text-[#F45815]","aria-hidden":"true"}),p.copyLabel]}),e.jsxs("button",{type:"button",onClick:()=>void h(),className:"inline-flex min-h-[46px] items-center justify-center gap-2 rounded-full bg-[#C7440C] px-3 py-2.5 text-[12px] font-bold text-white shadow-[0_6px_18px_rgba(199,68,12,0.22)] transition hover:-translate-y-0.5 hover:bg-[#A43B0A] hover:shadow-[0_8px_22px_rgba(199,68,12,0.28)] focu
2s-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#F45815] focus-visible:ring-offset-2 focus-visible:ring-offset-white",children:[e.jsx(Ft,{className:"h-4 w-4","aria-hidden":"true"}),p.shareLabel]})]}),te?e.jsx("p",{role:"status","aria-live":"polite","aria-atomic":"true",className:"-mt-1 text-center text-[11px] font-semibold text-zinc-600",children:te}):null,e.jsxs(ps,{className:"absolute right-3 top-3 inline-flex h-9 w-9 items-center justify-center rounded-full text-zinc-500 transition hover:bg-zinc-100 hover:text-zinc-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#F45815]/50 focus-visible:ring-offset-2 sm:right-4 sm:top-4",children:[e.jsx(bt,{className:"h-4 w-4","aria-hidden":"true"}),e.jsx("span",{className:"sr-only",children:p.close})]})]})]})]}),e.jsxs("main",{className:"home-mobile-content-clearance relative z-10 mx-auto flex w-full max-w-[1280px] flex-col px-4 pb-20 pt-10 sm:px-6 sm:pt-14 lg:px-8 lg:pb-24 lg:pt-16",children:[t&&w?e.jsxs("div",{className:"mx-auto mb-6 flex w-full max-w-[920px] flex-col gap-3 rounded-2xl border border-[#F45815]/20 bg-[#FFF9F2] px-4 py-3.5 text-left sm:flex-row sm:items-center sm:justify-between sm:gap-5 sm:px-5",role:"status","aria-live":"polite",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-bold text-zinc-900",children:"Your public RSG home is ready."}),e.jsx("p",{className:"mt-0.5 text-sm leading-5 text-zinc-600",children:"We could not confirm your member profile yet. You can keep browsing or try again."})]}),e.jsx("button",{type:"button",onClick:()=>void U({force:!0}),className:"inline-flex shrink-0 items-center justify-center self-start rounded-full bg-[#F45815] px-4 py-2 text-sm font-bold text-white transition hover:bg-[#D94B10] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#F45815]/40 focus-visible:ring-offset-2 sm:self-auto",children:"Try again"})]}):null,e.jsxs(C.div,{initial:{opacity:0,y:14},animate:{opacity:1,y:0},transition:{duration:.6,ease:[.25,.1,.25,1]},className:"mx-auto max-w-[720px] text-center",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-zinc-200 bg-white px-3.5 py-1.5 text-[10px] font-bold uppercase tracking-[0.16em] text-zinc-500 shadow-[0_2px_10px_rgba(0,0,0,0.03)]",children:[e.jsx("span",{className:"h-1.5 w-1.5 animate-pulse rounded-full bg-[#F45815]"})," Welcome to the driver-owned network"]}),e.jsxs("h1",{className:"mt-5 font-display text-[40px] font-black leading-[0.92] tracking-tight text-zinc-900 sm:text-[54px] lg:text-[60px]",style:{fontFamily:"'Poppins', Inter, system-ui, sans-serif"},children:["Let's get you to the",e.jsx("br",{}),e.jsx("span",{className:"text-[#C77D28]",children:"right place."})]}),e.jsx("p",{className:"mx-auto mt-4 max-w-[46ch] text-[18px] font-semibold leading-[1.35] text-zinc-900 sm:text-[19px]",children:"Build more income, find trusted local service, and grow with RSG."}),e.jsx("p",{className:"mx-auto mt-2.5 max-w-[42ch] text-[15px] leading-[1.5] text-zinc-600 sm:text-[16px]",children:"Start with the path that fits you: driver, rider, or local business owner."})]}),e.jsxs("div",{className:"mt-6 grid gap-4 lg:hidden",children:[e.jsx(xt,{image:ot,loading:y==="driver",onClick:j}),e.jsx(pt,{image:ct,loading:y==="rider",onClick:T}),e.jsx(ut,{image:dt})]}),e.jsx("div",{className:"mt-10 hidden lg:block",children:e.jsxs("div",{className:"grid grid-cols-2 items-stretch gap-5 xl:gap-6",children:[e.jsx(C.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{delay:.12,duration:.55,ease:[.25,.1,.25,1]},className:"flex min-w-0",children:e.jsx(xt,{image:ot,loading:y==="driver",onClick:j,desktop:!0})}),e.jsx(C.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{delay:.18,duration:.55,ease:[.25,.1,.25,1]},className:"flex min-w-0",children:e.jsx(pt,{image:ct,loading:y==="rider",onClick:T,desktop:!0})}),e.jsx(C.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{delay:.24,duration:.55,ease:[.25,.1,.25,1]},className:"flex min-w-0 lg:col-span-2",children:e.jsx(ut,{image:dt,desktop:!0})})]})}),e.jsxs(C.section,{initial:{opacity:0,y:14}
2,animate:{opacity:1,y:0},transition:{delay:.16,duration:.55,ease:[.25,.1,.25,1]},"aria-labelledby":"free-driver-cta-title",className:"relative mx-auto mt-7 w-full max-w-[1040px] overflow-hidden rounded-[28px] border border-zinc-900 bg-zinc-900 px-5 py-5 text-left shadow-[0_18px_50px_rgba(24,24,23,0.16)] sm:mt-8 sm:px-8 sm:py-7 lg:px-10 lg:py-8",children:[e.jsx("div",{"aria-hidden":"true",className:"pointer-events-none absolute -right-20 -top-28 h-64 w-64 rounded-full bg-[#F45815]/20 blur-3xl"}),e.jsx("div",{"aria-hidden":"true",className:"pointer-events-none absolute bottom-0 left-0 top-0 w-1 bg-[#F45815]"}),e.jsxs("div",{className:"relative flex flex-col gap-6 lg:flex-row lg:items-center lg:justify-between lg:gap-10",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"inline-flex rounded-full border border-[#FF9A63]/30 bg-[#F45815]/[0.15] px-3 py-1 text-[10px] font-extrabold uppercase tracking-[0.16em] text-[#FFB083]",children:"Free driver start"}),e.jsx("h2",{id:"free-driver-cta-title",className:"mt-3 max-w-[22ch] text-[25px] font-black leading-[1.02] tracking-tight text-white sm:text-[32px]",children:"Drivers, apply for your free DON Card."}),e.jsx("p",{className:"mt-3 max-w-[62ch] text-[14px] leading-[1.55] text-zinc-300 sm:text-[15px]",children:"Begin with free RSG membership, a Driver ID, and a shareable DON Card with QR profile. Apply through the driver membership path first, then explore the tools and services that fit your work."}),e.jsxs("div",{className:"mt-4 flex flex-wrap gap-2","aria-label":"Free driver benefits",children:[e.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full border border-white/10 bg-white/[0.07] px-2.5 py-1.5 text-[11px] font-bold text-zinc-200",children:[e.jsx(q,{"aria-hidden":"true",className:"h-3.5 w-3.5 text-[#FF9A63]"})," Free membership"]}),e.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full border border-white/10 bg-white/[0.07] px-2.5 py-1.5 text-[11px] font-bold text-zinc-200",children:[e.jsx(q,{"aria-hidden":"true",className:"h-3.5 w-3.5 text-[#FF9A63]"})," Driver ID"]}),e.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full border border-white/10 bg-white/[0.07] px-2.5 py-1.5 text-[11px] font-bold text-zinc-200",children:[e.jsx(q,{"aria-hidden":"true",className:"h-3.5 w-3.5 text-[#FF9A63]"})," DON Card + QR profile"]})]}),e.jsxs("div",{className:"mt-5 border-t border-white/10 pt-4",children:[e.jsx("p",{className:"text-[10px] font-extrabold uppercase tracking-[0.16em] text-[#FFB083]",children:"What happens after you start"}),e.jsxs("ol",{className:"mt-3 grid gap-2.5 sm:grid-cols-3","aria-label":"Your next three steps after starting free driver membership",children:[e.jsxs("li",{className:"flex items-start gap-2.5",children:[e.jsx("span",{"aria-hidden":"true",className:"flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-[#F45815] text-[11px] font-black text-white",children:"1"}),e.jsxs("span",{className:"min-w-0",children:[e.jsx("span",{className:"block text-[11px] font-bold leading-snug text-white",children:"Complete your driver identity"}),e.jsx("span",{className:"mt-0.5 block text-[11px] leading-snug text-zinc-400",children:"Apply with the details that make your profile yours."})]})]}),e.jsxs("li",{className:"flex items-start gap-2.5",children:[e.jsx("span",{"aria-hidden":"true",className:"flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-[#F45815] text-[11px] font-black text-white",children:"2"}),e.jsxs("span",{className:"min-w-0",children:[e.jsx("span",{className:"block text-[11px] font-bold leading-snug text-white",children:"Use your free card and QR profile"}),e.jsx("span",{className:"mt-0.5 block text-[11px] leading-snug text-zinc-400",children:"After review and onboarding, share your RSG identity."})]})]}),e.jsxs("li",{className:"flex items-start gap-2.5",children:[e.jsx("span",{"aria-hidden":"true",className:"flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-[#F45815] text-[11px] font-black text-white",children:"3"}),e.jsxs("span",{className:"min-w-0",children:[e.jsx("span",{className:"block text-[11px] font-bold leading-snug text-white",children:"Choose your next path"}),e.jsx("span",{className:"mt-0.5 block text-[11px] leading-snug text-zinc-400",children:"Explore community or available earning paths."})]})]})]})]})]}),e.jsxs("div",{className:"flex shrink-0 flex-col items-stretch gap-2 lg:items-end",children:[e.jsxs(E,{to:"/driver-membership",onClick:j,"aria-label":"Apply for your free DON Card",className:"group inline-flex min-h-[50px] w-full items-center justify-center gap-2 rounded-full bg-[#F45815] px-5 text-center text-[13px] font-extrabold text-white shadow-[0_10px_24px_rgba(244,88,21,0.3)] outline-none transition hover:-translate-y-0.5 hover:bg-[#
2E94E0E] hover:shadow-[0_14px_30px_rgba(244,88,21,0.4)] focus-visible:ring-2 focus-visible:ring-[#FF9A63] focus-visible:ring-offset-2 focus-visible:ring-offset-zinc-900 active:translate-y-0 sm:w-auto sm:px-6 sm:text-[14px]",children:["Apply for your free DON Card",e.jsx(S,{"aria-hidden":"true",className:"h-4 w-4 transition-transform duration-200 group-hover:translate-x-0.5"})]}),e.jsx("p",{className:"text-center text-[11px] font-medium text-zinc-400 lg:text-right",children:"Rider and Business Owner options are above."})]})]})]}),e.jsx("div",{className:"mt-6 lg:hidden",children:e.jsx(ht,{})}),e.jsx(C.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{delay:.3,duration:.55,ease:[.25,.1,.25,1]},className:"mt-5 hidden lg:block xl:mt-6",children:e.jsx(ht,{desktop:!0})}),e.jsx("div",{className:"mt-7 sm:mt-9",children:e.jsx(Es,{})}),e.jsx(Ts,{}),e.jsx("div",{className:"mt-7 sm:mt-9",children:e.jsx(Fs,{artworkUrl:Ms,audioUrl:gt})}),e.jsxs(C.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.36,duration:.45},className:"mx-auto mt-10 flex max-w-[720px] flex-col items-center gap-5 sm:mt-12",children:[e.jsx("div",{className:"h-px w-full max-w-[520px] bg-gradient-to-r from-transparent via-zinc-200 to-transparent"}),e.jsxs("p",{className:"text-center text-[15px] font-medium text-zinc-600",children:["Already have an account?"," ",e.jsx("button",{onClick:R,className:"font-bold text-[#C77D28] underline decoration-2 underline-offset-4 transition hover:text-[#A86822] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C77D28]/30 focus-visible:ring-offset-2 focus-visible:ring-offset-white",children:"Sign in"}),e.jsx("span",{className:"mx-2 text-zinc-300",children:"â¢"}),e.jsx("span",{className:"text-zinc-500",children:t?l?"Driver profile linked":u?"Rider profile active":"Session active":"Secure RSG entry"})]}),e.jsxs("div",{className:"flex w-full flex-wrap items-center justify-center gap-2",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-zinc-200 bg-white px-5 py-2.5 text-[13px] font-semibold tracking-tight text-zinc-900 shadow-[0_2px_12px_rgba(0,0,0,0.04)]",children:[e.jsx("span",{className:"h-2 w-2 rounded-full bg-emerald-500"}),"rideshareguides.com",e.jsx("span",{className:"text-zinc-400",children:"·"}),e.jsx("span",{className:"font-medium text-zinc-500",children:"Est. 2016"})]}),e.jsx(zs,{})]}),e.jsx("p",{className:"max-w-[54ch] text-center text-[11px] leading-relaxed text-zinc-400",children:"A driver-owned network connecting local drivers, riders, and business owners across South Florida."})]}),e.jsx("div",{className:"mt-10 sm:mt-12",children:e.jsx(ks,{})})]}),e.jsx(as,{accountEmail:d,isAuthenticated:t,onLogout:L,variant:"minimal"}),e.jsx("style",{children:` 3 @media (prefers-reduced-motion: reduce) { 4 *, *::before, *::after { 5 animation-duration: 0.01ms !important; 6 transition-duration: 0.01ms !important; 7 } 8 } 9 `})]})}function xt({image:t,onClick:s,loading:d,desktop:r}){return e.jsx(E,{to:"/driver-membership","aria-label":"Continue as Driver, start with free membership and grow your business",onClick:s,className:`group relative flex w-full cursor-pointer flex-col overflow-hidden rounded-[28px] border border-[#F0E6D6] bg-[#FFFBF0] shadow-[0_2px_20px_rgba(199,125,40,0.08)] outline-none transition-all duration-300 hover:-translate-y-[2px] hover:shadow-[0_12px_36px_rgba(199,125,40,0.16)] focus-visible:ring-2 focus-visible:ring-[#C77D28] focus-visible:ring-offset-2 focus-visible:ring-offset-white ${r?"min-h-[520px]":"min-h-[480px]"}`,children:e.jsxs("div",{className:"relative flex flex-1 flex-col p-5 sm:p-6",children:[e.jsxs("div",{className:"relative w-full shrink-0 overflow-hidden rounded-[20px] bg-[#FFF1D9]",children:[e.jsx("div",{className:"aspect-[4/3] w-full overflow-hidden",children:e.jsx("img",{src:t,alt:"Illustration of a white sedan in front of an orange city skyline",className:"h-full w-full object-cover object-center transition duration-700 group-hover:scale-[1.03]",loading:"eager",draggable:!1})}),e.jsx("div",{className:"pointer-events-none absolute inset-0 rounded-[20px] ring-1 ring-inset ring-black/[0.04]"})]}),e.jsxs("div",{className:"mt-5 flex flex-1 flex-col",children:[e.jsx("h2",{className:"text-[28px] font-extrabold leading-none tracking-tight text-[#C77D28] sm:text-[30px]",children:"I'm a Driver"}),e.jsx("p",{className:"mt-2 text-[16px] font-medium leading-[1.3] text-zinc-700",children:"Start with your free Driver Card and build your client base."}),e.jsx("ul",{className:"mt-5 grid gap-2.5",children:["Free digital business card","Keep 100% of fares","Bu
9ild your own client base","Member's Rewards Program"].map(l=>e.jsxs("li",{className:"flex items-start gap-2.5",children:[e.jsx("span",{className:"mt-[1px] flex h-[22px] w-[22px] shrink-0 items-center justify-center rounded-full bg-[#C77D28] text-white shadow-sm",children:e.jsx(q,{className:"h-3.5 w-3.5 stroke-[3.5]"})}),e.jsx("span",{className:"text-[14px] font-medium leading-[1.3] text-zinc-800",children:l})]},l))}),e.jsxs("div",{className:"mt-auto flex items-center justify-between pt-6",children:[e.jsx("span",{className:"text-[11px] font-bold uppercase tracking-[0.14em] text-[#C77D28]/70",children:"Get your free Driver Card"}),e.jsx("span",{className:"inline-flex h-12 w-12 items-center justify-center rounded-full bg-gradient-to-br from-[#E89A3A] to-[#C77D28] text-white shadow-[0_8px_20px_rgba(199,125,40,0.35)] transition-all duration-300 group-hover:translate-x-[2px] group-hover:shadow-[0_10px_24px_rgba(199,125,40,0.45)] group-active:scale-[0.97]",children:d?e.jsx(W,{className:"h-5 w-5 animate-spin"}):e.jsx(S,{className:"h-5 w-5 stroke-[2.6]"})})]})]})]})})}function pt({image:t,onClick:s,loading:d,desktop:r}){return e.jsx(E,{to:"/rider-benefits","aria-label":"Continue as Rider, trusted drivers at fair prices",onClick:s,className:`group relative flex w-full cursor-pointer flex-col overflow-hidden rounded-[28px] border border-[#DCEFE2] bg-[#F2FBF4] shadow-[0_2px_20px_rgba(61,154,95,0.08)] outline-none transition-all duration-300 hover:-translate-y-[2px] hover:shadow-[0_12px_36px_rgba(61,154,95,0.16)] focus-visible:ring-2 focus-visible:ring-[#3D9A5F] focus-visible:ring-offset-2 focus-visible:ring-offset-white ${r?"min-h-[520px]":"min-h-[480px]"}`,children:e.jsxs("div",{className:"relative flex flex-1 flex-col p-5 sm:p-6",children:[e.jsx("div",{className:"relative w-full shrink-0 overflow-hidden rounded-[20px] bg-[#DDF2E2]",children:e.jsx("div",{className:"aspect-[4/3] w-full overflow-hidden",children:e.jsx("img",{src:t,alt:"Illustration of a woman in a park looking at her phone with a green city skyline",className:"h-full w-full object-cover object-center transition duration-700 group-hover:scale-[1.03]",loading:"eager",draggable:!1})})}),e.jsxs("div",{className:"mt-5 flex flex-1 flex-col",children:[e.jsx("h2",{className:"text-[28px] font-extrabold leading-none tracking-tight text-[#3D9A5F] sm:text-[30px]",children:"I'm a Rider"}),e.jsx("p",{className:"mt-2 text-[16px] font-medium leading-[1.3] text-zinc-700",children:"Join free to explore trusted local rides and rider benefits."}),e.jsx("ul",{className:"mt-5 grid gap-2.5",children:["No surge pricing ever","Save favourite drivers","Book directly, pay less","Local Business Directory & Reviews"].map(l=>e.jsxs("li",{className:"flex items-start gap-2.5",children:[e.jsx("span",{className:"mt-[1px] flex h-[22px] w-[22px] shrink-0 items-center justify-center rounded-full bg-[#3D9A5F] text-white shadow-sm",children:e.jsx(q,{className:"h-3.5 w-3.5 stroke-[3.5]"})}),e.jsx("span",{className:"text-[14px] font-medium leading-[1.3] text-zinc-800",children:l})]},l))}),e.jsxs("div",{className:"mt-auto flex items-center justify-between pt-6",children:[e.jsx("span",{className:"text-[11px] font-bold uppercase tracking-[0.14em] text-[#3D9A5F]/70",children:"Explore Rider Benefits"}),e.jsx("span",{className:"inline-flex h-12 w-12 items-center justify-center rounded-full bg-gradient-to-br from-[#5EBF80] to-[#3D9A5F] text-white shadow-[0_8px_20px_rgba(61,154,95,0.35)] transition-all duration-300 group-hover:translate-x-[2px] group-hover:shadow-[0_10px_24px_rgba(61,154,95,0.45)] group-active:scale-[0.97]",children:d?e.jsx(W,{className:"h-5 w-5 animate-spin"}):e.jsx(S,{className:"h-5 w-5 stroke-[2.6]"})})]})]})]})})}function ut({image:t,desktop:s}){return e.jsxs(E,{to:"/get-listed?owner=professional","aria-label":"Start a professional Free Verified listing with RSG",className:`group relative flex w-full overflow-hidden rounded-[28px] border border-[#F45815]/20 bg-white text-left shadow-[0_8px_28px_rgba(244,88,21,0.08)] outline-none transition-all duration-300 hover:-translate-y-[2px] hover:border-[#F45815]/40 hover:shadow-[0_16px_38px_rgba(244,88,21,0.16)] focus-visible:ring-2 focus-visible:ring-[#F45815] focus-visible:ring-offset-2 ${s?"min-h-[220px] flex-row":"flex-col"}`,children:[e.jsxs("div",{className:`relative overflow-hidden bg-[#FFF4E8] ${s?"h-auto w-[34%] min-w-[250px]":"h-[190px] w-full sm:h-[220px]"}`,children:[e.jsx("img",{src:t,alt:"Illustration of a local business owner welcoming customers",className:"h-full w-full object-cover object-center transition duration-700 group-hover:scale-[1.04]",loading:"lazy",draggable:!1}),e.jsx("div",{className:"pointer-events-none absolute inset-0 bg-gradient-to-r from-transparent to-[#FFF4E8]/35"})]}),e.jsxs("div",{className:`flex min-w-0 flex-1 flex-col justify-center ${s?"p-
97 lg:p-8":"p-5 sm:p-6"}`,children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-[#FFF1E8] px-2.5 py-1 text-[10px] font-black uppercase tracking-[0.14em] text-[#A83E10]",children:[e.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-[#F45815]"})," RSG Business Portal"]}),e.jsx("span",{className:"text-[10px] font-bold uppercase tracking-[0.14em] text-zinc-400",children:"New path"})]}),e.jsx("h2",{className:"mt-3 text-[30px] font-black leading-none tracking-tight text-[#C85B1B] sm:text-[34px]",children:"RSG Business Portal"}),e.jsx("p",{className:"mt-2 max-w-[54ch] text-[15px] font-semibold leading-[1.4] text-zinc-800",children:"Organize services, appointment paths, and customer next steps, with a Free Verified RSG listing as your starting point."}),e.jsxs("div",{className:"mt-4 flex flex-wrap items-center gap-x-5 gap-y-2 text-[12px] font-medium text-zinc-600",children:[e.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[e.jsx(q,{className:"h-3.5 w-3.5 text-[#F45815]"})," Services and pricing"]}),e.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[e.jsx(q,{className:"h-3.5 w-3.5 text-[#F45815]"})," Appointments and booking"]}),e.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[e.jsx(q,{className:"h-3.5 w-3.5 text-[#F45815]"})," Free Verified path"]})]}),e.jsxs("span",{className:"mt-5 inline-flex w-fit items-center gap-2 rounded-full bg-[#F45815] px-5 py-2.5 text-[13px] font-bold text-white shadow-[0_8px_18px_rgba(244,88,21,0.22)] transition group-hover:bg-[#E04E12]",children:["Start with Free Verified ",e.jsx(S,{className:"h-4 w-4 transition group-hover:translate-x-0.5"})]})]})]})}function mt({video:t,poster:s,alt:d,className:r,posterClassName:l,videoClassName:i,overlayClassName:u}){const g=re(),N=n.useRef(null),m=t.src,w=!!(m&&t.status==="ready"&&g!==!0);return n.useEffect(()=>{if(!w)return;const b=N.current;if(!b)return;const y=()=>{b.src||!b.dataset.src||(b.src=b.dataset.src,b.load())};if(!("IntersectionObserver"in window)){y();return}const F=new IntersectionObserver(([_])=>{_!=null&&_.isIntersecting&&(y(),F.disconnect())},{rootMargin:"240px 0px"});return F.observe(b),()=>F.disconnect()},[w,m]),e.jsxs("div",{className:`relative ${r||""}`,children:[e.jsx("img",{src:s,alt:d,className:`absolute inset-0 h-full w-full object-cover object-center transition duration-700 ${l||""}`,loading:"lazy",draggable:!1}),w&&e.jsx("video",{ref:N,"data-rsg-home-video":!0,"data-src":m||"",poster:s,muted:!0,loop:!0,playsInline:!0,autoPlay:!0,preload:"none","aria-hidden":"true",tabIndex:-1,onLoadedData:b=>{b.currentTarget.play().catch(()=>{b.currentTarget.style.display="none"})},onError:b=>{b.currentTarget.style.display="none"},className:`absolute inset-0 h-full w-full scale-[1.02] object-cover object-center blur-[1.5px] transition-[transform,filter,opacity] duration-700 ${i||""}`}),e.jsx("div",{className:`pointer-events-none absolute inset-0 ${u}`})]})}function ht({desktop:t}){const s=t?"don-app-title-desktop":"don-app-title-mobile";return e.jsxs("section",{"aria-labelledby":s,className:`relative flex w-full flex-col overflow-hidden rounded-[28px] border border-[#E8DEC9] bg-white shadow-[0_10px_30px_rgba(38,34,26,0.08)] ${t?"min-h-[520px]":"min-h-[480px]"}`,children:[e.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 top-0 h-32 bg-gradient-to-br from-[#FFF8E8] via-white to-transparent"}),e.jsxs("div",{className:"relative flex flex-1 flex-col p-4 sm:p-5",children:[e.jsxs("div",{className:"flex items-start justify-between gap-3 border-b border-[#EEE7D9] pb-4",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsxs("p",{className:"inline-flex items-center gap-1.5 rounded-full bg-[#FBF5E7] px-2.5 py-1 text-[10px] font-black uppercase tracking-[0.16em] text-[#8A6813]",children:[e.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-[#D4AF37]"})," BRING DON TO YOUR CITY"]}),e.jsx("span",{className:"text-[9px] font-bold uppercase tracking-[0.14em] text-zinc-400",children:"Pre-launch city list"})]}),e.jsx("h3",{id:s,className:"mt-3 text-[20px] font-black leading-[1.05] tracking-tight text-zinc-950 sm:text-[22px]",children:"Bring DON to your city."}),e.jsxs("p",{className:"mt-2 max-w-[58ch] text-[12px] font-medium leading-[1.5] text-zinc-600",children:[e.jsx("span",{className:"font-bold text-zinc-900",children:"One app for rides and delivery when your city opens."})," The DON app shares launch updates and city news while both services build toward each market's minimum driver target. Join the city list for the service you want to bring home."]})]}),e.jsx("img",{src:bs(240,82),alt:gs,className:"h-12 w-12 shrink-0 rounded-[15p
9x] border border-[#D4AF37]/40 object-cover shadow-[0_6px_16px_rgba(0,0,0,0.12)] sm:h-14 sm:w-14",loading:"eager",decoding:"async",draggable:!1})]}),e.jsxs("div",{className:"mt-4 flex items-end justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-[11px] font-black uppercase tracking-[0.16em] text-zinc-900",children:"Choose your city list"}),e.jsx("p",{className:"mt-1 text-[11px] leading-[1.4] text-zinc-500",children:"Join the list for the service you want to help open locally."})]}),e.jsx("span",{className:"shrink-0 rounded-full border border-[#D4AF37]/35 bg-[#FFF9EC] px-2.5 py-1 text-[9px] font-black uppercase tracking-[0.12em] text-[#8A6813]",children:"Pre-launch in every city"})]}),e.jsxs("div",{className:"mt-3 grid flex-1 gap-3 lg:grid-cols-2",children:[e.jsxs(E,{to:"/recruit?product=reservations","aria-label":"Book The DON, join the city launch list",className:`group/don relative order-2 flex flex-col overflow-hidden rounded-[18px] border border-[#D4AF37]/40 bg-black text-left shadow-[0_8px_20px_rgba(0,0,0,0.18)] transition-all duration-300 hover:-translate-y-[1px] hover:border-[#D4AF37] hover:shadow-[0_12px_28px_rgba(0,0,0,0.24)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#D4AF37] focus-visible:ring-offset-2 ${t?"lg:order-1":""}`,children:[e.jsxs("div",{className:`relative w-full overflow-hidden bg-[#0B0B0B] ${t?"h-[100px]":"h-[118px] sm:h-[132px]"}`,children:[e.jsx(mt,{video:zt,poster:qs,alt:"Book The DON thumbnail",className:"h-full w-full",posterClassName:"opacity-90 group-hover/don:scale-[1.04]",videoClassName:"opacity-[0.86] group-hover/don:scale-[1.06]",overlayClassName:"bg-gradient-to-t from-black via-black/40 to-transparent"}),e.jsx("span",{className:"absolute bottom-2.5 left-3 inline-flex rounded-full bg-[#D4AF37] px-2 py-1 text-[9px] font-black tracking-[0.12em] text-black",children:"DIRECT RIDES"}),e.jsx("span",{className:"absolute right-3 top-2.5 inline-flex h-8 w-8 items-center justify-center rounded-full bg-white/10 text-white backdrop-blur transition group-hover/don:bg-white group-hover/don:text-black",children:e.jsx(S,{className:"h-3.5 w-3.5"})})]}),e.jsxs("div",{className:`flex flex-1 flex-col ${t?"px-3.5 py-3":"px-4 py-4"}`,children:[e.jsxs("p",{className:"flex items-center gap-1.5 text-[15px] font-bold leading-none tracking-tight text-white sm:text-[16px]",children:["Book ",e.jsx("span",{className:"text-[#D4AF37]",children:"The DON"}),e.jsx("span",{className:"ml-1 rounded-full bg-white/10 px-1.5 py-0.5 text-[8px] font-bold uppercase tracking-widest text-white/70",children:"City list"})]}),e.jsx("p",{className:"mt-1.5 text-[11px] leading-[1.4] text-zinc-300",children:"Book The DON is not launched yet in any city. Join the city list to help your market reach its opening target."}),e.jsx(Ye,{variant:"reservations",compact:!0,className:"mt-3"}),e.jsxs("span",{className:"mt-3 inline-flex w-fit items-center gap-2 rounded-full bg-[#D4AF37] px-3 py-2 text-[10px] font-black uppercase tracking-[0.1em] text-black transition group-hover/don:bg-[#E7C95C]",children:["Join the city list ",e.jsx(S,{className:"h-3.5 w-3.5"})]})]})]}),e.jsxs(E,{to:"/recruit?product=delivery","aria-label":"DON Delivery, join the city launch list",className:`group/del relative order-1 flex flex-col overflow-hidden rounded-[18px] border border-[#D4AF37]/30 bg-[#0E4B3A] text-left shadow-[0_8px_20px_rgba(14,75,58,0.18)] transition-all duration-300 hover:-translate-y-[1px] hover:border-[#D4AF37]/60 hover:shadow-[0_12px_28px_rgba(14,75,58,0.24)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#0E4B3A] focus-visible:ring-offset-2 ${t?"lg:order-2":""}`,children:[e.jsxs("div",{className:`relative w-full overflow-hidden bg-[#0C3E31] ${t?"h-[100px]":"h-[118px] sm:h-[132px]"}`,children:[e.jsx(mt,{video:Ct,poster:$s,alt:"DON Delivery thumbnail",className:"h-full w-full",posterClassName:"opacity-[0.88] group-hover/del:scale-[1.04]",videoClassName:"opacity-[0.84] group-hover/del:scale-[1.06]",overlayClassName:"bg-gradient-to-t from-[#0E4B3A] via-[#0E4B3A]/30 to-transparent"}),e.jsx("span",{className:"absolute bottom-2.5 left-3 inline-flex rounded-full bg-white px-2 py-1 text-[9px] font-black tracking-[0.12em] text-[#0E4B3A]",children:"FOOD + PARCEL"}),e.jsx("span",{className:"absolute right-3 top-2.5 inline-flex h-8 w-8 items-center justify-center rounded-full bg-[#D4AF37]/20 text-[#F4E3A1] backdrop-blur transition group-hover/del:bg-white group-hover/del:text-[#0E4B3A]",children:e.jsx(S,{className:"h-3.5 w-3.5"})})]}),e.jsxs("div",{className:`flex flex-1 flex-col ${t?"px-3.5 py-3":"px-4 py-4"}`,children:[e.jsxs("p",{className:"flex items-center gap-1.5 text-[15px] font-bold leading-none tracking-tight text-white sm:text-[16
9px]",children:["DON ",e.jsx("span",{className:"text-[#D4AF37]",children:"Delivery"}),e.jsx("span",{className:"ml-1 rounded-full border border-[#D4AF37]/30 bg-[#D4AF37]/15 px-1.5 py-0.5 text-[8px] font-bold uppercase tracking-widest text-[#F4E3A1]",children:"City list"})]}),e.jsx("p",{className:"mt-1.5 text-[11px] leading-[1.4] text-[#CBE9DD]",children:"DON Delivery is not launched yet in any city. Join the city list to help your market reach its opening target."}),e.jsx(Ye,{variant:"delivery",compact:!0,className:"mt-3"}),e.jsxs("span",{className:"mt-3 inline-flex w-fit items-center gap-2 rounded-full bg-[#D4AF37] px-3 py-2 text-[10px] font-black uppercase tracking-[0.1em] text-black transition group-hover/del:bg-[#E7C95C]",children:["Join the city list ",e.jsx(S,{className:"h-3.5 w-3.5"})]})]})]})]}),e.jsxs("div",{className:"mt-4 rounded-[18px] border border-zinc-200 bg-[#FFFCF5] px-3.5 py-3.5 shadow-[0_6px_16px_rgba(38,34,26,0.05)] sm:px-4",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsx("p",{className:"text-[10px] font-black uppercase tracking-[0.16em] text-zinc-600",children:"Get updates in the app"}),e.jsx("span",{className:"shrink-0 rounded-full border border-zinc-200 bg-white px-2 py-1 text-[8px] font-bold uppercase tracking-[0.12em] text-zinc-400",children:"Optional"})]}),e.jsxs("p",{className:"mt-1 text-[11px] leading-[1.45] text-zinc-600",children:["Download ",e.jsx("span",{className:"font-bold text-zinc-900",children:"The DON app"})," for city updates and launch news. Join the Book The DON or DON Delivery city list above when you are ready to help your market open."]}),e.jsx(hs,{appStoreUrl:Us,googlePlayUrl:Vs,className:"mt-3 rounded-[12px] bg-zinc-950 px-3 py-2 opacity-90"})]})]})]})}export{ba 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.