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