1import{r as e}from"./B0Z9INg1.js";import{$ as t,D as n,G as r,It as i,M as a,Ot as o,S as s,T as c,X as l,Xt as u,b as d,ct as f,p,pt as m,st as h,tn as g,w as _,x as v,y}from"./uRKtOFy3.js";import{t as b}from"./BRLu3tRO.js";import{o as x}from"./BDx_V35Q.js";import{t as S}from"./DNBN_zxp.js";a(),i(),m();var C={class:`dropdown dropdown--rounded`},w={class:`dropdown__header`},T={class:`h4 mb-0`},E={key:0},D={type:`button`,class:`btn-no-styling dropdown__close d-md-none`},O={class:`dropdown__body`},k={class:`dropdown-list list-unstyled`},A={key:0},j={key:0,class:`me-3`},M=n({__name:`AccountDropdown`,props:{migrosUser:{type:Object,required:!0},dropdownItems:{type:Object,required:!0}},setup(e){let n=x();return(i,a)=>{let m=S,x=b,M=t(`close-popper`);return r(),s(`div`,C,[y(`div`,w,[y(`div`,T,[e.migrosUser?(r(),s(`div`,E,g(e.migrosUser.name),1)):v(``,!0)]),f((r(),s(`button`,D,[c(m,{name:`tabler:x`})])),[[M]])]),y(`div`,O,[y(`ul`,k,[(r(!0),s(p,null,l(e.dropdownItems,(e,t,i)=>(r(),s(p,null,[t===`login`?v(``,!0):(r(),s(p,{key:0},[i>1?(r(),s(`li`,A,[...a[0]||=[y(`hr`,{class:`dropdown-list__divider`},null,-1)]])):v(``,!0),(r(!0),s(p,null,l(e,(e,t)=>(r(),s(`li`,null,[t==`logout`?(r(),d(x,{key:0,external:``,class:`dropdown-list__item`,to:`${e.link}${o(n).logoutRedirectTarget}`},{default:h(()=>[_(g(e.labelFlapout||e.label),1)]),_:2},1032,[`to`])):(r(),d(x,{key:1,external:``,class:u([`dropdown-list__item`,{"text-migros":t==`manageMigrosAccount`}]),to:e.link},{default:h(()=>[t==`manageMigrosAccount`?(r(),s(`span`,j,[...a[1]||=[y(`svg`,{width:`20`,height:`17`,viewBox:`0 0 14 12`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},[y(`path`,{d:`M10.8602 12V5.07135L7.82085 12H6.13128L3.13983 5.07135V12H0V0H4.20718L7.07897 6.77427L10.1183 0H14V12H10.8602Z`,fill:`#FF6600`})],-1)]])):v(``,!0),_(g(e.labelFlapout||e.label),1)]),_:2},1032,[`to`,`class`]))]))),256))],64))],64))),256))])])])}}}),N=e({default:()=>P}),P=Object.assign(M,{__name:`MigrosAccountDropdown`});export{N as n,P as t};
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.