import{$ as e,B as i,Nc as c,Xf as E,Y as p,bf as s,j as n}from"./chunk-QXV2GR6R.js";import{i as o}from"./chunk-JJ4RDTEF.js";var t=class t{constructor(r,a){o(this,"authHttp");o(this,"restExtractor");this.authHttp=r,this.restExtractor=a}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(a=>this.restExtractor.handleError(a)))}};o(t,"BASE_INSTANCE_HOMEPAGE_URL",s.apiUrl+"/api/v1/custom-pages/homepage/instance"),o(t,"\u0275fac",function(a){return new(a||t)(e(c),e(E))}),o(t,"\u0275prov",p({token:t,factory:t.\u0275fac}));var m=t;export{m as a};
/**i18n:224bcada6943fe8b17ea60808c2d370cec9507c3bd670ebe71692d099a3befa1*/
//# sourceMappingURL=chunk-GOOX4KAE.js.map
