1import{r as g,j as e}from"./react-vendor-B97MRIMr.js";import{z as v,u as f,a8 as h,B as b,A as p,X as y}from"./index-BaGf_puf.js";const t={driver:"/onboarding/driver",restaurant:"/onboarding/restaurant",grocery:"/onboarding/grocery",taxi_fleet:"/onboarding/taxi-fleet",delivery:"/onboarding/delivery"},N={driver:"driver",restaurant:"restaurant",grocery:"grocery shop",taxi_fleet:"taxi fleet",delivery:"delivery"};function _(){var a;const{user:s}=v(),o=f(),[d,c]=g.useState(!1),r=(()=>{var n;const i=((s==null?void 0:s.role)||((n=s==null?void 0:s.data)==null?void 0:n.role)||"").toLowerCase();if(t[i])return i;try{const l=(localStorage.getItem("zipgy_signup_role")||"").toLowerCase();return t[l]?l:null}catch{return null}})(),u=!!(s!=null&&s.business_id||(a=s==null?void 0:s.data)!=null&&a.business_id);if(!s||d||!r||u)return null;const m=t[r],x=N[r]||"business";return e.jsxs("div",{className:"relative z-30 bg-emerald-50 border-b border-emerald-200 px-4 py-3 flex items-center justify-between gap-4",children:[e.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[e.jsx(h,{className:"w-5 h-5 text-emerald-600 flex-shrink-0"}),e.jsxs("div",{className:"min-w-0",children:[e.jsxs("p",{className:"text-sm font-semibold text-emerald-900",children:["Complete your ",x," info to get verified"]}),e.jsx("p",{className:"text-xs text-emerald-700 truncate",children:"Finish setting up your business so you can start receiving orders."})]})]}),e.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[e.jsxs(b,{size:"sm",onClick:()=>o(m),className:"text-xs bg-emerald-600 hover:bg-emerald-700 text-white gap-1",children:["Complete Now ",e.jsx(p,{className:"w-3.5 h-3.5"})]}),e.jsx("button",{onClick:()=>c(!0),className:"p-1 hover:bg-emerald-100 rounded-full transition-colors",children:e.jsx(y,{className:"w-4 h-4 text-emerald-600"})})]})]})}export{_ as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.