!function(){"use strict";vare,r={98848:function(e,r,n){varo=n(20144),a=n(45994),i=n(9944),s=(n(36144),n(79954)),d=n(20571),u=n.n(d),c=n(13299),l=n.n(c),h=n(26932),v=n(4820),f=n(79753),g=n(10128);functionp(e,r,n,t,o,a,i){try{vars=e[a](i),d=s.value}catch(e){returnvoidn(e)}s.done?r(d):Promise.resolve(d).then(t,o)}functionb(e){returnfunction(){varr=this,n=arguments;returnnewPromise((function(t,o){vara=e.apply(r,n);functioni(e){p(a,t,o,i,s,"next",e)}functions(e){p(a,t,o,i,s,"throw",e)}i(void0)}))}}n(65509);varS={name:"AdminSettings",components:{NcCheckboxRadioSwitch:u(),NcSettingsSection:l()},data:function(){return{outgoingServer2serverShareEnabled:(0,s.j)("federatedfilesharing","outgoingServer2serverShareEnabled"),incomingServer2serverShareEnabled:(0,s.j)("federatedfilesharing","incomingServer2serverShareEnabled"),outgoingServer2serverGroupShareEnabled:(0,s.j)("federatedfilesharing","outgoingServer2serverGroupShareEnabled"),incomingServer2serverGroupShareEnabled:(0,s.j)("federatedfilesharing","incomingServer2serverGroupShareEnabled"),federatedGroupSharingSupported:(0,s.j)("federatedfilesharing","federatedGroupSharingSupported"),lookupServerEnabled:(0,s.j)("federatedfilesharing","lookupServerEnabled"),lookupServerUploadEnabled:(0,s.j)("federatedfilesharing","lookupServerUploadEnabled"),internalOnly:(0,s.j)("federatedfilesharing","internalOnly"),sharingFederatedDocUrl:(0,s.j)("federatedfilesharing","sharingFederatedDocUrl")}},methods:{update:function(e,r){varn=this;returnb(regeneratorRuntime.mark((functiono(){vara,i,s,d,u,c;returnregeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case0:returno.next=2,(0,g.confirmPassword)();case2:returna=(0,f.generateOcsUrl)("/apps/provisioning_api/api/v1/config/apps/{appId}/{key}",{appId:"files_sharing",key:e}),i=r?"yes":"no",o.prev=4,o.next=7,v.default.post(a,{value:i});case7:u=o.sent,c=u.data,n.handleResponse({status:null===(s=c.ocs)||void0===s||null===(d=s.meta)||void0===d?void0:d.status}),o.next=15;break;case12:o.prev=12,o.t0=o.catch(4),n.handleResponse({errorMessage:t("federatedfilesharing","Unable to update federated files sharing config"),error:o.t0});case15:case"end":returno.stop()}}),o,null,[[4,12]])})))()},handleResponse:function(e){returnb(regeneratorRuntime.mark((functionr(){varn,t,o;returnregeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case0:n=e.status,t=e.errorMessage,o=e.error,"ok"!==n&&((0,h.x2)(t),console.error(t,o));case2:case"end":returnr.stop()}}),r)})))()}}},m=(0,n(51900).Z)(S,(function(){vare=this,r=e._self._c;returnr("NcSettingsSection",{attrs:{title:e.t("federatedfilesharing","Federated Cloud Sharing"),description:e.t("federatedfilesharing","Adjust how people can share between servers. This includes shares between users on this server as well if they are using federated sharing."),"doc-url":e.sharingFederatedDocUrl}},[r("NcCheckboxRadioSwitch",{attrs:{type:"switch",checked:e.outgoingServer2serverShareEnabled},on:{"update:checked":[function(r){e.outgoingServer2serverShareEnabled=r},function(r){returne.update("outgoing_server2server_share_enabled",e.outgoingServer2serverShareEnabled)}]}},[e._v("\n\t\t"+e._s(e.t("federatedfilesharing","Allow users on this server to send shares to other servers (this option also allows WebDAV access to public shares)"))+"\n\t")]),e._v(" "),r("NcCheckboxRadioSwitch",{attrs:{type:"switch",checked:e.incomingServer2serverShareEnabled},on:{"update:checked":[function(r){e.incomingServer2serverShareEnabled=r},function(r){returne.update("incoming_server2server_share_enabled",e.incomingServer2serverShareEnabled)}]}},[e._v("\n\t\t"+e._s(e.t("federatedfilesharing","Allow users on this server to receive shares from other servers"))+"\n\t")]),e._v(" "),e.federatedGroupSharingSupported?r("NcCheckboxRadioSwitch",{attrs:{type:"switch",checked:e.outgoingServer2serverGroupShareEnabled},on:{"update:checked":[function(r){e.outgoingServer2serverGroupShareEnabled=r},function(r){returne.update("outgoing_server2server_group_share_enabled",e.outgoingServer2serverGroupShareEnabled)}]}},[e