import{a as p}from"./chunk-THKS2M3R.js";import{c as h}from"./chunk-GJIGZB63.js";import{b as s}from"./chunk-5VDVFGVW.js";import{d as n}from"./chunk-KUS3L5XF.js";import{C as l,a as u,b as m,ka as a,pa as i}from"./chunk-J476KISY.js";var k=function(t){return t.Active="T",t.Inactive="F",t}(k||{});var v=(()=>{class t extends p{constructor(r){super(),this.http=r}lookupJobs(r){return this.http.get(`${this.basePath}/api/salary-parameters/job-lookup/${s.qparams({search:r})}`)}static{this.\u0275fac=function(e){return new(e||t)(i(n))}}static{this.\u0275prov=a({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var w=(()=>{class t extends p{constructor(r,e){super(),this.http=r,this.translate=e}lookupEmploymentType(r){return this.http.get(`${this.basePath}/api/salary-parameters/employ-type-lookup/${s.qparams({search:r})}`).pipe(l(e=>e.map(o=>{let c=this.getWorkingHoursTranslationKey(o.workingHours),f=this.translate.instant(c);return m(u({},o),{label:`${o.name} - ${f}`})})))}getEmploymentType(r,e,o){let c={employmentType:r||"",worker:e||"",jobId:o};return this.http.get(`${this.basePath}/api/salary-parameters/employment-type/${s.qparams(c)}`)}getWorkingHoursTranslationKey(r){switch(r){case"T":return"WorkingHoursT";case"F":return"WorkingHoursF";case"V":return"WorkingHoursV";case"U":return"WorkingHoursU";case"N":return"WorkingHoursN";case"R":return"WorkingHoursR";case"S":return"WorkingHoursS";default:return""}}static{this.\u0275fac=function(e){return new(e||t)(i(n),i(h))}}static{this.\u0275prov=a({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();export{k as a,v as b,w as c};
