import{b as g}from"./chunk-IQVEYGHC.js";import{b}from"./chunk-Z4HIIQNW.js";import{a as f}from"./chunk-CFFHWVA5.js";import{b as d}from"./chunk-C7V3KKPV.js";import{A as u,f as l,i as m}from"./chunk-2YE7XEKS.js";import{$d as c,Vd as n,Wd as i,ba as p,je as v,ka as a,pa as s,w as o}from"./chunk-UNHECMG2.js";var N=(()=>{class r extends f{constructor(){let t=s(m),e=s(u);super(t,e,g,"SubscriptionDetails")}getListForEvent(t){return this.getList({params:{IdEvent:String(t)}})}update(t,e,I){let S={IdPerson:t.IdPerson,EventId:t.EventId,Value:e};return this.http.put(`${this.baseUrl}/${t.Id}`,S,{context:I}).pipe(o(()=>{}))}static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275prov=a({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var h=c({Id:i,Designation:n,Leadership:v(n),StudentCount:i}),E=c({Id:i,EventType:n,EventTypeId:i,Designation:n,Number:n,StatusId:i}),y=c({Id:i,Designation:n});var K=(()=>{class r extends f{constructor(){let t=s(m),e=s(u);super(t,e,h,"Events")}getStudyCourseEvents(){let t=new l().set("filter.EventTypeId","=1");return this.getList({params:t})}getSubscriptionDetailsDefinitions(t){return this.http.get(`${this.baseUrl}/${t}/SubscriptionDetails`).pipe(p(d(g)))}getEventSummary(t){let e={fields:"Id,EventTypeId,EventType,Designation,Number,StatusId","filter.Id":`=${t}`};return this.http.get(`${this.baseUrl}/`,{params:e}).pipe(p(d(E)),o(I=>I[0]??null))}getEventDesignations(t){let e=new l().set("fields","Id,Designation").set("filter.Id",`;${t.join(";")}`);return this.http.get(`${this.baseUrl}/`,{params:b(0,0,e)}).pipe(p(d(y)))}static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275prov=a({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();export{N as a,K as b};
