import{a as u}from"https://cdn.shopify.com/oxygen-v2/26437/10785/22343/1653408/build/_shared/chunk-WEDYDU2S.js";import{d as s}from"https://cdn.shopify.com/oxygen-v2/26437/10785/22343/1653408/build/_shared/chunk-DA5IJ7XM.js";import{k as c,o,t as r}from"https://cdn.shopify.com/oxygen-v2/26437/10785/22343/1653408/build/_shared/chunk-C4I3W2OX.js";import{a as i}from"https://cdn.shopify.com/oxygen-v2/26437/10785/22343/1653408/build/_shared/chunk-LL6AKNEK.js";import{d as a}from"https://cdn.shopify.com/oxygen-v2/26437/10785/22343/1653408/build/_shared/chunk-H7QMOPDN.js";var t=a(i()),x=()=>{let[l,e]=r(),m=e.data.isAuthenticated,f=e.data.rechargeIsOn,n=e.data.b2bAccount;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u,{to:"/account/subscriptions"}),(0,t.jsx)(c,{method:"post",action:s(n?"/account/b2b/logout":"/account/logout"),children:(0,t.jsxs)(c,{method:"post",className:"flex flex-col items-center gap-6 text-BLACK smm:flex-row",action:s("/account/logout"),children:[m&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o,{to:"/account#orders",className:"font-inter text-sm font-[600]",children:n?"All orders":"Orders"}),(0,t.jsx)(o,{to:"/account/quick-order",className:"font-inter text-sm font-[600]",children:"Quick order"}),(0,t.jsx)(o,{to:"/account#profile",className:"font-inter text-sm font-[600]",children:"Profile"}),(0,t.jsx)(o,{to:"/account#address",className:"font-inter text-sm font-[600]",children:n?"Company locations":"Address book"})]}),f&&(0,t.jsx)(o,{to:"/account/subscriptions/overview",className:"font-inter text-sm font-[600]",children:"Subscriptions"}),(0,t.jsx)("button",{className:"font-inter text-sm font-[600]",type:"submit",children:n?"Sign out":"Log out"})]})})]})};export{x as a};