1import{u,a4 as l,g as p,r as c,j as i,aW as d}from"./index-C1FqYwmw.js";function m(){const[,r]=u(),{user:s,isLoading:t}=l(),{data:e,isLoading:a,error:o}=p({queryKey:["/api/supplier/my-profile"],enabled:!t&&!!s});return c.useEffect(()=>{var n;if(!(t||a)){if(!s){r("/login");return}if(o){r("/supplier-profile-wizard");return}e!=null&&e.exists&&((n=e.profile)!=null&&n.id)?r(`/supplier/${e.profile.id}`):r("/supplier-profile-wizard")}},[e,a,t,s,o,r]),i.jsx("div",{className:"flex items-center justify-center min-h-screen",children:i.jsxs("div",{className:"text-center",children:[i.jsx(d,{className:"h-8 w-8 animate-spin mx-auto mb-4 text-primary"}),i.jsx("p",{className:"text-muted-foreground",children:"Loading your supplier profile..."})]})})}export{m 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.