import{H as n,b as a,d as r,o as u,h as m,g as p,i as N,t as w,R as f}from"./translation-CD_FiYBO-D7oPP82T.chunk.mjs";import{m as g,a as A,N as h,A as C,s as y}from"./settings-store-B-jKzRoi.chunk.mjs";import{b as v,x}from"./_plugin-vue_export-helper-CY9R8fiO.chunk.mjs";import"./_commonjsHelpers-Cqwegr3R.chunk.mjs";import"./index-_4HphU9w-C4LfPePy.chunk.mjs";import"./logger-bSyXKk3f.chunk.mjs";const _={name:"AdminSettings",components:{NcCheckboxRadioSwitch:x,NcSettingsSection:h},computed:{...A({emailEnabled:"emailEnabled"}),settingDescription(){return this.emailEnabled?n("activity","Choose for which activities you want to get an email or push notification."):n("activity","Choose for which activities you want to get a push notification.")}},mounted(){this.setEndpoint({endpoint:"/apps/activity/settings/admin"})},methods:{...g(["setEndpoint","toggleEmailEnabled"]),t:n}};function k(e,t,b,E,S,i){const o=a("NcCheckboxRadioSwitch"),s=a("NcSettingsSection");return u(),r(s,{name:i.t("activity","Notification")},{default:m(()=>[p(o,{type:"checkbox",modelValue:e.emailEnabled,"onUpdate:modelValue":[t[0]||(t[0]=c=>e.emailEnabled=c),t[1]||(t[1]=c=>e.toggleEmailEnabled({emailEnabled:c}))]},{default:m(()=>[N(w(i.t("activity","Enable notification emails")),1)]),_:1},8,["modelValue"])]),_:1},8,["name"])}const D=v(_,[["render",k]]),R={name:"DefaultActivitySettings",components:{ActivityGrid:C,NcSettingsSection:h},mounted(){this.setEndpoint({endpoint:"/apps/activity/settings/admin"})},methods:{...g(["setEndpoint"]),t:n}};function V(e,t,b,E,S,i){const o=a("ActivityGrid"),s=a("NcSettingsSection");return u(),r(s,{name:i.t("activity","Default settings"),description:i.t("activity","Configure the default notification settings for new accounts.")},{default:m(()=>[p(o)]),_:1},8,["name","description"])}const G=v(R,[["render",V]]),d=f(D);d.use(y),d.mount("#activity-admin-settings");const l=f(G);l.use(y),l.mount("#activity-default-settings");
//# sourceMappingURL=activity-adminSettings.mjs.map
