import L from"./BXHfLeI_.js";import{i as S,r as V,q as N,l as q,d as A,br as G}from"./DB-BdW1A.js";import O from"./BaUG_RPv.js";import U from"./DsfFFR8H.js";import R from"./CVWHaK2P.js";import j from"./DwSmQj2S.js";import z from"./C53zYwgM.js";import D from"./BlE_Hled.js";import{j as w,L as m,M as p,S as c,I as t,P as n,U as s,u as f,k as E,O as M,V as g,W as h}from"./DokyoHAC.js";const P=w({__name:"LogoutButton",setup(a){const d=S(),{logout:k,isSubmitting:u}=V("logout"),i=async()=>{await k(),await d.push("/")};return(r,e)=>{const o=D,_=N;return m(),p(_,{"is-full-width":"",disabled:f(u),onClick:i,class:"flex items-center gap-3"},{default:c(()=>[t(o,{class:"h-4 w-4"}),n("span",null,s(r.$t("global.sign_out")),1)]),_:1},8,["disabled"])}}}),W=n("span",null,"Spaarbonus & Vouchers",-1),nn=w({__name:"AccountNavigation",props:{location:{type:String,required:!0}},emits:["link-clicked"],setup(a,{emit:d}){const k=d,{user:u,isLoggedIn:i}=q(),r=E(()=>{var o,_;return u==null?!0:(_=(o=u==null?void 0:u.value)==null?void 0:o.status)==null?void 0:_.isGuestCustomer}),e=()=>{k("link-clicked")};return(o,_)=>{const b=L,l=A,C=O,x=U,y=R,v=G,$=j,I=z,B=P;return m(),M("div",null,[n("ul",{class:g(["flex w-72 flex-col",{"px-8 py-4":a.location==="popup","mb-14":a.location==="sidebar"}])},[n("li",null,[t(l,{to:"/account",class:"flex h-10 items-center gap-3",onClick:e},{default:c(()=>[t(b,{class:"h-4 w-4"}),n("span",null,s(o.$t("my_account.overview_menu")),1)]),_:1})]),n("li",null,[t(l,{to:"/account/edit",class:"flex h-10 items-center gap-3",onClick:e},{default:c(()=>[t(C,{class:"h-4 w-4"}),n("span",null,s(o.$t("my_account.profile_menu")),1)]),_:1})]),n("li",null,[t(l,{to:"/account/loyalty",class:"flex h-10 items-center gap-3",onClick:e},{default:c(()=>[t(x,{class:"h-4 w-4"}),W]),_:1})]),n("li",null,[t(l,{to:"/account/order",class:"flex h-10 items-center gap-3",onClick:e},{default:c(()=>[t(y,{class:"h-4 w-4"}),n("span",null,s(o.$t("my_account.orders_menu")),1)]),_:1})]),n("li",null,[t(l,{to:"/account/address",class:"flex h-10 items-center gap-3",onClick:e},{default:c(()=>[t(v,{class:"h-4 w-4"}),n("span",null,s(o.$t("my_account.address_menu")),1)]),_:1})]),n("li",null,[t(l,{to:"/account/preferences",class:"flex h-10 items-center gap-3",onClick:e},{default:c(()=>[t($,{class:"h-4 w-4"}),n("span",null,s(o.$t("my_account.preferences_menu")),1)]),_:1})]),n("li",null,[t(l,{to:"/c/klantenservice",class:"flex h-10 items-center gap-3",onClick:e},{default:c(()=>[t(I,{class:"h-4 w-4"}),n("span",null,s(o.$t("my_account.service_menu")),1)]),_:1})])],2),n("div",{class:g(["flex flex-col",{"items-center px-6 pb-6":a.location==="popup","":a.location==="sidebar"}])},[f(i)&&!r.value?(m(),p(B,{key:0,class:g({"btn btn-cta w-full":a.location==="popup"}),onClick:e},null,8,["class"])):h("",!0),!f(i)||r.value?(m(),p(l,{key:1,to:"/account",class:"btn btn-cta mb-2 w-full",onClick:e},{default:c(()=>[n("span",null,s(o.$t("global.login_request")),1)]),_:1})):h("",!0),!f(i)||r.value?(m(),p(l,{key:2,to:"/account/create",class:"btn btn-link",onClick:e},{default:c(()=>[n("span",null,s(o.$t("my_account.create")),1)]),_:1})):h("",!0)],2)])}}});export{nn as _};