import{a as s}from"./chunk-KXX3UDJ3.js";import{a as r}from"./chunk-PDYJ5OYY.js";import{j as a}from"./chunk-GQAU5ACB.js";import{la as i,pa as n}from"./chunk-ISMRT7VU.js";var l=(()=>{class o{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=s.append(r.SkipError,"skipError");return e.append(r.SkipTimeout,"skipTimeout"),this._http.post("/api/nomenclature-photo/covers",{nomenclatureIds:t},{headers:e})}static{this.\u0275fac=function(e){return new(e||o)(n(a))}}static{this.\u0275prov=i({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();export{l as a};
//# sourceMappingURL=chunk-VFKYZXOQ.js.map
