import{$ as e,B as i,Mc as c,Wf as E,Y as p,af as s,j as n}from"./chunk-X3RCWQ3R.js";import{i as o}from"./chunk-SR6RTMQI.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:3d16453f213eb5db982e7e7dd90631843ac5d3f860726a614777c3e9e3f9b57e*/
//# sourceMappingURL=chunk-6LCLXLOZ.js.map
