Version initiale du site RSU pour le déploiement

This commit is contained in:
2026-09-01 10:59:19 +00:00
commit 74b6633250
513 changed files with 4681 additions and 0 deletions

View File

@@ -0,0 +1 @@
import{a}from"./chunk-MBEC6LK4.js";import{H as i,Hc as s,M as o}from"./chunk-TVKQFRWX.js";var p=class r{http=o(s);url=`${a.apiUrl}/department-contacts`;getPublic(){return this.http.get(`${this.url}/public`)}getAll(){return this.http.get(this.url)}create(t,e){return this.http.post(this.url,this.data(t,e))}update(t,e){return this.http.put(`${this.url}/${t.id}`,this.data(t,e))}delete(t){return this.http.delete(`${this.url}/${t}`)}photoUrl(t){return t?/^(data:|https?:\/\/|assets\/)/i.test(t)?t:`${a.FileUrl}${t.startsWith("/")?"":"/"}${t}`:"assets/images/rsu-logo.jpg"}data(t,e){let n=new FormData;return n.append("contact",new Blob([JSON.stringify(t)],{type:"application/json"})),e&&n.append("photo",e),n}static \u0275fac=function(e){return new(e||r)};static \u0275prov=i({token:r,factory:r.\u0275fac,providedIn:"root"})};export{p as a};