!function(){"use strict";varn,e={85581:function(n,e,r){vari=r(20144),o=r(7811),s=r.n(o),a=r(79753),u=r(4820),l=r(26932),c=(0,r(17499).IY)().setApp("settings").detectUser().build();functiond(n,t,e,r,i,o,s){try{vara=n[o](s),u=a.value}catch(n){returnvoide(n)}a.done?t(u):Promise.resolve(u).then(r,i)}varp={name:"GroupSelect",components:{Multiselect:s()},props:{availableGroups:{type:Array,default:function(){return[]}},setting:{type:Object,required:!0},authorizedGroups:{type:Array,required:!0}},data:function(){varn=this;return{selected:this.authorizedGroups.filter((function(t){returnt.class===n.setting.class})).map((function(t){returnn.availableGroups.find((function(n){returnn.gid===t.group_id}))})).filter((function(n){returnvoid0!==n}))}},watch:{selected:function(){this.saveGroups()}},methods:{saveGroups:function(){varn,e=this;return(n=regeneratorRuntime.mark((functionn(){varr;returnregeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case0:returnr={newGroups:e.selected,class:e.setting.class},n.prev=1,n.next=4,u.default.post((0,a.generateUrl)("/apps/settings/")+"/settings/authorizedgroups/saveSettings",r);case4:n.next=10;break;case6:n.prev=6,n.t0=n.catch(1),(0,l.x2)(t("settings","Unable to modify setting")),c.error("Unable to modify setting",n.t0);case10:case"end":returnn.stop()}}),n,null,[[1,6]])})),function(){vart=this,e=arguments;returnnewPromise((function(r,i){varo=n.apply(t,e);functions(n){d(o,r,i,s,a,"next",n)}functiona(n){d(o,r,i,s,a,"throw",n)}s(void0)}))})()}}},f=p,g=r(93379),v=r.n(g),h=r(7795),m=r.n(h),b=r(90569),y=r.n(b),S=r(3565),w=r.n(S),A=r(19216),O=r.n(A),x=r(44589),G=r.n(x),k=r(63288),_={};_.styleTagTransform=G(),_.setAttributes=w(),_.insert=y().bind(null,"head"),_.domAPI=m(),_.insertStyleElement=O(),v()(k.Z,_),k.Z&&k.Z.locals&&k.Z.locals;varC=r(51900),j=(0,C.Z)(f,(function(){varn=this,t=n.$createElement;return(n._self._c||t)("Multiselect",{staticClass:"group-multiselect",attrs:{placeholder:n.t("settings","None"),"track-by":"gid",label:"displayName",options:n.availableGroups,"open-direction":"bottom",multiple:!0,"allow-empty":!0},model:{value:n.selected,callback:function(t){n.selected=t},expression:"selected"}})}),[],!1,null,null,null).exports,z=r(67776),P=r.n(z),Z=r(16453),E={name:"AdminDelegating",components:{GroupSelect:j,SettingsSection:P()},data:function(){return{availableSettings:(0,Z.loadState)("settings","available-settings"),availableGroups:(0,Z.loadState)("settings","available-groups"),authorizedGroups:(0,Z.loadState)("settings","authorized-groups"),authorizedSettingsDocLink:(0,Z.loadState)("settings","authorized-settings-doc-link")}}},T=(0,C.Z)(E,(function(){varn=this,t=n.$createElement,e=n._self._c||t;returne("SettingsSection",{attrs:{title:n.t("settings","Administration privileges"),description:n.t("settings","Here you can decide which group can access certain sections of the administration settings."),"doc-url":n.authorizedSettingsDocLink}},[e("div",{staticClass:"setting-list"},n._l(n.availableSettings,(function(t){returne("div",{key:t.class},[e("h3",[n._v(n._s(t.sectionName))]),n._v(" "),e("GroupSelect",{attrs:{"available-groups":n.availableGroups,"authorized-groups":n.authorizedGroups,setting:t}})],1)})),0)])}),[],!1,null,null,null).exports;i.default.prototype.OC=OC,i.default.prototype.t=t,(new(i.default.extend(T))).$mount("#admin-right-sub-granting")},63288:function(n,t,e){varr=e(87537),i=e.n(r),o=e(23645),s=e.n(o)()(i());s.push([n.id,".group-multiselect{width:100%;margin-right:0}","",{version:3,sources:["webpack://./apps/settings/src/components/AdminDelegation/GroupSelect.vue"],names:[],mappings:"AAqEA,mBACC,UAAA,CACA,cAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.group-multiselect {\n\twidth: 100%;\n\tmargin-right: 0;\n}\n"],sourceRoot:""}]),t.Z=s}},r={};functioni(n){vart=r[n];if(void0!==t)returnt.exports;varo=r[n]={id:n,loaded:!1,exports:{}};returne[n].call(o.exports,o,o.exports,i),o.loaded=!0,o.exports}i.m=e,i.amdD=functio