(function(){window.CommunityService=function(d){const c=new a(d);this.get=function(){return c.get()};this.saveSpaceHomepage=function(e){return c.save(e)};this.saveCharter=function(e,f){return sp.promise.whenAllResolved([c.save(e),c.saveDisplayCharterOnSpaceHomepageParameter(f.displayCharterOnSpaceHomepage)]).then(function(g){return g[0]})}};const b=function(){this.type="CommunityOsUsers";this.$onInit=function(){}};const a=function(e){const g=webContext+"/services/community/"+e.componentInstanceId;const d=RESTAdapter.get(g,b);const c=webContext+"/Rcommunity/"+e.componentInstanceId;const f=RESTAdapter.get(c,function(){});this.get=function(){return d.find()};this.save=function(h){return d.put(h)};this.saveDisplayCharterOnSpaceHomepageParameter=function(h){const i=new FormData();i.set("value",!!h);return f.post(f.url+"/parameters/displayCharterOnSpaceHomepage",i)}}})();