import{F as d,Ga as m,Hi as l,Li as p}from"./chunk-ET7TRALE.js";import{ra as o,wa as c}from"./chunk-ZY2UEPJ6.js";import{o as n}from"./chunk-EMXRSGQS.js";var s=(()=>{let t=class t{};t.CREATE="assignment_candidate.create",t.SORT="assignment_candidate.sort",t.DELETE="assignment_candidate.delete";let r=t;return r})();var b=(()=>{let t=class t extends d{constructor(i){super(i,l),this.getTitle=e=>e.user?.getTitle()??p,this.getVerboseName=(e=!1)=>this.translate.instant(e?"Candidates":"Candidate")}create(i,e){return n(this,null,function*(){let a={assignment_id:i.id,meeting_user_id:e};return this.sendActionToBackend(s.CREATE,a)})}delete(i){let e={id:i.id};return this.createAction(s.DELETE,[e])}sort(i,e){return n(this,null,function*(){let a={candidate_ids:e.map(f=>f.id),assignment_id:i.id};return this.sendActionToBackend(s.SORT,a)})}};t.\u0275fac=function(e){return new(e||t)(c(m))},t.\u0275prov=o({token:t,factory:t.\u0275fac,providedIn:"root"});let r=t;return r})();export{b as a};
