import{a as h}from"./chunk-7N232KV6.js";import{a as p}from"./chunk-PDYJ5OYY.js";import{i as s}from"./chunk-NDLDFKR2.js";import{fa as n,ka as a}from"./chunk-PVUKHE45.js";var l=(()=>{let e=class e{constructor(t){this._http=t}uploadPhoto(t,o){let i=new FormData;return i.append("photo",o.file),this._http.post(`/api/nomenclature-photo/${t}`,i)}getPhotos(t){return this._http.get(`/api/nomenclature-photo/${t}`)}reorder(t,o){return this._http.put(`/api/nomenclature-photo/${t}/reorder`,o)}remove(t,o){return this._http.delete(`/api/nomenclature-photo/${t}/${o}`)}downloadPhoto(t){return this._http.get(t,{responseType:"blob"})}getCoversUrl(t){let o=h.append(p.SkipError,"skipError");return o.append(p.SkipTimeout,"skipTimeout"),this._http.post("/api/nomenclature-photo/covers",{nomenclatureIds:t},{headers:o})}};e.\u0275fac=function(o){return new(o||e)(a(s))},e.\u0275prov=n({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})();export{l as a};
//# sourceMappingURL=chunk-ADJOA2NN.js.map
