var V=Object.defineProperty,_=Object.defineProperties;var k=Object.getOwnPropertyDescriptors;var u=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable;var p=(i,t,e)=>t in i?V(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,a=(i,t)=>{for(var e in t||(t={}))x.call(t,e)&&p(i,e,t[e]);if(u)for(var e of u(t))D.call(t,e)&&p(i,e,t[e]);return i},o=(i,t)=>_(i,k(t));import{V as s,A as c,e as h,g as y,m as r,l as v,q as G,t as R,a2 as E}from"./translation-DoG5ZELJ-RouwhTfm.chunk.mjs";import{m as b,a as q,N as S,A as B,s as N}from"./settings-store-D19b-kFW.chunk.mjs";import{f as w,y as U}from"./_plugin-vue_export-helper-BY6mtUkE.chunk.mjs";import"./_commonjsHelpers-Cqwegr3R.chunk.mjs";import"./index-Di7pBM75.chunk.mjs";import"./logger-C3hd40pU.chunk.mjs";const $={name:"AdminSettings",components:{NcCheckboxRadioSwitch:U,NcSettingsSection:S},computed:o(a({},q({emailEnabled:"emailEnabled"})),{settingDescription(){return this.emailEnabled?s("activity","Choose for which activities you want to get an email or push notification."):s("activity","Choose for which activities you want to get a push notification.")}}),mounted(){this.setEndpoint({endpoint:"/apps/activity/settings/admin"})},methods:o(a({},b(["setEndpoint","toggleEmailEnabled"])),{t:s})};function j(i,t,e,A,C,n){const m=c("NcCheckboxRadioSwitch"),d=c("NcSettingsSection");return h(),y(d,{name:n.t("activity","Notification")},{default:r(()=>[v(m,{type:"checkbox",modelValue:i.emailEnabled,"onUpdate:modelValue":[t[0]||(t[0]=l=>i.emailEnabled=l),t[1]||(t[1]=l=>i.toggleEmailEnabled({emailEnabled:l}))]},{default:r(()=>[G(R(n.t("activity","Enable notification emails")),1)]),_:1},8,["modelValue"])]),_:1},8,["name"])}const z=w($,[["render",j]]),F={name:"DefaultActivitySettings",components:{ActivityGrid:B,NcSettingsSection:S},mounted(){this.setEndpoint({endpoint:"/apps/activity/settings/admin"})},methods:o(a({},b(["setEndpoint"])),{t:s})};function H(i,t,e,A,C,n){const m=c("ActivityGrid"),d=c("NcSettingsSection");return h(),y(d,{name:n.t("activity","Default settings"),description:n.t("activity","Configure the default notification settings for new accounts.")},{default:r(()=>[v(m)]),_:1},8,["name","description"])}const I=w(F,[["render",H]]),f=E(z);f.use(N),f.mount("#activity-admin-settings");const g=E(I);g.use(N),g.mount("#activity-default-settings");
//# sourceMappingURL=activity-adminSettings.mjs.map
