import{j as e}from"./ui-vendor-DUfjpZ4p.js";import{e as d,L as i}from"./react-vendor-DlVMRrtE.js";import{u as m,H as x,C as a,d as n,q as p,B as l,A as c,S as h,s as u}from"./index-BKwmLAPt.js";import"./charts-vendor-wgDUSDZK.js";import"./supabase-vendor-Bd7R0Yn5.js";const b=()=>{const r=d(),{user:s}=m(),t=async o=>{if(!s){r(`/portal/login?redirect=${encodeURIComponent("/portal/importer-network/join")}`);return}await u.from("importer_network_roles").insert({user_id:s.id,role:o}).select(),r(o==="importer"?"/portal/importer-network/register":"/portal/importer-network/directory")};return e.jsxs("div",{className:"max-w-5xl mx-auto space-y-8 py-6",children:[e.jsxs("div",{className:"text-center space-y-3",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-accent/10 text-accent text-xs font-body",children:[e.jsx(x,{className:"h-3.5 w-3.5"})," ABTC Verified Importer Network"]}),e.jsx("h1",{className:"font-heading text-4xl font-bold text-foreground",children:"Join the Network"}),e.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto font-body",children:"Choose how you'd like to participate. Importers register their business for verification; suppliers subscribe to discover and vet verified importers."})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.jsx(a,{className:"border-2 hover:border-accent transition-colors",children:e.jsxs(n,{className:"p-8 space-y-4",children:[e.jsx("div",{className:"h-12 w-12 rounded-lg bg-primary/10 text-primary flex items-center justify-center",children:e.jsx(p,{className:"h-6 w-6"})}),e.jsx("h2",{className:"font-heading text-2xl font-bold",children:"Register as an Importer"}),e.jsx("p",{className:"text-muted-foreground font-body text-sm",children:"Get your company verified and listed in our trusted importer directory. Build credibility with international suppliers."}),e.jsxs("ul",{className:"text-sm text-foreground/80 font-body space-y-1.5",children:[e.jsx("li",{children:"• Trust score & verification badges"}),e.jsx("li",{children:"• Public profile in the directory"}),e.jsx("li",{children:"• Verified report available to subscribed suppliers"})]}),e.jsx("div",{className:"pt-2 border-t border-border",children:e.jsxs("p",{className:"font-heading text-2xl font-bold text-primary",children:["$100 ",e.jsx("span",{className:"text-sm font-normal text-muted-foreground",children:"one-time onboarding fee"})]})}),e.jsxs(l,{onClick:()=>t("importer"),className:"w-full",children:["Register as Importer ",e.jsx(c,{className:"ml-2 h-4 w-4"})]})]})}),e.jsx(a,{className:"border-2 hover:border-accent transition-colors",children:e.jsxs(n,{className:"p-8 space-y-4",children:[e.jsx("div",{className:"h-12 w-12 rounded-lg bg-accent/10 text-accent flex items-center justify-center",children:e.jsx(h,{className:"h-6 w-6"})}),e.jsx("h2",{className:"font-heading text-2xl font-bold",children:"Browse as a Supplier"}),e.jsx("p",{className:"text-muted-foreground font-body text-sm",children:"Search verified importers and purchase intelligence reports on the ones you want to trade with — no subscription required."}),e.jsxs("ul",{className:"text-sm text-foreground/80 font-body space-y-1.5",children:[e.jsx("li",{children:"• Pay per report — no recurring fees"}),e.jsx("li",{children:"• Basic ($150) or Full Due Diligence ($250)"}),e.jsx("li",{children:"• Download purchased reports anytime"})]}),e.jsx("div",{className:"pt-2 border-t border-border space-y-1",children:e.jsxs("p",{className:"font-heading text-lg text-foreground",children:["From ",e.jsx("span",{className:"font-bold text-primary",children:"$150"})," per report"]})}),e.jsxs(l,{onClick:()=>t("supplier"),variant:"outline",className:"w-full",children:["Browse Importer Directory ",e.jsx(c,{className:"ml-2 h-4 w-4"})]})]})})]}),e.jsxs("p",{className:"text-center text-xs text-muted-foreground",children:["Already a member? ",e.jsx(i,{to:"/portal/importer-network/my-profile",className:"text-accent hover:underline",children:"Go to my profile"})," ","or ",e.jsx(i,{to:"/portal/importer-network/my-reports",className:"text-accent hover:underline",children:"my reports"}),"."]})]})};export{b as default};
