import{C as i,Oc as c,Rf as E,Ye as s,Z as p,aa as e,j as n}from"./chunk-4JM6MIZ5.js";import{i as a}from"./chunk-QJQRWPYR.js";var t=class t{authHttp;restExtractor;constructor(r,o){this.authHttp=r,this.restExtractor=o}getInstanceHomepage(){return this.authHttp.get(t.BASE_INSTANCE_HOMEPAGE_URL).pipe(i(r=>r.status===404?n({content:""}):this.restExtractor.handleError(r)))}updateInstanceHomepage(r){return this.authHttp.put(t.BASE_INSTANCE_HOMEPAGE_URL,{content:r}).pipe(i(o=>this.restExtractor.handleError(o)))}};a(t,"BASE_INSTANCE_HOMEPAGE_URL",s.apiUrl+"/api/v1/custom-pages/homepage/instance"),a(t,"\u0275fac",function(o){return new(o||t)(e(c),e(E))}),a(t,"\u0275prov",p({token:t,factory:t.\u0275fac}));var m=t;export{m as a};
/**i18n:68865f44f2a527c44cf5136a17c76a0ff8308c2bae5c7c8d50070a5fb9847c44*/
//# sourceMappingURL=chunk-ZOU5HO4Y.js.map
