import{a as u}from"./chunk-PLVHWZTL.js";import{a as n}from"./chunk-PDYJ5OYY.js";import{i as h}from"./chunk-YMOV4UGM.js";import{ga as i,k as a,la as s,ma as c}from"./chunk-I3FGJX2C.js";var m=(()=>{let r=class r{constructor(t){this._http=t}uploadPhoto(t,e){let p=new FormData;return p.append("photo",e.file),this._http.post(`/api/nomenclature-photo/${t}`,p)}getPhotos(t){return this._http.get(`/api/nomenclature-photo/${t}`)}reorder(t,e){return this._http.put(`/api/nomenclature-photo/${t}/reorder`,e)}remove(t,e){return this._http.delete(`/api/nomenclature-photo/${t}/${e}`)}downloadPhoto(t){return this._http.get(t,{responseType:"blob"})}getCoversUrl(t){let e=u.append(n.SkipError,"skipError");return e.append(n.SkipTimeout,"skipTimeout"),this._http.post("/api/nomenclature-photo/covers",{nomenclatureIds:t},{headers:e})}};r.\u0275fac=function(e){return new(e||r)(s(h))},r.\u0275prov=i({token:r,factory:r.\u0275fac,providedIn:"root"});let o=r;return o})();var b=(()=>{let r=class r{constructor(){this._nomenclaturePhotosServiceApi=c(m)}uploadPhoto(t,e){return this._nomenclaturePhotosServiceApi.uploadPhoto(t,e)}getPhotos(t){return this._nomenclaturePhotosServiceApi.getPhotos(t)}mapToImageEntry(t){return a({url:t.url,id:t.id})}reorderPhoto(t,e){return this._nomenclaturePhotosServiceApi.reorder(t,e)}remove(t,e){return this._nomenclaturePhotosServiceApi.remove(t,e)}getCoversUrl(t){return this._nomenclaturePhotosServiceApi.getCoversUrl(t)}};r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=i({token:r,factory:r.\u0275fac,providedIn:"root"});let o=r;return o})();export{b as a};
//# sourceMappingURL=chunk-4WI2QN53.js.map
