import{a as f}from"./chunk-AUIGNIYY.js";import{d as T}from"./chunk-3QA2AJ76.js";import{p as y,q as S,s as m}from"./chunk-R37RAKSP.js";import{ha as b,l as e,ma as l,s as u}from"./chunk-AYX7PVNL.js";import{a as c,b as a,i as n}from"./chunk-BAF7YKD7.js";var d={subscriptionTypes:{}},i=class o{static subscriptionTypes(t){return Object.values(t.subscriptionTypes)}constructor(t){this.apiService=t}listSubscriptionTypes(t){return n(this,null,function*(){let v=(yield u(this.apiService.listSubscriptionTypes())).sort((r,s)=>r.availableSlots<s.availableSlots?-1:1).reduce((r,s)=>a(c({},r),{[s.name]:s}),{});t.patchState({subscriptionTypes:v})})}static{this.\u0275fac=function(p){return new(p||o)(l(T))}}static{this.\u0275prov=b({token:o,factory:o.\u0275fac})}};e([y(f)],i.prototype,"listSubscriptionTypes",null);e([m([i])],i,"subscriptionTypes",null);i=e([S({name:"subscriptionTypes",defaults:d})],i);export{i as a};
//# sourceMappingURL=chunk-4JB73UV5.js.map