import{c as f}from"./index-0LqjRhnu.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="f8e025a7-38ef-4590-9259-ac0e11442579",e._sentryDebugIdIdentifier="sentry-dbid-f8e025a7-38ef-4590-9259-ac0e11442579")}catch{}})();const r=e=>e.sort(d=>d.status==="active"?-1:1);function v(e){const d=f(()=>e!=null&&e.value?r(e.value.filter(t=>t.items.filter(a=>a.itemType==="addon").length===1||(t==null?void 0:t.selfService))):[]),n=f(()=>e!=null&&e.value?r(e.value.filter(t=>t.items.filter(a=>a.itemType==="addon").length>1&&!(t!=null&&t.selfService))):[]),y=f(()=>{var l;const t="future-leaders-pass";return((l=e==null?void 0:e.value)==null?void 0:l.filter(a=>a.items.some(m=>[`${t}`,`${t}-EUR`,`${t}-59`,`${t}-59-EUR`].includes(m.id))))||[]});return{memberships:d,contracts:n,futureLeadersPassSubscriptions:y}}export{v as u}; //# sourceMappingURL=useSubscriptions-DAZ8fNXj.js.map