diff --git a/js/activity-adminSettings.mjs b/js/activity-adminSettings.mjs index 3c310ec38..6972805ef 100644 --- a/js/activity-adminSettings.mjs +++ b/js/activity-adminSettings.mjs @@ -1,2 +1,2 @@ /*! third party licenses: js/vendor.LICENSE.txt */ -import{V as n,t as m,a as d}from"./index-BK2GMarY.mjs";import{N as o,m as s,a as c,A as p,V as u,s as a}from"./settings-store-FiNT_RlZ.mjs";import{x as g,b as l}from"./NcCheckboxRadioSwitch-D2GbHtCS-C8gN2dlh.mjs";import"./_commonjsHelpers-BdswosdL.mjs";import"./NcNoteCard-BLPU1den-eKDxa369.mjs";import"./logger-CcLDq3iB.mjs";const h={name:"AdminSettings",components:{NcCheckboxRadioSwitch:g,NcSettingsSection:o},computed:{...s({emailEnabled:"emailEnabled"}),settingDescription(){return this.emailEnabled?t("activity","Choose for which activities you want to get an email or push notification."):t("activity","Choose for which activities you want to get a push notification.")}},mounted(){this.setEndpoint({endpoint:"/apps/activity/settings/admin"})},methods:{...c(["setEndpoint","toggleEmailEnabled"])}};var v=function(){var i=this,e=i._self._c;return e("NcSettingsSection",{attrs:{name:i.t("activity","Notification")}},[e("NcCheckboxRadioSwitch",{attrs:{type:"checkbox",checked:i.emailEnabled},on:{"update:checked":function(r){return i.toggleEmailEnabled({emailEnabled:r})}}},[i._v(" "+i._s(i.t("activity","Enable notification emails"))+" ")])],1)},f=[],y=l(h,v,f,!1,null,null,null,null);const E=y.exports,b={name:"DefaultActivitySettings",components:{ActivityGrid:p,NcSettingsSection:o},computed:{...s({emailEnabled:"emailEnabled"})},mounted(){this.setEndpoint({endpoint:"/apps/activity/settings/admin"})},methods:{...c(["setEndpoint","toggleEmailEnabled"])}};var S=function(){var i=this,e=i._self._c;return e("NcSettingsSection",{attrs:{name:i.t("activity","Default settings"),description:i.t("activity","Configure the default notification settings for new accounts.")}},[e("ActivityGrid")],1)},w=[],N=l(b,S,w,!1,null,null,null,null);const A=N.exports;n.prototype.t=m,n.prototype.n=d,n.use(u),new n({el:"#activity-admin-settings",store:a,name:"ActivityPersonalSettings",render:i=>i(E)}),new n({el:"#activity-default-settings",store:a,name:"ActivityDefaultSettings",render:i=>i(A)}); +import{V as n,t as m,a as d}from"./index-BK2GMarY.mjs";import{N as o,m as s,a as c,A as p,V as u,s as a}from"./settings-store-jBhw-TQN.mjs";import{x as g,b as l}from"./NcCheckboxRadioSwitch-D2GbHtCS-C8gN2dlh.mjs";import"./_commonjsHelpers-BdswosdL.mjs";import"./NcNoteCard-BLPU1den-eKDxa369.mjs";import"./logger-CcLDq3iB.mjs";const h={name:"AdminSettings",components:{NcCheckboxRadioSwitch:g,NcSettingsSection:o},computed:{...s({emailEnabled:"emailEnabled"}),settingDescription(){return this.emailEnabled?t("activity","Choose for which activities you want to get an email or push notification."):t("activity","Choose for which activities you want to get a push notification.")}},mounted(){this.setEndpoint({endpoint:"/apps/activity/settings/admin"})},methods:{...c(["setEndpoint","toggleEmailEnabled"])}};var v=function(){var i=this,e=i._self._c;return e("NcSettingsSection",{attrs:{name:i.t("activity","Notification")}},[e("NcCheckboxRadioSwitch",{attrs:{type:"checkbox",checked:i.emailEnabled},on:{"update:checked":function(r){return i.toggleEmailEnabled({emailEnabled:r})}}},[i._v(" "+i._s(i.t("activity","Enable notification emails"))+" ")])],1)},f=[],y=l(h,v,f,!1,null,null,null,null);const E=y.exports,b={name:"DefaultActivitySettings",components:{ActivityGrid:p,NcSettingsSection:o},computed:{...s({emailEnabled:"emailEnabled"})},mounted(){this.setEndpoint({endpoint:"/apps/activity/settings/admin"})},methods:{...c(["setEndpoint","toggleEmailEnabled"])}};var S=function(){var i=this,e=i._self._c;return e("NcSettingsSection",{attrs:{name:i.t("activity","Default settings"),description:i.t("activity","Configure the default notification settings for new accounts.")}},[e("ActivityGrid")],1)},w=[],N=l(b,S,w,!1,null,null,null,null);const A=N.exports;n.prototype.t=m,n.prototype.n=d,n.use(u),new n({el:"#activity-admin-settings",store:a,name:"ActivityPersonalSettings",render:i=>i(E)}),new n({el:"#activity-default-settings",store:a,name:"ActivityDefaultSettings",render:i=>i(A)}); diff --git a/js/activity-personalSettings.mjs b/js/activity-personalSettings.mjs index bddf16bfa..4e142ca06 100644 --- a/js/activity-personalSettings.mjs +++ b/js/activity-personalSettings.mjs @@ -1,3 +1,3 @@ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".activity-frequency__label[data-v-778e414b]{margin-top:24px;display:inline-block}.notification-frequency__select[data-v-778e414b]{margin-left:calc(var(--default-grid-baseline) * 2)}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})(); /*! third party licenses: js/vendor.LICENSE.txt */ -import{V as a,t as m,a as u}from"./index-BK2GMarY.mjs";import{m as s,a as c,N as r,A as y,V as E,s as l}from"./settings-store-FiNT_RlZ.mjs";import{b as o,x as _}from"./NcCheckboxRadioSwitch-D2GbHtCS-C8gN2dlh.mjs";import"./_commonjsHelpers-BdswosdL.mjs";import"./NcNoteCard-BLPU1den-eKDxa369.mjs";import"./logger-CcLDq3iB.mjs";const v={EmailFrequency:{EMAIL_SEND_HOURLY:0,EMAIL_SEND_DAILY:1,EMAIL_SEND_WEEKLY:2,EMAIL_SEND_ASAP:3}},d={name:"EmailSettings",data(){return{EmailFrequency:v.EmailFrequency}},computed:{...s(["emailEnabled","isEmailSet","settingBatchtime"])},methods:{...c(["setSettingBatchtime"])}};var g=function(){var e=this,i=e._self._c;return e.emailEnabled?i("div",[e.isEmailSet?e._e():i("p",[i("strong",[e._v(e._s(e.t("activity","You need to set up your email address before you can receive notification emails.")))])]),i("p",[i("label",{staticClass:"activity-frequency__label",attrs:{for:"activity_setting_batchtime"}},[e._v(" "+e._s(e.t("activity","Send activity emails"))+" ")]),i("select",{staticClass:"notification-frequency__select",attrs:{id:"activity_setting_batchtime",name:"activity_setting_batchtime"},on:{change:function(n){return e.setSettingBatchtime({settingBatchtime:n.target.value})}}},[i("option",{domProps:{value:e.EmailFrequency.EMAIL_SEND_ASAP,selected:e.settingBatchtime===e.EmailFrequency.EMAIL_SEND_ASAP}},[e._v(" "+e._s(e.t("activity","As soon as possible"))+" ")]),i("option",{domProps:{value:e.EmailFrequency.EMAIL_SEND_HOURLY,selected:e.settingBatchtime===e.EmailFrequency.EMAIL_SEND_HOURLY}},[e._v(" "+e._s(e.t("activity","Hourly"))+" ")]),i("option",{domProps:{value:e.EmailFrequency.EMAIL_SEND_DAILY,selected:e.settingBatchtime===e.EmailFrequency.EMAIL_SEND_DAILY}},[e._v(" "+e._s(e.t("activity","Daily"))+" ")]),i("option",{domProps:{value:e.EmailFrequency.EMAIL_SEND_WEEKLY,selected:e.settingBatchtime===e.EmailFrequency.EMAIL_SEND_WEEKLY}},[e._v(" "+e._s(e.t("activity","Weekly"))+" ")])])])]):e._e()},p=[],S=o(d,g,p,!1,null,"778e414b",null,null);const h=S.exports,A={name:"UserSettings",components:{NcSettingsSection:r,EmailSettings:h,ActivityGrid:y},computed:{...s({emailEnabled:"emailEnabled"}),settingDescription(){return this.emailEnabled?t("activity","Choose for which activities you want to get an email or push notification."):t("activity","Choose for which activities you want to get a push notification.")}},mounted(){this.setEndpoint({endpoint:"/apps/activity/settings"})},methods:{...c(["setEndpoint","toggleEmailEnabled"])}};var D=function(){var e=this,i=e._self._c;return i("NcSettingsSection",{attrs:{name:e.t("activity","Activity"),description:e.settingDescription}},[i("ActivityGrid"),i("EmailSettings")],1)},b=[],f=o(A,D,b,!1,null,null,null,null);const L=f.exports,N={name:"DailySummary",components:{NcCheckboxRadioSwitch:_,NcSettingsSection:r},computed:{...s(["activityDigestEnabled"])},mounted(){this.setEndpoint({endpoint:"/apps/activity/settings"})},methods:{...c(["setEndpoint","toggleActivityDigestEnabled"])}};var I=function(){var e=this,i=e._self._c;return i("NcSettingsSection",{attrs:{name:e.t("activity","Daily activity summary")}},[i("NcCheckboxRadioSwitch",{attrs:{"data-cy-checkbox":"",checked:e.activityDigestEnabled},on:{"update:checked":function(n){return e.toggleActivityDigestEnabled({activityDigestEnabled:n})}}},[e._v(" "+e._s(e.t("activity","Send daily activity summary in the morning"))+" ")])],1)},q=[],M=o(N,I,q,!1,null,null,null,null);const F=M.exports;a.prototype.t=m,a.prototype.n=u,a.use(E),new a({el:"#activity-user-settings",store:l,name:"ActivityPersonalSettings",render:e=>e(L)}),new a({el:"#activity-digest-user-settings",name:"ActivityDigestPersonalSettings",store:l,render:e=>e(F)}); +import{V as a,t as m,a as u}from"./index-BK2GMarY.mjs";import{m as s,a as c,N as r,A as y,V as E,s as l}from"./settings-store-jBhw-TQN.mjs";import{b as o,x as _}from"./NcCheckboxRadioSwitch-D2GbHtCS-C8gN2dlh.mjs";import"./_commonjsHelpers-BdswosdL.mjs";import"./NcNoteCard-BLPU1den-eKDxa369.mjs";import"./logger-CcLDq3iB.mjs";const v={EmailFrequency:{EMAIL_SEND_HOURLY:0,EMAIL_SEND_DAILY:1,EMAIL_SEND_WEEKLY:2,EMAIL_SEND_ASAP:3}},d={name:"EmailSettings",data(){return{EmailFrequency:v.EmailFrequency}},computed:{...s(["emailEnabled","isEmailSet","settingBatchtime"])},methods:{...c(["setSettingBatchtime"])}};var g=function(){var e=this,i=e._self._c;return e.emailEnabled?i("div",[e.isEmailSet?e._e():i("p",[i("strong",[e._v(e._s(e.t("activity","You need to set up your email address before you can receive notification emails.")))])]),i("p",[i("label",{staticClass:"activity-frequency__label",attrs:{for:"activity_setting_batchtime"}},[e._v(" "+e._s(e.t("activity","Send activity emails"))+" ")]),i("select",{staticClass:"notification-frequency__select",attrs:{id:"activity_setting_batchtime",name:"activity_setting_batchtime"},on:{change:function(n){return e.setSettingBatchtime({settingBatchtime:n.target.value})}}},[i("option",{domProps:{value:e.EmailFrequency.EMAIL_SEND_ASAP,selected:e.settingBatchtime===e.EmailFrequency.EMAIL_SEND_ASAP}},[e._v(" "+e._s(e.t("activity","As soon as possible"))+" ")]),i("option",{domProps:{value:e.EmailFrequency.EMAIL_SEND_HOURLY,selected:e.settingBatchtime===e.EmailFrequency.EMAIL_SEND_HOURLY}},[e._v(" "+e._s(e.t("activity","Hourly"))+" ")]),i("option",{domProps:{value:e.EmailFrequency.EMAIL_SEND_DAILY,selected:e.settingBatchtime===e.EmailFrequency.EMAIL_SEND_DAILY}},[e._v(" "+e._s(e.t("activity","Daily"))+" ")]),i("option",{domProps:{value:e.EmailFrequency.EMAIL_SEND_WEEKLY,selected:e.settingBatchtime===e.EmailFrequency.EMAIL_SEND_WEEKLY}},[e._v(" "+e._s(e.t("activity","Weekly"))+" ")])])])]):e._e()},p=[],S=o(d,g,p,!1,null,"778e414b",null,null);const h=S.exports,A={name:"UserSettings",components:{NcSettingsSection:r,EmailSettings:h,ActivityGrid:y},computed:{...s({emailEnabled:"emailEnabled"}),settingDescription(){return this.emailEnabled?t("activity","Choose for which activities you want to get an email or push notification."):t("activity","Choose for which activities you want to get a push notification.")}},mounted(){this.setEndpoint({endpoint:"/apps/activity/settings"})},methods:{...c(["setEndpoint","toggleEmailEnabled"])}};var D=function(){var e=this,i=e._self._c;return i("NcSettingsSection",{attrs:{name:e.t("activity","Activity"),description:e.settingDescription}},[i("ActivityGrid"),i("EmailSettings")],1)},b=[],f=o(A,D,b,!1,null,null,null,null);const L=f.exports,N={name:"DailySummary",components:{NcCheckboxRadioSwitch:_,NcSettingsSection:r},computed:{...s(["activityDigestEnabled"])},mounted(){this.setEndpoint({endpoint:"/apps/activity/settings"})},methods:{...c(["setEndpoint","toggleActivityDigestEnabled"])}};var I=function(){var e=this,i=e._self._c;return i("NcSettingsSection",{attrs:{name:e.t("activity","Daily activity summary")}},[i("NcCheckboxRadioSwitch",{attrs:{"data-cy-checkbox":"",checked:e.activityDigestEnabled},on:{"update:checked":function(n){return e.toggleActivityDigestEnabled({activityDigestEnabled:n})}}},[e._v(" "+e._s(e.t("activity","Send daily activity summary in the morning"))+" ")])],1)},q=[],M=o(N,I,q,!1,null,null,null,null);const F=M.exports;a.prototype.t=m,a.prototype.n=u,a.use(E),new a({el:"#activity-user-settings",store:l,name:"ActivityPersonalSettings",render:e=>e(L)}),new a({el:"#activity-digest-user-settings",name:"ActivityDigestPersonalSettings",store:l,render:e=>e(F)}); diff --git a/js/settings-store-FiNT_RlZ.mjs b/js/settings-store-jBhw-TQN.mjs similarity index 97% rename from js/settings-store-FiNT_RlZ.mjs rename to js/settings-store-jBhw-TQN.mjs index 95817d753..d7dc1f1d8 100644 --- a/js/settings-store-FiNT_RlZ.mjs +++ b/js/settings-store-jBhw-TQN.mjs @@ -1,3 +1,3 @@ -(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(".material-design-icon[data-v-251fe753]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.settings-section[data-v-251fe753]{display:block;margin-bottom:auto;padding:30px}.settings-section[data-v-251fe753]:not(:last-child){border-bottom:1px solid var(--color-border)}.settings-section--limit-width>*[data-v-251fe753]{max-width:900px}.settings-section__name[data-v-251fe753]{display:inline-flex;align-items:center;justify-content:center;font-size:20px;font-weight:700;max-width:900px}.settings-section__info[data-v-251fe753]{display:flex;align-items:center;justify-content:center;width:var(--default-clickable-area);height:var(--default-clickable-area);margin:calc((var(--default-clickable-area) - 16px) / 2 * -1);margin-left:0;color:var(--color-text-maxcontrast)}.settings-section__info[data-v-251fe753]:hover,.settings-section__info[data-v-251fe753]:focus,.settings-section__info[data-v-251fe753]:active{color:var(--color-main-text)}.settings-section__desc[data-v-251fe753]{margin-top:-.2em;margin-bottom:1em;color:var(--color-text-maxcontrast);max-width:900px}.checkbox-radio-switch[data-v-a72a40ed]{display:flex}.checkbox-radio-switch__input[data-v-a72a40ed]{position:fixed;z-index:-1;top:-5000px;left:-5000px;opacity:0}.checkbox-radio-switch__label[data-v-a72a40ed]{display:flex;align-items:center;-webkit-user-select:none;user-select:none;height:32px;width:32px;border-radius:44px;padding:0;margin:2px}.checkbox-radio-switch__label[data-v-a72a40ed],.checkbox-radio-switch__label *[data-v-a72a40ed]{cursor:pointer}.checkbox-radio-switch__icon[data-v-a72a40ed]{margin-right:4px;margin-left:4px;color:var(--color-primary-element);width:var(--icon-size);height:var(--icon-size)}.checkbox-radio-switch--disabled .checkbox-radio-switch__label[data-v-a72a40ed]{opacity:.7}.checkbox-radio-switch--disabled .checkbox-radio-switch__label .checkbox-radio-switch__icon[data-v-a72a40ed]{color:var(--color-text-light)}.checkbox-radio-switch:not(.checkbox-radio-switch--disabled) .checkbox-radio-switch__input:hover+.checkbox-radio-switch__label[data-v-a72a40ed],.checkbox-radio-switch:not(.checkbox-radio-switch--disabled) .checkbox-radio-switch__input:focus+.checkbox-radio-switch__label[data-v-a72a40ed]{background-color:var(--color-primary-element-light)}.checkbox-radio-switch:not(.checkbox-radio-switch--disabled) .checkbox-radio-switch__input:focus+.checkbox-radio-switch__label[data-v-a72a40ed]{box-shadow:0 0 0 2px var(--color-primary-element)}.checkbox-radio-switch-switch:not(.checkbox-radio-switch--checked) .checkbox-radio-switch__icon[data-v-a72a40ed]{color:var(--color-text-lighter)}.checkbox-radio-switch-switch.checkbox-radio-switch--disabled.checkbox-radio-switch--checked .checkbox-radio-switch__icon[data-v-a72a40ed]{color:var(--color-primary-element-light)}.checkbox-radio-switch .sr-only[data-v-a72a40ed]{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}table.grid th[data-v-85173cd9]{color:var(--color-text-light);height:44px}table.grid .group-header th[data-v-85173cd9]{padding-top:16px;height:60px}table.grid th.group-header-section[data-v-85173cd9]{font-size:16px;font-weight:700}table.grid th.activity_select_group[data-v-85173cd9]{color:var(--color-main-text)}.sr-only[data-v-85173cd9]{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}")),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})(); +(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".material-design-icon[data-v-251fe753]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.settings-section[data-v-251fe753]{display:block;margin-bottom:auto;padding:30px}.settings-section[data-v-251fe753]:not(:last-child){border-bottom:1px solid var(--color-border)}.settings-section--limit-width>*[data-v-251fe753]{max-width:900px}.settings-section__name[data-v-251fe753]{display:inline-flex;align-items:center;justify-content:center;font-size:20px;font-weight:700;max-width:900px}.settings-section__info[data-v-251fe753]{display:flex;align-items:center;justify-content:center;width:var(--default-clickable-area);height:var(--default-clickable-area);margin:calc((var(--default-clickable-area) - 16px) / 2 * -1);margin-left:0;color:var(--color-text-maxcontrast)}.settings-section__info[data-v-251fe753]:hover,.settings-section__info[data-v-251fe753]:focus,.settings-section__info[data-v-251fe753]:active{color:var(--color-main-text)}.settings-section__desc[data-v-251fe753]{margin-top:-.2em;margin-bottom:1em;color:var(--color-text-maxcontrast);max-width:900px}.checkbox-radio-switch[data-v-a72a40ed]{display:flex}.checkbox-radio-switch__input[data-v-a72a40ed]{position:fixed;z-index:-1;top:-5000px;left:-5000px;opacity:0}.checkbox-radio-switch__label[data-v-a72a40ed]{display:flex;align-items:center;-webkit-user-select:none;user-select:none;height:32px;width:32px;border-radius:44px;padding:0;margin:2px}.checkbox-radio-switch__label[data-v-a72a40ed],.checkbox-radio-switch__label *[data-v-a72a40ed]{cursor:pointer}.checkbox-radio-switch__icon[data-v-a72a40ed]{margin-right:4px;margin-left:4px;color:var(--color-primary-element);width:var(--icon-size);height:var(--icon-size)}.checkbox-radio-switch--disabled .checkbox-radio-switch__label[data-v-a72a40ed]{opacity:.7}.checkbox-radio-switch--disabled .checkbox-radio-switch__label .checkbox-radio-switch__icon[data-v-a72a40ed]{color:var(--color-text-light)}.checkbox-radio-switch:not(.checkbox-radio-switch--disabled) .checkbox-radio-switch__input:hover+.checkbox-radio-switch__label[data-v-a72a40ed],.checkbox-radio-switch:not(.checkbox-radio-switch--disabled) .checkbox-radio-switch__input:focus+.checkbox-radio-switch__label[data-v-a72a40ed]{background-color:var(--color-primary-element-light)}.checkbox-radio-switch:not(.checkbox-radio-switch--disabled) .checkbox-radio-switch__input:focus+.checkbox-radio-switch__label[data-v-a72a40ed]{box-shadow:0 0 0 2px var(--color-primary-element)}.checkbox-radio-switch-switch:not(.checkbox-radio-switch--checked) .checkbox-radio-switch__icon[data-v-a72a40ed]{color:var(--color-text-lighter)}.checkbox-radio-switch-switch.checkbox-radio-switch--disabled.checkbox-radio-switch--checked .checkbox-radio-switch__icon[data-v-a72a40ed]{color:var(--color-primary-element-light)}.checkbox-radio-switch .sr-only[data-v-a72a40ed]{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}table.grid th[data-v-100252ef]{color:var(--color-text-light);height:44px}table.grid .group-header th[data-v-100252ef]{padding-top:16px;height:60px}table.grid th.group-header-section[data-v-100252ef]{font-size:16px;font-weight:700}table.grid th.activity_select_group[data-v-100252ef]{color:var(--color-main-text)}table.grid tr td span[data-v-100252ef]{justify-content:center}.sr-only[data-v-100252ef]{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}.activity-frequency__label[data-v-100252ef]{margin-right:10px}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})(); /*! third party licenses: js/vendor.LICENSE.txt */ -import{r as rt,y as at,n as Q,a as st,b as C,l as g,f as ct,_ as lt}from"./NcCheckboxRadioSwitch-D2GbHtCS-C8gN2dlh.mjs";import{b as z,V as ut,t as G}from"./index-BK2GMarY.mjs";import{B as F,z as P}from"./NcNoteCard-BLPU1den-eKDxa369.mjs";import{l as U}from"./logger-CcLDq3iB.mjs";function dt(e){var i=Number(e.version.split(".")[0]);if(i>=2)e.mixin({beforeCreate:o});else{var n=e.prototype._init;e.prototype._init=function(r){r===void 0&&(r={}),r.init=r.init?[o].concat(r.init):o,n.call(this,r)}}function o(){var r=this.$options;r.store?this.$store=typeof r.store=="function"?r.store():r.store:r.parent&&r.parent.$store&&(this.$store=r.parent.$store)}}var ht=typeof window<"u"?window:typeof z<"u"?z:{},y=ht.__VUE_DEVTOOLS_GLOBAL_HOOK__;function pt(e){y&&(e._devtoolHook=y,y.emit("vuex:init",e),y.on("vuex:travel-to-state",function(i){e.replaceState(i)}),e.subscribe(function(i,n){y.emit("vuex:mutation",i,n)},{prepend:!0}),e.subscribeAction(function(i,n){y.emit("vuex:action",i,n)},{prepend:!0}))}function ft(e,i){return e.filter(i)[0]}function D(e,i){if(i===void 0&&(i=[]),e===null||typeof e!="object")return e;var n=ft(i,function(r){return r.original===e});if(n)return n.copy;var o=Array.isArray(e)?[]:{};return i.push({original:e,copy:o}),Object.keys(e).forEach(function(r){o[r]=D(e[r],i)}),o}function b(e,i){Object.keys(e).forEach(function(n){return i(e[n],n)})}function X(e){return e!==null&&typeof e=="object"}function mt(e){return e&&typeof e.then=="function"}function vt(e,i){return function(){return e(i)}}var v=function(e,i){this.runtime=i,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=(typeof n=="function"?n():n)||{}},R={namespaced:{configurable:!0}};R.namespaced.get=function(){return!!this._rawModule.namespaced},v.prototype.addChild=function(e,i){this._children[e]=i},v.prototype.removeChild=function(e){delete this._children[e]},v.prototype.getChild=function(e){return this._children[e]},v.prototype.hasChild=function(e){return e in this._children},v.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},v.prototype.forEachChild=function(e){b(this._children,e)},v.prototype.forEachGetter=function(e){this._rawModule.getters&&b(this._rawModule.getters,e)},v.prototype.forEachAction=function(e){this._rawModule.actions&&b(this._rawModule.actions,e)},v.prototype.forEachMutation=function(e){this._rawModule.mutations&&b(this._rawModule.mutations,e)},Object.defineProperties(v.prototype,R);var _=function(e){this.register([],e,!1)};_.prototype.get=function(e){return e.reduce(function(i,n){return i.getChild(n)},this.root)},_.prototype.getNamespace=function(e){var i=this.root;return e.reduce(function(n,o){return i=i.getChild(o),n+(i.namespaced?o+"/":"")},"")},_.prototype.update=function(e){tt([],this.root,e)},_.prototype.register=function(e,i,n){var o=this;n===void 0&&(n=!0);var r=new v(i,n);if(e.length===0)this.root=r;else{var a=this.get(e.slice(0,-1));a.addChild(e[e.length-1],r)}i.modules&&b(i.modules,function(s,c){o.register(e.concat(c),s,n)})},_.prototype.unregister=function(e){var i=this.get(e.slice(0,-1)),n=e[e.length-1],o=i.getChild(n);o&&o.runtime&&i.removeChild(n)},_.prototype.isRegistered=function(e){var i=this.get(e.slice(0,-1)),n=e[e.length-1];return i?i.hasChild(n):!1};function tt(e,i,n){if(i.update(n),n.modules)for(var o in n.modules){if(!i.getChild(o))return;tt(e.concat(o),i.getChild(o),n.modules[o])}}var f,m=function(e){var i=this;e===void 0&&(e={}),!f&&typeof window<"u"&&window.Vue&&et(window.Vue);var n=e.plugins;n===void 0&&(n=[]);var o=e.strict;o===void 0&&(o=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new _(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new f,this._makeLocalGettersCache=Object.create(null);var r=this,a=this,s=a.dispatch,c=a.commit;this.dispatch=function(d,h){return s.call(r,d,h)},this.commit=function(d,h,p){return c.call(r,d,h,p)},this.strict=o;var u=this._modules.root.state;M(this,u,[],this._modules.root),I(this,u),n.forEach(function(d){return d(i)});var l=e.devtools!==void 0?e.devtools:f.config.devtools;l&&pt(this)},H={state:{configurable:!0}};H.state.get=function(){return this._vm._data.$$state},H.state.set=function(e){},m.prototype.commit=function(e,i,n){var o=this,r=A(e,i,n),a=r.type,s=r.payload,c={type:a,payload:s},u=this._mutations[a];u&&(this._withCommit(function(){u.forEach(function(l){l(s)})}),this._subscribers.slice().forEach(function(l){return l(c,o.state)}))},m.prototype.dispatch=function(e,i){var n=this,o=A(e,i),r=o.type,a=o.payload,s={type:r,payload:a},c=this._actions[r];if(c){try{this._actionSubscribers.slice().filter(function(l){return l.before}).forEach(function(l){return l.before(s,n.state)})}catch{}var u=c.length>1?Promise.all(c.map(function(l){return l(a)})):c[0](a);return new Promise(function(l,d){u.then(function(h){try{n._actionSubscribers.filter(function(p){return p.after}).forEach(function(p){return p.after(s,n.state)})}catch{}l(h)},function(h){try{n._actionSubscribers.filter(function(p){return p.error}).forEach(function(p){return p.error(s,n.state,h)})}catch{}d(h)})})}},m.prototype.subscribe=function(e,i){return Y(e,this._subscribers,i)},m.prototype.subscribeAction=function(e,i){var n=typeof e=="function"?{before:e}:e;return Y(n,this._actionSubscribers,i)},m.prototype.watch=function(e,i,n){var o=this;return this._watcherVM.$watch(function(){return e(o.state,o.getters)},i,n)},m.prototype.replaceState=function(e){var i=this;this._withCommit(function(){i._vm._data.$$state=e})},m.prototype.registerModule=function(e,i,n){n===void 0&&(n={}),typeof e=="string"&&(e=[e]),this._modules.register(e,i),M(this,this.state,e,this._modules.get(e),n.preserveState),I(this,this.state)},m.prototype.unregisterModule=function(e){var i=this;typeof e=="string"&&(e=[e]),this._modules.unregister(e),this._withCommit(function(){var n=V(i.state,e.slice(0,-1));f.delete(n,e[e.length-1])}),Z(this)},m.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),this._modules.isRegistered(e)},m.prototype.hotUpdate=function(e){this._modules.update(e),Z(this,!0)},m.prototype._withCommit=function(e){var i=this._committing;this._committing=!0,e(),this._committing=i},Object.defineProperties(m.prototype,H);function Y(e,i,n){return i.indexOf(e)<0&&(n&&n.prepend?i.unshift(e):i.push(e)),function(){var o=i.indexOf(e);o>-1&&i.splice(o,1)}}function Z(e,i){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;M(e,n,[],e._modules.root,!0),I(e,n,i)}function I(e,i,n){var o=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var r=e._wrappedGetters,a={};b(r,function(c,u){a[u]=vt(c,e),Object.defineProperty(e.getters,u,{get:function(){return e._vm[u]},enumerable:!0})});var s=f.config.silent;f.config.silent=!0,e._vm=new f({data:{$$state:i},computed:a}),f.config.silent=s,e.strict&&Et(e),o&&(n&&e._withCommit(function(){o._data.$$state=null}),f.nextTick(function(){return o.$destroy()}))}function M(e,i,n,o,r){var a=!n.length,s=e._modules.getNamespace(n);if(o.namespaced&&(e._modulesNamespaceMap[s],e._modulesNamespaceMap[s]=o),!a&&!r){var c=V(i,n.slice(0,-1)),u=n[n.length-1];e._withCommit(function(){f.set(c,u,o.state)})}var l=o.context=gt(e,s,n);o.forEachMutation(function(d,h){var p=s+h;yt(e,p,d,l)}),o.forEachAction(function(d,h){var p=d.root?h:s+h,E=d.handler||d;bt(e,p,E,l)}),o.forEachGetter(function(d,h){var p=s+h;Ct(e,p,d,l)}),o.forEachChild(function(d,h){M(e,i,n.concat(h),d,r)})}function gt(e,i,n){var o=i==="",r={dispatch:o?e.dispatch:function(a,s,c){var u=A(a,s,c),l=u.payload,d=u.options,h=u.type;return(!d||!d.root)&&(h=i+h),e.dispatch(h,l)},commit:o?e.commit:function(a,s,c){var u=A(a,s,c),l=u.payload,d=u.options,h=u.type;(!d||!d.root)&&(h=i+h),e.commit(h,l,d)}};return Object.defineProperties(r,{getters:{get:o?function(){return e.getters}:function(){return _t(e,i)}},state:{get:function(){return V(e.state,n)}}}),r}function _t(e,i){if(!e._makeLocalGettersCache[i]){var n={},o=i.length;Object.keys(e.getters).forEach(function(r){if(r.slice(0,o)===i){var a=r.slice(o);Object.defineProperty(n,a,{get:function(){return e.getters[r]},enumerable:!0})}}),e._makeLocalGettersCache[i]=n}return e._makeLocalGettersCache[i]}function yt(e,i,n,o){var r=e._mutations[i]||(e._mutations[i]=[]);r.push(function(a){n.call(e,o.state,a)})}function bt(e,i,n,o){var r=e._actions[i]||(e._actions[i]=[]);r.push(function(a){var s=n.call(e,{dispatch:o.dispatch,commit:o.commit,getters:o.getters,state:o.state,rootGetters:e.getters,rootState:e.state},a);return mt(s)||(s=Promise.resolve(s)),e._devtoolHook?s.catch(function(c){throw e._devtoolHook.emit("vuex:error",c),c}):s})}function Ct(e,i,n,o){e._wrappedGetters[i]||(e._wrappedGetters[i]=function(r){return n(o.state,o.getters,r.state,r.getters)})}function Et(e){e._vm.$watch(function(){return this._data.$$state},function(){},{deep:!0,sync:!0})}function V(e,i){return i.reduce(function(n,o){return n[o]},e)}function A(e,i,n){return X(e)&&e.type&&(n=i,i=e,e=e.type),{type:e,payload:i,options:n}}function et(e){f&&e===f||(f=e,dt(f))}var B=x(function(e,i){var n={};return S(i).forEach(function(o){var r=o.key,a=o.val;n[r]=function(){var s=this.$store.state,c=this.$store.getters;if(e){var u=T(this.$store,"mapState",e);if(!u)return;s=u.context.state,c=u.context.getters}return typeof a=="function"?a.call(this,s,c):s[a]},n[r].vuex=!0}),n}),it=x(function(e,i){var n={};return S(i).forEach(function(o){var r=o.key,a=o.val;n[r]=function(){for(var s=[],c=arguments.length;c--;)s[c]=arguments[c];var u=this.$store.commit;if(e){var l=T(this.$store,"mapMutations",e);if(!l)return;u=l.context.commit}return typeof a=="function"?a.apply(this,[u].concat(s)):u.apply(this.$store,[a].concat(s))}}),n}),L=x(function(e,i){var n={};return S(i).forEach(function(o){var r=o.key,a=o.val;a=e+a,n[r]=function(){if(!(e&&!T(this.$store,"mapGetters",e)))return this.$store.getters[a]},n[r].vuex=!0}),n}),j=x(function(e,i){var n={};return S(i).forEach(function(o){var r=o.key,a=o.val;n[r]=function(){for(var s=[],c=arguments.length;c--;)s[c]=arguments[c];var u=this.$store.dispatch;if(e){var l=T(this.$store,"mapActions",e);if(!l)return;u=l.context.dispatch}return typeof a=="function"?a.apply(this,[u].concat(s)):u.apply(this.$store,[a].concat(s))}}),n}),kt=function(e){return{mapState:B.bind(null,e),mapGetters:L.bind(null,e),mapMutations:it.bind(null,e),mapActions:j.bind(null,e)}};function S(e){return wt(e)?Array.isArray(e)?e.map(function(i){return{key:i,val:i}}):Object.keys(e).map(function(i){return{key:i,val:e[i]}}):[]}function wt(e){return Array.isArray(e)||X(e)}function x(e){return function(i,n){return typeof i!="string"?(n=i,i=""):i.charAt(i.length-1)!=="/"&&(i+="/"),e(i,n)}}function T(e,i,n){var o=e._modulesNamespaceMap[n];return o}function At(e){e===void 0&&(e={});var i=e.collapsed;i===void 0&&(i=!0);var n=e.filter;n===void 0&&(n=function(d,h,p){return!0});var o=e.transformer;o===void 0&&(o=function(d){return d});var r=e.mutationTransformer;r===void 0&&(r=function(d){return d});var a=e.actionFilter;a===void 0&&(a=function(d,h){return!0});var s=e.actionTransformer;s===void 0&&(s=function(d){return d});var c=e.logMutations;c===void 0&&(c=!0);var u=e.logActions;u===void 0&&(u=!0);var l=e.logger;return l===void 0&&(l=console),function(d){var h=D(d.state);typeof l>"u"||(c&&d.subscribe(function(p,E){var k=D(E);if(n(p,h,k)){var O=J(),$=r(p),ot="mutation "+p.type+O;W(l,ot,i),l.log("%c prev state","color: #9E9E9E; font-weight: bold",o(h)),l.log("%c mutation","color: #03A9F4; font-weight: bold",$),l.log("%c next state","color: #4CAF50; font-weight: bold",o(k)),q(l)}h=k}),u&&d.subscribeAction(function(p,E){if(a(p,E)){var k=J(),O=s(p),$="action "+p.type+k;W(l,$,i),l.log("%c action","color: #03A9F4; font-weight: bold",O),q(l)}}))}}function W(e,i,n){var o=n?e.groupCollapsed:e.group;try{o.call(e,i)}catch{e.log(i)}}function q(e){try{e.groupEnd()}catch{e.log("—— log end ——")}}function J(){var e=new Date;return" @ "+w(e.getHours(),2)+":"+w(e.getMinutes(),2)+":"+w(e.getSeconds(),2)+"."+w(e.getMilliseconds(),3)}function Mt(e,i){return new Array(i+1).join(e)}function w(e,i){return Mt("0",i-e.toString().length)+e}var St={Store:m,install:et,version:"3.6.2",mapState:B,mapMutations:it,mapGetters:L,mapActions:j,createNamespacedHelpers:kt,createLogger:At};const nt=St;rt(at);const xt={name:"HelpCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Tt=function(){var e=this,i=e._self._c;return i("span",e._b({staticClass:"material-design-icon help-circle-icon",attrs:{"aria-hidden":e.title?null:!0,"aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[i("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[i("path",{attrs:{d:"M15.07,11.25L14.17,12.17C13.45,12.89 13,13.5 13,15H11V14.5C11,13.39 11.45,12.39 12.17,11.67L13.41,10.41C13.78,10.05 14,9.55 14,9C14,7.89 13.1,7 12,7A2,2 0 0,0 10,9H8A4,4 0 0,1 12,5A4,4 0 0,1 16,9C16,9.88 15.64,10.67 15.07,11.25M13,19H11V17H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z"}},[e.title?i("title",[e._v(e._s(e.title))]):e._e()])])])},Ot=[],$t=Q(xt,Tt,Ot,!1,null,null,null,null);const Gt=$t.exports,Ht={name:"NcSettingsSection",components:{HelpCircle:Gt},props:{name:{type:String,required:!0},description:{type:String,default:""},docUrl:{type:String,default:""},limitWidth:{type:Boolean,default:!0}},data(){return{docNameTranslated:st("External documentation for {name}",{name:this.name})}},computed:{forceLimitWidth(){var e,i;if(this.limitWidth)return!0;const[n]=(i=(e=window._oc_config)==null?void 0:e.version.split(".",2))!=null?i:[];return n&&Number.parseInt(n)>=30},hasDescription(){return this.description.length>0},hasDocUrl(){return this.docUrl.length>0}}};var Nt=function(){var e=this,i=e._self._c;return i("div",{staticClass:"settings-section",class:{"settings-section--limit-width":e.forceLimitWidth}},[i("h2",{staticClass:"settings-section__name"},[e._v(" "+e._s(e.name)+" "),e.hasDocUrl?i("a",{staticClass:"settings-section__info",attrs:{href:e.docUrl,title:e.docNameTranslated,"aria-label":e.docNameTranslated,target:"_blank",rel:"noreferrer nofollow"}},[i("HelpCircle",{attrs:{size:20}})],1):e._e()]),e.hasDescription?i("p",{staticClass:"settings-section__desc"},[e._v(" "+e._s(e.description)+" ")]):e._e(),e._t("default")],2)},Dt=[],It=Q(Ht,Nt,Dt,!1,null,"251fe753",null,null);const ve=It.exports,Vt={name:"CheckboxBlankOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Bt=function(){var e=this,i=e._self._c;return i("span",e._b({staticClass:"material-design-icon checkbox-blank-outline-icon",attrs:{"aria-hidden":e.title?null:!0,"aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[i("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[i("path",{attrs:{d:"M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z"}},[e.title?i("title",[e._v(e._s(e.title))]):e._e()])])])},Lt=[],jt=C(Vt,Bt,Lt,!1,null,null,null,null);const Kt=jt.exports,zt={name:"CheckboxBlankIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Ft=function(){var e=this,i=e._self._c;return i("span",e._b({staticClass:"material-design-icon checkbox-blank-icon",attrs:{"aria-hidden":e.title?null:!0,"aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[i("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[i("path",{attrs:{d:"M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z"}},[e.title?i("title",[e._v(e._s(e.title))]):e._e()])])])},Pt=[],Ut=C(zt,Ft,Pt,!1,null,null,null,null);const Rt=Ut.exports,Yt={name:"MinusBoxIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Zt=function(){var e=this,i=e._self._c;return i("span",e._b({staticClass:"material-design-icon minus-box-icon",attrs:{"aria-hidden":e.title?null:!0,"aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[i("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[i("path",{attrs:{d:"M17,13H7V11H17M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z"}},[e.title?i("title",[e._v(e._s(e.title))]):e._e()])])])},Wt=[],qt=C(Yt,Zt,Wt,!1,null,null,null,null);const Jt=qt.exports,Qt={name:"CheckboxMarkedIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Xt=function(){var e=this,i=e._self._c;return i("span",e._b({staticClass:"material-design-icon checkbox-marked-icon",attrs:{"aria-hidden":e.title?null:!0,"aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[i("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[i("path",{attrs:{d:"M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z"}},[e.title?i("title",[e._v(e._s(e.title))]):e._e()])])])},te=[],ee=C(Qt,Xt,te,!1,null,null,null,null);const ie=ee.exports,ne={name:"Checkbox",props:{id:{type:String,required:!0,validator:e=>e.trim()!==""},checked:{type:[Boolean,Array,String],default:!1},value:{type:String,default:null},disabled:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},wrapperElement:{type:String,default:"span"},name:{type:String,default:null}},computed:{size(){return 24},cssVars(){return{"--icon-size":this.size+"px"}},isChecked(){return[...this.checked].indexOf(this.value)>-1},checkboxRadioIconElement(){return this.indeterminate?Jt:this.disabled&&!this.isChecked?Rt:this.isChecked?ie:Kt}},methods:{onToggle(){if(this.disabled)return;if(typeof this.checked=="boolean"){this.$emit("update:checked",!this.isChecked);return}const e=this.getInputsSet().filter(i=>i.checked).map(i=>i.value);this.$emit("update:checked",e)},getInputsSet(){return[...document.getElementsByName(this.name)]}}};var oe=function(){var e=this,i=e._self._c;return i(e.wrapperElement,{tag:"element",staticClass:"checkbox-radio-switch checkbox-radio-switch-checkbox",class:{"checkbox-radio-switch--checked":e.isChecked,"checkbox-radio-switch--disabled":e.disabled,"checkbox-radio-switch--indeterminate":e.indeterminate},style:e.cssVars},[i("input",{staticClass:"checkbox-radio-switch__input",attrs:{id:e.id,disabled:e.disabled,indeterminate:e.indeterminate,name:e.name,type:"checkbox"},domProps:{checked:e.isChecked,value:e.value},on:{change:e.onToggle}}),i("label",{staticClass:"checkbox-radio-switch__label",attrs:{for:e.id}},[i(e.checkboxRadioIconElement,{tag:"component",staticClass:"checkbox-radio-switch__icon",attrs:{size:e.size,"aria-hidden":"true"}}),i("span",{staticClass:"sr-only"},[e._t("default")],2)],1)])},re=[],ae=C(ne,oe,re,!1,null,"a72a40ed",null,null);const se=ae.exports;function K(e,i){return e.methods.includes(i)}function N(e,i){for(const n of e)if(K(n,i)&&!n[i])return!0;return!1}const ce={name:"ActivityGrid",components:{Checkbox:se},computed:{...L(["checkedActivities"]),...B(["methods","activityGroups","emailEnabled","isEmailSet","settingBatchtime"])},methods:{isActivityEnabled:K,...j(["toggleMethodForMethodAndActivity","toggleMethodForGroup"]),actionName(e){return e==="email"?t("activity","Send email"):t("activity","Send push notification")}}};var le=function(){var e=this,i=e._self._c;return i("table",{staticClass:"grid activitysettings"},[i("caption",{staticClass:"sr-only"},[e._v(" "+e._s(e.t("activity","Activity notification configuration"))+" ")]),e._l(e.activityGroups,function(n,o){return i("tbody",{key:o},[i("tr",{staticClass:"group-header"},[i("th",{staticClass:"group-header-section"},[e._v(" "+e._s(n.name)+" ")]),e._l(e.methods,function(r,a){return i("th",{key:a,staticClass:"activity_select_group"},[e._v(" "+e._s(r)+" ")])})],2),e._l(n.activities,function(r,a){return i("tr",{key:a},[i("th",{attrs:{scope:"row"}},[i("span",{domProps:{innerHTML:e._s(r.desc)}})]),e._l(e.methods,function(s,c){return i("td",{key:c},[i("Checkbox",{attrs:{id:"".concat(a,"_").concat(c),disabled:!e.isActivityEnabled(r,c),checked:e.checkedActivities,value:"".concat(a,"_").concat(c)},on:{"update:checked":function(u){return e.toggleMethodForMethodAndActivity({groupKey:o,activityKey:a,methodKey:c})}}},[e._v(" "+e._s(e.actionName(c))+" ")])],1)})],2)})],2)})],2)},ue=[],de=C(ce,le,ue,!1,null,"85173cd9",null,null);const ge=de.exports;ut.use(nt);const _e=new nt.Store({strict:!0,state:{setting:g("activity","setting"),activityGroups:g("activity","activity_groups"),isEmailSet:g("activity","is_email_set"),emailEnabled:g("activity","email_enabled"),activityDigestEnabled:g("activity","activity_digest_enabled",!1),settingBatchtime:g("activity","setting_batchtime"),methods:g("activity","methods"),endpoint:""},getters:{checkedActivities(e){const i=(n,o)=>{const r=[];return o.email&&r.push({activityKey:n,method:"email",activity:o}),o.notification&&r.push({activityKey:n,method:"notification",activity:o}),r};return Object.values(e.activityGroups).map(n=>Object.entries(n.activities)).reduce((n,o)=>n.concat(o),[]).map(([n,o])=>i(n,o)).reduce((n,o)=>n.concat(o),[]).filter(({activity:n,method:o})=>n[o]).map(({activityKey:n,method:o})=>"".concat(n,"_").concat(o))}},mutations:{SET_METHOD_FOR_METHOD_AND_ACTIVITY(e,{groupKey:i,activityKey:n,methodKey:o,value:r}){const a=e.activityGroups[i].activities[n];K(a,o)&&(a[o]=r)},SET_ENDPOINT(e,{endpoint:i}){e.endpoint=i},SET_SETTING_BATCHTIME(e,{settingBatchtime:i}){e.settingBatchtime=i},TOGGLE_ACTIVITY_DIGEST(e,{activityDigestEnabled:i}){e.activityDigestEnabled=i},TOGGLE_EMAIL_ENABLED(e,{emailEnabled:i}){e.emailEnabled=i}},actions:{setEndpoint({commit:e},{endpoint:i}){e("SET_ENDPOINT",{endpoint:i})},toggleMethodForMethodAndActivity({commit:e,state:i,dispatch:n},{groupKey:o,activityKey:r,methodKey:a}){const s=i.activityGroups[o].activities[r],c=N([s],a);e("SET_METHOD_FOR_METHOD_AND_ACTIVITY",{groupKey:o,activityKey:r,methodKey:a,value:c}),n("saveSettings")},toggleMethodForGroup({commit:e,state:i,dispatch:n},{groupKey:o,methodKey:r}){const a=Object.values(i.activityGroups[o].activities),s=N(a,r);for(const c in i.activityGroups[o].activities)e("SET_METHOD_FOR_METHOD_AND_ACTIVITY",{groupKey:o,activityKey:c,methodKey:r,value:s});n("saveSettings")},toggleMethodsForActivity({commit:e,state:i,dispatch:n},{groupKey:o,activityKey:r}){const a=i.activityGroups[o].activities[r],s=a.methods.map(c=>N([a],c)).includes(!0);for(const c of a.methods)e("SET_METHOD_FOR_METHOD_AND_ACTIVITY",{groupKey:o,activityKey:r,methodKey:c,value:s});n("saveSettings")},setSettingBatchtime({commit:e,dispatch:i},{settingBatchtime:n}){e("SET_SETTING_BATCHTIME",{settingBatchtime:n}),i("saveSettings")},toggleActivityDigestEnabled({commit:e,dispatch:i},{activityDigestEnabled:n}){e("TOGGLE_ACTIVITY_DIGEST",{activityDigestEnabled:n}),i("saveSettings")},toggleEmailEnabled({commit:e},{emailEnabled:i}){e("TOGGLE_EMAIL_ENABLED",{emailEnabled:i});try{OCP.AppConfig.setValue("activity","enable_email",i?"yes":"no"),F(G("activity","Your settings have been updated."))}catch(n){P(G("activity","Unable to save the settings")),U.error("An error occurred while saving the activity settings",n)}},async saveSettings({state:e,getters:i}){try{const n=new FormData;i.checkedActivities.forEach(r=>{n.append(r,"1")}),n.append("notify_setting_batchtime","".concat(e.settingBatchtime)),n.append("activity_digest","".concat(e.activityDigestEnabled?1:0));const o=await ct.post(lt(e.endpoint),n);F(o.data.data.message)}catch(n){P(G("activity","Unable to save the settings")),U.error("An error occurred while saving the activity settings",n)}}}});export{ge as A,ve as N,nt as V,j as a,B as m,_e as s}; +import{r as rt,y as at,n as Q,a as st,b as C,l as g,f as ct,_ as lt}from"./NcCheckboxRadioSwitch-D2GbHtCS-C8gN2dlh.mjs";import{b as z,V as ut,t as G}from"./index-BK2GMarY.mjs";import{B as F,z as P}from"./NcNoteCard-BLPU1den-eKDxa369.mjs";import{l as U}from"./logger-CcLDq3iB.mjs";function dt(e){var i=Number(e.version.split(".")[0]);if(i>=2)e.mixin({beforeCreate:o});else{var n=e.prototype._init;e.prototype._init=function(r){r===void 0&&(r={}),r.init=r.init?[o].concat(r.init):o,n.call(this,r)}}function o(){var r=this.$options;r.store?this.$store=typeof r.store=="function"?r.store():r.store:r.parent&&r.parent.$store&&(this.$store=r.parent.$store)}}var ht=typeof window<"u"?window:typeof z<"u"?z:{},y=ht.__VUE_DEVTOOLS_GLOBAL_HOOK__;function pt(e){y&&(e._devtoolHook=y,y.emit("vuex:init",e),y.on("vuex:travel-to-state",function(i){e.replaceState(i)}),e.subscribe(function(i,n){y.emit("vuex:mutation",i,n)},{prepend:!0}),e.subscribeAction(function(i,n){y.emit("vuex:action",i,n)},{prepend:!0}))}function ft(e,i){return e.filter(i)[0]}function D(e,i){if(i===void 0&&(i=[]),e===null||typeof e!="object")return e;var n=ft(i,function(r){return r.original===e});if(n)return n.copy;var o=Array.isArray(e)?[]:{};return i.push({original:e,copy:o}),Object.keys(e).forEach(function(r){o[r]=D(e[r],i)}),o}function b(e,i){Object.keys(e).forEach(function(n){return i(e[n],n)})}function X(e){return e!==null&&typeof e=="object"}function mt(e){return e&&typeof e.then=="function"}function vt(e,i){return function(){return e(i)}}var v=function(e,i){this.runtime=i,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=(typeof n=="function"?n():n)||{}},R={namespaced:{configurable:!0}};R.namespaced.get=function(){return!!this._rawModule.namespaced},v.prototype.addChild=function(e,i){this._children[e]=i},v.prototype.removeChild=function(e){delete this._children[e]},v.prototype.getChild=function(e){return this._children[e]},v.prototype.hasChild=function(e){return e in this._children},v.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},v.prototype.forEachChild=function(e){b(this._children,e)},v.prototype.forEachGetter=function(e){this._rawModule.getters&&b(this._rawModule.getters,e)},v.prototype.forEachAction=function(e){this._rawModule.actions&&b(this._rawModule.actions,e)},v.prototype.forEachMutation=function(e){this._rawModule.mutations&&b(this._rawModule.mutations,e)},Object.defineProperties(v.prototype,R);var _=function(e){this.register([],e,!1)};_.prototype.get=function(e){return e.reduce(function(i,n){return i.getChild(n)},this.root)},_.prototype.getNamespace=function(e){var i=this.root;return e.reduce(function(n,o){return i=i.getChild(o),n+(i.namespaced?o+"/":"")},"")},_.prototype.update=function(e){tt([],this.root,e)},_.prototype.register=function(e,i,n){var o=this;n===void 0&&(n=!0);var r=new v(i,n);if(e.length===0)this.root=r;else{var a=this.get(e.slice(0,-1));a.addChild(e[e.length-1],r)}i.modules&&b(i.modules,function(s,c){o.register(e.concat(c),s,n)})},_.prototype.unregister=function(e){var i=this.get(e.slice(0,-1)),n=e[e.length-1],o=i.getChild(n);o&&o.runtime&&i.removeChild(n)},_.prototype.isRegistered=function(e){var i=this.get(e.slice(0,-1)),n=e[e.length-1];return i?i.hasChild(n):!1};function tt(e,i,n){if(i.update(n),n.modules)for(var o in n.modules){if(!i.getChild(o))return;tt(e.concat(o),i.getChild(o),n.modules[o])}}var f,m=function(e){var i=this;e===void 0&&(e={}),!f&&typeof window<"u"&&window.Vue&&et(window.Vue);var n=e.plugins;n===void 0&&(n=[]);var o=e.strict;o===void 0&&(o=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new _(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new f,this._makeLocalGettersCache=Object.create(null);var r=this,a=this,s=a.dispatch,c=a.commit;this.dispatch=function(d,h){return s.call(r,d,h)},this.commit=function(d,h,p){return c.call(r,d,h,p)},this.strict=o;var u=this._modules.root.state;M(this,u,[],this._modules.root),I(this,u),n.forEach(function(d){return d(i)});var l=e.devtools!==void 0?e.devtools:f.config.devtools;l&&pt(this)},H={state:{configurable:!0}};H.state.get=function(){return this._vm._data.$$state},H.state.set=function(e){},m.prototype.commit=function(e,i,n){var o=this,r=A(e,i,n),a=r.type,s=r.payload,c={type:a,payload:s},u=this._mutations[a];u&&(this._withCommit(function(){u.forEach(function(l){l(s)})}),this._subscribers.slice().forEach(function(l){return l(c,o.state)}))},m.prototype.dispatch=function(e,i){var n=this,o=A(e,i),r=o.type,a=o.payload,s={type:r,payload:a},c=this._actions[r];if(c){try{this._actionSubscribers.slice().filter(function(l){return l.before}).forEach(function(l){return l.before(s,n.state)})}catch{}var u=c.length>1?Promise.all(c.map(function(l){return l(a)})):c[0](a);return new Promise(function(l,d){u.then(function(h){try{n._actionSubscribers.filter(function(p){return p.after}).forEach(function(p){return p.after(s,n.state)})}catch{}l(h)},function(h){try{n._actionSubscribers.filter(function(p){return p.error}).forEach(function(p){return p.error(s,n.state,h)})}catch{}d(h)})})}},m.prototype.subscribe=function(e,i){return Y(e,this._subscribers,i)},m.prototype.subscribeAction=function(e,i){var n=typeof e=="function"?{before:e}:e;return Y(n,this._actionSubscribers,i)},m.prototype.watch=function(e,i,n){var o=this;return this._watcherVM.$watch(function(){return e(o.state,o.getters)},i,n)},m.prototype.replaceState=function(e){var i=this;this._withCommit(function(){i._vm._data.$$state=e})},m.prototype.registerModule=function(e,i,n){n===void 0&&(n={}),typeof e=="string"&&(e=[e]),this._modules.register(e,i),M(this,this.state,e,this._modules.get(e),n.preserveState),I(this,this.state)},m.prototype.unregisterModule=function(e){var i=this;typeof e=="string"&&(e=[e]),this._modules.unregister(e),this._withCommit(function(){var n=V(i.state,e.slice(0,-1));f.delete(n,e[e.length-1])}),Z(this)},m.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),this._modules.isRegistered(e)},m.prototype.hotUpdate=function(e){this._modules.update(e),Z(this,!0)},m.prototype._withCommit=function(e){var i=this._committing;this._committing=!0,e(),this._committing=i},Object.defineProperties(m.prototype,H);function Y(e,i,n){return i.indexOf(e)<0&&(n&&n.prepend?i.unshift(e):i.push(e)),function(){var o=i.indexOf(e);o>-1&&i.splice(o,1)}}function Z(e,i){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;M(e,n,[],e._modules.root,!0),I(e,n,i)}function I(e,i,n){var o=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var r=e._wrappedGetters,a={};b(r,function(c,u){a[u]=vt(c,e),Object.defineProperty(e.getters,u,{get:function(){return e._vm[u]},enumerable:!0})});var s=f.config.silent;f.config.silent=!0,e._vm=new f({data:{$$state:i},computed:a}),f.config.silent=s,e.strict&&Et(e),o&&(n&&e._withCommit(function(){o._data.$$state=null}),f.nextTick(function(){return o.$destroy()}))}function M(e,i,n,o,r){var a=!n.length,s=e._modules.getNamespace(n);if(o.namespaced&&(e._modulesNamespaceMap[s],e._modulesNamespaceMap[s]=o),!a&&!r){var c=V(i,n.slice(0,-1)),u=n[n.length-1];e._withCommit(function(){f.set(c,u,o.state)})}var l=o.context=gt(e,s,n);o.forEachMutation(function(d,h){var p=s+h;yt(e,p,d,l)}),o.forEachAction(function(d,h){var p=d.root?h:s+h,E=d.handler||d;bt(e,p,E,l)}),o.forEachGetter(function(d,h){var p=s+h;Ct(e,p,d,l)}),o.forEachChild(function(d,h){M(e,i,n.concat(h),d,r)})}function gt(e,i,n){var o=i==="",r={dispatch:o?e.dispatch:function(a,s,c){var u=A(a,s,c),l=u.payload,d=u.options,h=u.type;return(!d||!d.root)&&(h=i+h),e.dispatch(h,l)},commit:o?e.commit:function(a,s,c){var u=A(a,s,c),l=u.payload,d=u.options,h=u.type;(!d||!d.root)&&(h=i+h),e.commit(h,l,d)}};return Object.defineProperties(r,{getters:{get:o?function(){return e.getters}:function(){return _t(e,i)}},state:{get:function(){return V(e.state,n)}}}),r}function _t(e,i){if(!e._makeLocalGettersCache[i]){var n={},o=i.length;Object.keys(e.getters).forEach(function(r){if(r.slice(0,o)===i){var a=r.slice(o);Object.defineProperty(n,a,{get:function(){return e.getters[r]},enumerable:!0})}}),e._makeLocalGettersCache[i]=n}return e._makeLocalGettersCache[i]}function yt(e,i,n,o){var r=e._mutations[i]||(e._mutations[i]=[]);r.push(function(a){n.call(e,o.state,a)})}function bt(e,i,n,o){var r=e._actions[i]||(e._actions[i]=[]);r.push(function(a){var s=n.call(e,{dispatch:o.dispatch,commit:o.commit,getters:o.getters,state:o.state,rootGetters:e.getters,rootState:e.state},a);return mt(s)||(s=Promise.resolve(s)),e._devtoolHook?s.catch(function(c){throw e._devtoolHook.emit("vuex:error",c),c}):s})}function Ct(e,i,n,o){e._wrappedGetters[i]||(e._wrappedGetters[i]=function(r){return n(o.state,o.getters,r.state,r.getters)})}function Et(e){e._vm.$watch(function(){return this._data.$$state},function(){},{deep:!0,sync:!0})}function V(e,i){return i.reduce(function(n,o){return n[o]},e)}function A(e,i,n){return X(e)&&e.type&&(n=i,i=e,e=e.type),{type:e,payload:i,options:n}}function et(e){f&&e===f||(f=e,dt(f))}var B=x(function(e,i){var n={};return S(i).forEach(function(o){var r=o.key,a=o.val;n[r]=function(){var s=this.$store.state,c=this.$store.getters;if(e){var u=T(this.$store,"mapState",e);if(!u)return;s=u.context.state,c=u.context.getters}return typeof a=="function"?a.call(this,s,c):s[a]},n[r].vuex=!0}),n}),it=x(function(e,i){var n={};return S(i).forEach(function(o){var r=o.key,a=o.val;n[r]=function(){for(var s=[],c=arguments.length;c--;)s[c]=arguments[c];var u=this.$store.commit;if(e){var l=T(this.$store,"mapMutations",e);if(!l)return;u=l.context.commit}return typeof a=="function"?a.apply(this,[u].concat(s)):u.apply(this.$store,[a].concat(s))}}),n}),L=x(function(e,i){var n={};return S(i).forEach(function(o){var r=o.key,a=o.val;a=e+a,n[r]=function(){if(!(e&&!T(this.$store,"mapGetters",e)))return this.$store.getters[a]},n[r].vuex=!0}),n}),j=x(function(e,i){var n={};return S(i).forEach(function(o){var r=o.key,a=o.val;n[r]=function(){for(var s=[],c=arguments.length;c--;)s[c]=arguments[c];var u=this.$store.dispatch;if(e){var l=T(this.$store,"mapActions",e);if(!l)return;u=l.context.dispatch}return typeof a=="function"?a.apply(this,[u].concat(s)):u.apply(this.$store,[a].concat(s))}}),n}),kt=function(e){return{mapState:B.bind(null,e),mapGetters:L.bind(null,e),mapMutations:it.bind(null,e),mapActions:j.bind(null,e)}};function S(e){return wt(e)?Array.isArray(e)?e.map(function(i){return{key:i,val:i}}):Object.keys(e).map(function(i){return{key:i,val:e[i]}}):[]}function wt(e){return Array.isArray(e)||X(e)}function x(e){return function(i,n){return typeof i!="string"?(n=i,i=""):i.charAt(i.length-1)!=="/"&&(i+="/"),e(i,n)}}function T(e,i,n){var o=e._modulesNamespaceMap[n];return o}function At(e){e===void 0&&(e={});var i=e.collapsed;i===void 0&&(i=!0);var n=e.filter;n===void 0&&(n=function(d,h,p){return!0});var o=e.transformer;o===void 0&&(o=function(d){return d});var r=e.mutationTransformer;r===void 0&&(r=function(d){return d});var a=e.actionFilter;a===void 0&&(a=function(d,h){return!0});var s=e.actionTransformer;s===void 0&&(s=function(d){return d});var c=e.logMutations;c===void 0&&(c=!0);var u=e.logActions;u===void 0&&(u=!0);var l=e.logger;return l===void 0&&(l=console),function(d){var h=D(d.state);typeof l>"u"||(c&&d.subscribe(function(p,E){var k=D(E);if(n(p,h,k)){var O=J(),$=r(p),ot="mutation "+p.type+O;W(l,ot,i),l.log("%c prev state","color: #9E9E9E; font-weight: bold",o(h)),l.log("%c mutation","color: #03A9F4; font-weight: bold",$),l.log("%c next state","color: #4CAF50; font-weight: bold",o(k)),q(l)}h=k}),u&&d.subscribeAction(function(p,E){if(a(p,E)){var k=J(),O=s(p),$="action "+p.type+k;W(l,$,i),l.log("%c action","color: #03A9F4; font-weight: bold",O),q(l)}}))}}function W(e,i,n){var o=n?e.groupCollapsed:e.group;try{o.call(e,i)}catch{e.log(i)}}function q(e){try{e.groupEnd()}catch{e.log("—— log end ——")}}function J(){var e=new Date;return" @ "+w(e.getHours(),2)+":"+w(e.getMinutes(),2)+":"+w(e.getSeconds(),2)+"."+w(e.getMilliseconds(),3)}function Mt(e,i){return new Array(i+1).join(e)}function w(e,i){return Mt("0",i-e.toString().length)+e}var St={Store:m,install:et,version:"3.6.2",mapState:B,mapMutations:it,mapGetters:L,mapActions:j,createNamespacedHelpers:kt,createLogger:At};const nt=St;rt(at);const xt={name:"HelpCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Tt=function(){var e=this,i=e._self._c;return i("span",e._b({staticClass:"material-design-icon help-circle-icon",attrs:{"aria-hidden":e.title?null:!0,"aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[i("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[i("path",{attrs:{d:"M15.07,11.25L14.17,12.17C13.45,12.89 13,13.5 13,15H11V14.5C11,13.39 11.45,12.39 12.17,11.67L13.41,10.41C13.78,10.05 14,9.55 14,9C14,7.89 13.1,7 12,7A2,2 0 0,0 10,9H8A4,4 0 0,1 12,5A4,4 0 0,1 16,9C16,9.88 15.64,10.67 15.07,11.25M13,19H11V17H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z"}},[e.title?i("title",[e._v(e._s(e.title))]):e._e()])])])},Ot=[],$t=Q(xt,Tt,Ot,!1,null,null,null,null);const Gt=$t.exports,Ht={name:"NcSettingsSection",components:{HelpCircle:Gt},props:{name:{type:String,required:!0},description:{type:String,default:""},docUrl:{type:String,default:""},limitWidth:{type:Boolean,default:!0}},data(){return{docNameTranslated:st("External documentation for {name}",{name:this.name})}},computed:{forceLimitWidth(){var e,i;if(this.limitWidth)return!0;const[n]=(i=(e=window._oc_config)==null?void 0:e.version.split(".",2))!=null?i:[];return n&&Number.parseInt(n)>=30},hasDescription(){return this.description.length>0},hasDocUrl(){return this.docUrl.length>0}}};var Nt=function(){var e=this,i=e._self._c;return i("div",{staticClass:"settings-section",class:{"settings-section--limit-width":e.forceLimitWidth}},[i("h2",{staticClass:"settings-section__name"},[e._v(" "+e._s(e.name)+" "),e.hasDocUrl?i("a",{staticClass:"settings-section__info",attrs:{href:e.docUrl,title:e.docNameTranslated,"aria-label":e.docNameTranslated,target:"_blank",rel:"noreferrer nofollow"}},[i("HelpCircle",{attrs:{size:20}})],1):e._e()]),e.hasDescription?i("p",{staticClass:"settings-section__desc"},[e._v(" "+e._s(e.description)+" ")]):e._e(),e._t("default")],2)},Dt=[],It=Q(Ht,Nt,Dt,!1,null,"251fe753",null,null);const ve=It.exports,Vt={name:"CheckboxBlankOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Bt=function(){var e=this,i=e._self._c;return i("span",e._b({staticClass:"material-design-icon checkbox-blank-outline-icon",attrs:{"aria-hidden":e.title?null:!0,"aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[i("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[i("path",{attrs:{d:"M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z"}},[e.title?i("title",[e._v(e._s(e.title))]):e._e()])])])},Lt=[],jt=C(Vt,Bt,Lt,!1,null,null,null,null);const Kt=jt.exports,zt={name:"CheckboxBlankIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Ft=function(){var e=this,i=e._self._c;return i("span",e._b({staticClass:"material-design-icon checkbox-blank-icon",attrs:{"aria-hidden":e.title?null:!0,"aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[i("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[i("path",{attrs:{d:"M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z"}},[e.title?i("title",[e._v(e._s(e.title))]):e._e()])])])},Pt=[],Ut=C(zt,Ft,Pt,!1,null,null,null,null);const Rt=Ut.exports,Yt={name:"MinusBoxIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Zt=function(){var e=this,i=e._self._c;return i("span",e._b({staticClass:"material-design-icon minus-box-icon",attrs:{"aria-hidden":e.title?null:!0,"aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[i("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[i("path",{attrs:{d:"M17,13H7V11H17M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z"}},[e.title?i("title",[e._v(e._s(e.title))]):e._e()])])])},Wt=[],qt=C(Yt,Zt,Wt,!1,null,null,null,null);const Jt=qt.exports,Qt={name:"CheckboxMarkedIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Xt=function(){var e=this,i=e._self._c;return i("span",e._b({staticClass:"material-design-icon checkbox-marked-icon",attrs:{"aria-hidden":e.title?null:!0,"aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[i("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[i("path",{attrs:{d:"M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z"}},[e.title?i("title",[e._v(e._s(e.title))]):e._e()])])])},te=[],ee=C(Qt,Xt,te,!1,null,null,null,null);const ie=ee.exports,ne={name:"Checkbox",props:{id:{type:String,required:!0,validator:e=>e.trim()!==""},checked:{type:[Boolean,Array,String],default:!1},value:{type:String,default:null},disabled:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},wrapperElement:{type:String,default:"span"},name:{type:String,default:null}},computed:{size(){return 24},cssVars(){return{"--icon-size":this.size+"px"}},isChecked(){return[...this.checked].indexOf(this.value)>-1},checkboxRadioIconElement(){return this.indeterminate?Jt:this.disabled&&!this.isChecked?Rt:this.isChecked?ie:Kt}},methods:{onToggle(){if(this.disabled)return;if(typeof this.checked=="boolean"){this.$emit("update:checked",!this.isChecked);return}const e=this.getInputsSet().filter(i=>i.checked).map(i=>i.value);this.$emit("update:checked",e)},getInputsSet(){return[...document.getElementsByName(this.name)]}}};var oe=function(){var e=this,i=e._self._c;return i(e.wrapperElement,{tag:"element",staticClass:"checkbox-radio-switch checkbox-radio-switch-checkbox",class:{"checkbox-radio-switch--checked":e.isChecked,"checkbox-radio-switch--disabled":e.disabled,"checkbox-radio-switch--indeterminate":e.indeterminate},style:e.cssVars},[i("input",{staticClass:"checkbox-radio-switch__input",attrs:{id:e.id,disabled:e.disabled,indeterminate:e.indeterminate,name:e.name,type:"checkbox"},domProps:{checked:e.isChecked,value:e.value},on:{change:e.onToggle}}),i("label",{staticClass:"checkbox-radio-switch__label",attrs:{for:e.id}},[i(e.checkboxRadioIconElement,{tag:"component",staticClass:"checkbox-radio-switch__icon",attrs:{size:e.size,"aria-hidden":"true"}}),i("span",{staticClass:"sr-only"},[e._t("default")],2)],1)])},re=[],ae=C(ne,oe,re,!1,null,"a72a40ed",null,null);const se=ae.exports;function K(e,i){return e.methods.includes(i)}function N(e,i){for(const n of e)if(K(n,i)&&!n[i])return!0;return!1}const ce={name:"ActivityGrid",components:{Checkbox:se},computed:{...L(["checkedActivities"]),...B(["methods","activityGroups","emailEnabled","isEmailSet","settingBatchtime"])},methods:{isActivityEnabled:K,...j(["toggleMethodForMethodAndActivity","toggleMethodForGroup"]),actionName(e){return e==="email"?t("activity","Send email"):t("activity","Send push notification")}}};var le=function(){var e=this,i=e._self._c;return i("table",{staticClass:"grid activitysettings"},[i("caption",{staticClass:"sr-only"},[e._v(" "+e._s(e.t("activity","Activity notification configuration"))+" ")]),e._l(e.activityGroups,function(n,o){return i("tbody",{key:o},[i("tr",{staticClass:"group-header"},[i("th",{staticClass:"group-header-section"},[e._v(" "+e._s(n.name)+" ")]),e._l(e.methods,function(r,a){return i("th",{key:a,staticClass:"activity_select_group"},[e._v(" "+e._s(r)+" ")])})],2),e._l(n.activities,function(r,a){return i("tr",{key:a},[i("th",{attrs:{scope:"row"}},[i("span",{domProps:{innerHTML:e._s(r.desc)}})]),e._l(e.methods,function(s,c){return i("td",{key:c},[i("Checkbox",{attrs:{id:"".concat(a,"_").concat(c),disabled:!e.isActivityEnabled(r,c),checked:e.checkedActivities,value:"".concat(a,"_").concat(c)},on:{"update:checked":function(u){return e.toggleMethodForMethodAndActivity({groupKey:o,activityKey:a,methodKey:c})}}},[e._v(" "+e._s(e.actionName(c))+" ")])],1)})],2)})],2)})],2)},ue=[],de=C(ce,le,ue,!1,null,"100252ef",null,null);const ge=de.exports;ut.use(nt);const _e=new nt.Store({strict:!0,state:{setting:g("activity","setting"),activityGroups:g("activity","activity_groups"),isEmailSet:g("activity","is_email_set"),emailEnabled:g("activity","email_enabled"),activityDigestEnabled:g("activity","activity_digest_enabled",!1),settingBatchtime:g("activity","setting_batchtime"),methods:g("activity","methods"),endpoint:""},getters:{checkedActivities(e){const i=(n,o)=>{const r=[];return o.email&&r.push({activityKey:n,method:"email",activity:o}),o.notification&&r.push({activityKey:n,method:"notification",activity:o}),r};return Object.values(e.activityGroups).map(n=>Object.entries(n.activities)).reduce((n,o)=>n.concat(o),[]).map(([n,o])=>i(n,o)).reduce((n,o)=>n.concat(o),[]).filter(({activity:n,method:o})=>n[o]).map(({activityKey:n,method:o})=>"".concat(n,"_").concat(o))}},mutations:{SET_METHOD_FOR_METHOD_AND_ACTIVITY(e,{groupKey:i,activityKey:n,methodKey:o,value:r}){const a=e.activityGroups[i].activities[n];K(a,o)&&(a[o]=r)},SET_ENDPOINT(e,{endpoint:i}){e.endpoint=i},SET_SETTING_BATCHTIME(e,{settingBatchtime:i}){e.settingBatchtime=i},TOGGLE_ACTIVITY_DIGEST(e,{activityDigestEnabled:i}){e.activityDigestEnabled=i},TOGGLE_EMAIL_ENABLED(e,{emailEnabled:i}){e.emailEnabled=i}},actions:{setEndpoint({commit:e},{endpoint:i}){e("SET_ENDPOINT",{endpoint:i})},toggleMethodForMethodAndActivity({commit:e,state:i,dispatch:n},{groupKey:o,activityKey:r,methodKey:a}){const s=i.activityGroups[o].activities[r],c=N([s],a);e("SET_METHOD_FOR_METHOD_AND_ACTIVITY",{groupKey:o,activityKey:r,methodKey:a,value:c}),n("saveSettings")},toggleMethodForGroup({commit:e,state:i,dispatch:n},{groupKey:o,methodKey:r}){const a=Object.values(i.activityGroups[o].activities),s=N(a,r);for(const c in i.activityGroups[o].activities)e("SET_METHOD_FOR_METHOD_AND_ACTIVITY",{groupKey:o,activityKey:c,methodKey:r,value:s});n("saveSettings")},toggleMethodsForActivity({commit:e,state:i,dispatch:n},{groupKey:o,activityKey:r}){const a=i.activityGroups[o].activities[r],s=a.methods.map(c=>N([a],c)).includes(!0);for(const c of a.methods)e("SET_METHOD_FOR_METHOD_AND_ACTIVITY",{groupKey:o,activityKey:r,methodKey:c,value:s});n("saveSettings")},setSettingBatchtime({commit:e,dispatch:i},{settingBatchtime:n}){e("SET_SETTING_BATCHTIME",{settingBatchtime:n}),i("saveSettings")},toggleActivityDigestEnabled({commit:e,dispatch:i},{activityDigestEnabled:n}){e("TOGGLE_ACTIVITY_DIGEST",{activityDigestEnabled:n}),i("saveSettings")},toggleEmailEnabled({commit:e},{emailEnabled:i}){e("TOGGLE_EMAIL_ENABLED",{emailEnabled:i});try{OCP.AppConfig.setValue("activity","enable_email",i?"yes":"no"),F(G("activity","Your settings have been updated."))}catch(n){P(G("activity","Unable to save the settings")),U.error("An error occurred while saving the activity settings",n)}},async saveSettings({state:e,getters:i}){try{const n=new FormData;i.checkedActivities.forEach(r=>{n.append(r,"1")}),n.append("notify_setting_batchtime","".concat(e.settingBatchtime)),n.append("activity_digest","".concat(e.activityDigestEnabled?1:0));const o=await ct.post(lt(e.endpoint),n);F(o.data.data.message)}catch(n){P(G("activity","Unable to save the settings")),U.error("An error occurred while saving the activity settings",n)}}}});export{ge as A,ve as N,nt as V,j as a,B as m,_e as s}; diff --git a/js/settings-store-FiNT_RlZ.mjs.map b/js/settings-store-jBhw-TQN.mjs.map similarity index 58% rename from js/settings-store-FiNT_RlZ.mjs.map rename to js/settings-store-jBhw-TQN.mjs.map index 8203fba6a..06df68485 100644 --- a/js/settings-store-FiNT_RlZ.mjs.map +++ b/js/settings-store-jBhw-TQN.mjs.map @@ -1 +1 @@ -{"version":3,"file":"settings-store-FiNT_RlZ.mjs","sources":["../node_modules/vuex/dist/vuex.esm.js","../node_modules/@nextcloud/vue/dist/chunks/NcSettingsSection-CFn4bRnA.mjs","../node_modules/vue-material-design-icons/CheckboxBlankOutline.vue","../node_modules/vue-material-design-icons/CheckboxBlank.vue","../node_modules/vue-material-design-icons/MinusBox.vue","../node_modules/vue-material-design-icons/CheckboxMarked.vue","../src/components/Checkbox.vue","../src/utils/settings.ts","../src/components/ActivityGrid.vue","../src/store/settings-store.js"],"sourcesContent":["/*!\n * vuex v3.6.2\n * (c) 2021 Evan You\n * @license MIT\n */\nfunction applyMixin (Vue) {\n var version = Number(Vue.version.split('.')[0]);\n\n if (version >= 2) {\n Vue.mixin({ beforeCreate: vuexInit });\n } else {\n // override init and inject vuex init procedure\n // for 1.x backwards compatibility.\n var _init = Vue.prototype._init;\n Vue.prototype._init = function (options) {\n if ( options === void 0 ) options = {};\n\n options.init = options.init\n ? [vuexInit].concat(options.init)\n : vuexInit;\n _init.call(this, options);\n };\n }\n\n /**\n * Vuex init hook, injected into each instances init hooks list.\n */\n\n function vuexInit () {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function'\n ? options.store()\n : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }\n}\n\nvar target = typeof window !== 'undefined'\n ? window\n : typeof global !== 'undefined'\n ? global\n : {};\nvar devtoolHook = target.__VUE_DEVTOOLS_GLOBAL_HOOK__;\n\nfunction devtoolPlugin (store) {\n if (!devtoolHook) { return }\n\n store._devtoolHook = devtoolHook;\n\n devtoolHook.emit('vuex:init', store);\n\n devtoolHook.on('vuex:travel-to-state', function (targetState) {\n store.replaceState(targetState);\n });\n\n store.subscribe(function (mutation, state) {\n devtoolHook.emit('vuex:mutation', mutation, state);\n }, { prepend: true });\n\n store.subscribeAction(function (action, state) {\n devtoolHook.emit('vuex:action', action, state);\n }, { prepend: true });\n}\n\n/**\n * Get the first item that pass the test\n * by second argument function\n *\n * @param {Array} list\n * @param {Function} f\n * @return {*}\n */\nfunction find (list, f) {\n return list.filter(f)[0]\n}\n\n/**\n * Deep copy the given object considering circular structure.\n * This function caches all nested objects and its copies.\n * If it detects circular structure, use cached copy to avoid infinite loop.\n *\n * @param {*} obj\n * @param {Array} cache\n * @return {*}\n */\nfunction deepCopy (obj, cache) {\n if ( cache === void 0 ) cache = [];\n\n // just return if obj is immutable value\n if (obj === null || typeof obj !== 'object') {\n return obj\n }\n\n // if obj is hit, it is in circular structure\n var hit = find(cache, function (c) { return c.original === obj; });\n if (hit) {\n return hit.copy\n }\n\n var copy = Array.isArray(obj) ? [] : {};\n // put the copy into cache at first\n // because we want to refer it in recursive deepCopy\n cache.push({\n original: obj,\n copy: copy\n });\n\n Object.keys(obj).forEach(function (key) {\n copy[key] = deepCopy(obj[key], cache);\n });\n\n return copy\n}\n\n/**\n * forEach for object\n */\nfunction forEachValue (obj, fn) {\n Object.keys(obj).forEach(function (key) { return fn(obj[key], key); });\n}\n\nfunction isObject (obj) {\n return obj !== null && typeof obj === 'object'\n}\n\nfunction isPromise (val) {\n return val && typeof val.then === 'function'\n}\n\nfunction assert (condition, msg) {\n if (!condition) { throw new Error((\"[vuex] \" + msg)) }\n}\n\nfunction partial (fn, arg) {\n return function () {\n return fn(arg)\n }\n}\n\n// Base data struct for store's module, package with some attribute and method\nvar Module = function Module (rawModule, runtime) {\n this.runtime = runtime;\n // Store some children item\n this._children = Object.create(null);\n // Store the origin module object which passed by programmer\n this._rawModule = rawModule;\n var rawState = rawModule.state;\n\n // Store the origin module's state\n this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};\n};\n\nvar prototypeAccessors = { namespaced: { configurable: true } };\n\nprototypeAccessors.namespaced.get = function () {\n return !!this._rawModule.namespaced\n};\n\nModule.prototype.addChild = function addChild (key, module) {\n this._children[key] = module;\n};\n\nModule.prototype.removeChild = function removeChild (key) {\n delete this._children[key];\n};\n\nModule.prototype.getChild = function getChild (key) {\n return this._children[key]\n};\n\nModule.prototype.hasChild = function hasChild (key) {\n return key in this._children\n};\n\nModule.prototype.update = function update (rawModule) {\n this._rawModule.namespaced = rawModule.namespaced;\n if (rawModule.actions) {\n this._rawModule.actions = rawModule.actions;\n }\n if (rawModule.mutations) {\n this._rawModule.mutations = rawModule.mutations;\n }\n if (rawModule.getters) {\n this._rawModule.getters = rawModule.getters;\n }\n};\n\nModule.prototype.forEachChild = function forEachChild (fn) {\n forEachValue(this._children, fn);\n};\n\nModule.prototype.forEachGetter = function forEachGetter (fn) {\n if (this._rawModule.getters) {\n forEachValue(this._rawModule.getters, fn);\n }\n};\n\nModule.prototype.forEachAction = function forEachAction (fn) {\n if (this._rawModule.actions) {\n forEachValue(this._rawModule.actions, fn);\n }\n};\n\nModule.prototype.forEachMutation = function forEachMutation (fn) {\n if (this._rawModule.mutations) {\n forEachValue(this._rawModule.mutations, fn);\n }\n};\n\nObject.defineProperties( Module.prototype, prototypeAccessors );\n\nvar ModuleCollection = function ModuleCollection (rawRootModule) {\n // register root module (Vuex.Store options)\n this.register([], rawRootModule, false);\n};\n\nModuleCollection.prototype.get = function get (path) {\n return path.reduce(function (module, key) {\n return module.getChild(key)\n }, this.root)\n};\n\nModuleCollection.prototype.getNamespace = function getNamespace (path) {\n var module = this.root;\n return path.reduce(function (namespace, key) {\n module = module.getChild(key);\n return namespace + (module.namespaced ? key + '/' : '')\n }, '')\n};\n\nModuleCollection.prototype.update = function update$1 (rawRootModule) {\n update([], this.root, rawRootModule);\n};\n\nModuleCollection.prototype.register = function register (path, rawModule, runtime) {\n var this$1 = this;\n if ( runtime === void 0 ) runtime = true;\n\n if ((process.env.NODE_ENV !== 'production')) {\n assertRawModule(path, rawModule);\n }\n\n var newModule = new Module(rawModule, runtime);\n if (path.length === 0) {\n this.root = newModule;\n } else {\n var parent = this.get(path.slice(0, -1));\n parent.addChild(path[path.length - 1], newModule);\n }\n\n // register nested modules\n if (rawModule.modules) {\n forEachValue(rawModule.modules, function (rawChildModule, key) {\n this$1.register(path.concat(key), rawChildModule, runtime);\n });\n }\n};\n\nModuleCollection.prototype.unregister = function unregister (path) {\n var parent = this.get(path.slice(0, -1));\n var key = path[path.length - 1];\n var child = parent.getChild(key);\n\n if (!child) {\n if ((process.env.NODE_ENV !== 'production')) {\n console.warn(\n \"[vuex] trying to unregister module '\" + key + \"', which is \" +\n \"not registered\"\n );\n }\n return\n }\n\n if (!child.runtime) {\n return\n }\n\n parent.removeChild(key);\n};\n\nModuleCollection.prototype.isRegistered = function isRegistered (path) {\n var parent = this.get(path.slice(0, -1));\n var key = path[path.length - 1];\n\n if (parent) {\n return parent.hasChild(key)\n }\n\n return false\n};\n\nfunction update (path, targetModule, newModule) {\n if ((process.env.NODE_ENV !== 'production')) {\n assertRawModule(path, newModule);\n }\n\n // update target module\n targetModule.update(newModule);\n\n // update nested modules\n if (newModule.modules) {\n for (var key in newModule.modules) {\n if (!targetModule.getChild(key)) {\n if ((process.env.NODE_ENV !== 'production')) {\n console.warn(\n \"[vuex] trying to add a new module '\" + key + \"' on hot reloading, \" +\n 'manual reload is needed'\n );\n }\n return\n }\n update(\n path.concat(key),\n targetModule.getChild(key),\n newModule.modules[key]\n );\n }\n }\n}\n\nvar functionAssert = {\n assert: function (value) { return typeof value === 'function'; },\n expected: 'function'\n};\n\nvar objectAssert = {\n assert: function (value) { return typeof value === 'function' ||\n (typeof value === 'object' && typeof value.handler === 'function'); },\n expected: 'function or object with \"handler\" function'\n};\n\nvar assertTypes = {\n getters: functionAssert,\n mutations: functionAssert,\n actions: objectAssert\n};\n\nfunction assertRawModule (path, rawModule) {\n Object.keys(assertTypes).forEach(function (key) {\n if (!rawModule[key]) { return }\n\n var assertOptions = assertTypes[key];\n\n forEachValue(rawModule[key], function (value, type) {\n assert(\n assertOptions.assert(value),\n makeAssertionMessage(path, key, type, value, assertOptions.expected)\n );\n });\n });\n}\n\nfunction makeAssertionMessage (path, key, type, value, expected) {\n var buf = key + \" should be \" + expected + \" but \\\"\" + key + \".\" + type + \"\\\"\";\n if (path.length > 0) {\n buf += \" in module \\\"\" + (path.join('.')) + \"\\\"\";\n }\n buf += \" is \" + (JSON.stringify(value)) + \".\";\n return buf\n}\n\nvar Vue; // bind on install\n\nvar Store = function Store (options) {\n var this$1 = this;\n if ( options === void 0 ) options = {};\n\n // Auto install if it is not done yet and `window` has `Vue`.\n // To allow users to avoid auto-installation in some cases,\n // this code should be placed here. See #731\n if (!Vue && typeof window !== 'undefined' && window.Vue) {\n install(window.Vue);\n }\n\n if ((process.env.NODE_ENV !== 'production')) {\n assert(Vue, \"must call Vue.use(Vuex) before creating a store instance.\");\n assert(typeof Promise !== 'undefined', \"vuex requires a Promise polyfill in this browser.\");\n assert(this instanceof Store, \"store must be called with the new operator.\");\n }\n\n var plugins = options.plugins; if ( plugins === void 0 ) plugins = [];\n var strict = options.strict; if ( strict === void 0 ) strict = false;\n\n // store internal state\n this._committing = false;\n this._actions = Object.create(null);\n this._actionSubscribers = [];\n this._mutations = Object.create(null);\n this._wrappedGetters = Object.create(null);\n this._modules = new ModuleCollection(options);\n this._modulesNamespaceMap = Object.create(null);\n this._subscribers = [];\n this._watcherVM = new Vue();\n this._makeLocalGettersCache = Object.create(null);\n\n // bind commit and dispatch to self\n var store = this;\n var ref = this;\n var dispatch = ref.dispatch;\n var commit = ref.commit;\n this.dispatch = function boundDispatch (type, payload) {\n return dispatch.call(store, type, payload)\n };\n this.commit = function boundCommit (type, payload, options) {\n return commit.call(store, type, payload, options)\n };\n\n // strict mode\n this.strict = strict;\n\n var state = this._modules.root.state;\n\n // init root module.\n // this also recursively registers all sub-modules\n // and collects all module getters inside this._wrappedGetters\n installModule(this, state, [], this._modules.root);\n\n // initialize the store vm, which is responsible for the reactivity\n // (also registers _wrappedGetters as computed properties)\n resetStoreVM(this, state);\n\n // apply plugins\n plugins.forEach(function (plugin) { return plugin(this$1); });\n\n var useDevtools = options.devtools !== undefined ? options.devtools : Vue.config.devtools;\n if (useDevtools) {\n devtoolPlugin(this);\n }\n};\n\nvar prototypeAccessors$1 = { state: { configurable: true } };\n\nprototypeAccessors$1.state.get = function () {\n return this._vm._data.$$state\n};\n\nprototypeAccessors$1.state.set = function (v) {\n if ((process.env.NODE_ENV !== 'production')) {\n assert(false, \"use store.replaceState() to explicit replace store state.\");\n }\n};\n\nStore.prototype.commit = function commit (_type, _payload, _options) {\n var this$1 = this;\n\n // check object-style commit\n var ref = unifyObjectStyle(_type, _payload, _options);\n var type = ref.type;\n var payload = ref.payload;\n var options = ref.options;\n\n var mutation = { type: type, payload: payload };\n var entry = this._mutations[type];\n if (!entry) {\n if ((process.env.NODE_ENV !== 'production')) {\n console.error((\"[vuex] unknown mutation type: \" + type));\n }\n return\n }\n this._withCommit(function () {\n entry.forEach(function commitIterator (handler) {\n handler(payload);\n });\n });\n\n this._subscribers\n .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe\n .forEach(function (sub) { return sub(mutation, this$1.state); });\n\n if (\n (process.env.NODE_ENV !== 'production') &&\n options && options.silent\n ) {\n console.warn(\n \"[vuex] mutation type: \" + type + \". Silent option has been removed. \" +\n 'Use the filter functionality in the vue-devtools'\n );\n }\n};\n\nStore.prototype.dispatch = function dispatch (_type, _payload) {\n var this$1 = this;\n\n // check object-style dispatch\n var ref = unifyObjectStyle(_type, _payload);\n var type = ref.type;\n var payload = ref.payload;\n\n var action = { type: type, payload: payload };\n var entry = this._actions[type];\n if (!entry) {\n if ((process.env.NODE_ENV !== 'production')) {\n console.error((\"[vuex] unknown action type: \" + type));\n }\n return\n }\n\n try {\n this._actionSubscribers\n .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe\n .filter(function (sub) { return sub.before; })\n .forEach(function (sub) { return sub.before(action, this$1.state); });\n } catch (e) {\n if ((process.env.NODE_ENV !== 'production')) {\n console.warn(\"[vuex] error in before action subscribers: \");\n console.error(e);\n }\n }\n\n var result = entry.length > 1\n ? Promise.all(entry.map(function (handler) { return handler(payload); }))\n : entry[0](payload);\n\n return new Promise(function (resolve, reject) {\n result.then(function (res) {\n try {\n this$1._actionSubscribers\n .filter(function (sub) { return sub.after; })\n .forEach(function (sub) { return sub.after(action, this$1.state); });\n } catch (e) {\n if ((process.env.NODE_ENV !== 'production')) {\n console.warn(\"[vuex] error in after action subscribers: \");\n console.error(e);\n }\n }\n resolve(res);\n }, function (error) {\n try {\n this$1._actionSubscribers\n .filter(function (sub) { return sub.error; })\n .forEach(function (sub) { return sub.error(action, this$1.state, error); });\n } catch (e) {\n if ((process.env.NODE_ENV !== 'production')) {\n console.warn(\"[vuex] error in error action subscribers: \");\n console.error(e);\n }\n }\n reject(error);\n });\n })\n};\n\nStore.prototype.subscribe = function subscribe (fn, options) {\n return genericSubscribe(fn, this._subscribers, options)\n};\n\nStore.prototype.subscribeAction = function subscribeAction (fn, options) {\n var subs = typeof fn === 'function' ? { before: fn } : fn;\n return genericSubscribe(subs, this._actionSubscribers, options)\n};\n\nStore.prototype.watch = function watch (getter, cb, options) {\n var this$1 = this;\n\n if ((process.env.NODE_ENV !== 'production')) {\n assert(typeof getter === 'function', \"store.watch only accepts a function.\");\n }\n return this._watcherVM.$watch(function () { return getter(this$1.state, this$1.getters); }, cb, options)\n};\n\nStore.prototype.replaceState = function replaceState (state) {\n var this$1 = this;\n\n this._withCommit(function () {\n this$1._vm._data.$$state = state;\n });\n};\n\nStore.prototype.registerModule = function registerModule (path, rawModule, options) {\n if ( options === void 0 ) options = {};\n\n if (typeof path === 'string') { path = [path]; }\n\n if ((process.env.NODE_ENV !== 'production')) {\n assert(Array.isArray(path), \"module path must be a string or an Array.\");\n assert(path.length > 0, 'cannot register the root module by using registerModule.');\n }\n\n this._modules.register(path, rawModule);\n installModule(this, this.state, path, this._modules.get(path), options.preserveState);\n // reset store to update getters...\n resetStoreVM(this, this.state);\n};\n\nStore.prototype.unregisterModule = function unregisterModule (path) {\n var this$1 = this;\n\n if (typeof path === 'string') { path = [path]; }\n\n if ((process.env.NODE_ENV !== 'production')) {\n assert(Array.isArray(path), \"module path must be a string or an Array.\");\n }\n\n this._modules.unregister(path);\n this._withCommit(function () {\n var parentState = getNestedState(this$1.state, path.slice(0, -1));\n Vue.delete(parentState, path[path.length - 1]);\n });\n resetStore(this);\n};\n\nStore.prototype.hasModule = function hasModule (path) {\n if (typeof path === 'string') { path = [path]; }\n\n if ((process.env.NODE_ENV !== 'production')) {\n assert(Array.isArray(path), \"module path must be a string or an Array.\");\n }\n\n return this._modules.isRegistered(path)\n};\n\nStore.prototype.hotUpdate = function hotUpdate (newOptions) {\n this._modules.update(newOptions);\n resetStore(this, true);\n};\n\nStore.prototype._withCommit = function _withCommit (fn) {\n var committing = this._committing;\n this._committing = true;\n fn();\n this._committing = committing;\n};\n\nObject.defineProperties( Store.prototype, prototypeAccessors$1 );\n\nfunction genericSubscribe (fn, subs, options) {\n if (subs.indexOf(fn) < 0) {\n options && options.prepend\n ? subs.unshift(fn)\n : subs.push(fn);\n }\n return function () {\n var i = subs.indexOf(fn);\n if (i > -1) {\n subs.splice(i, 1);\n }\n }\n}\n\nfunction resetStore (store, hot) {\n store._actions = Object.create(null);\n store._mutations = Object.create(null);\n store._wrappedGetters = Object.create(null);\n store._modulesNamespaceMap = Object.create(null);\n var state = store.state;\n // init all modules\n installModule(store, state, [], store._modules.root, true);\n // reset vm\n resetStoreVM(store, state, hot);\n}\n\nfunction resetStoreVM (store, state, hot) {\n var oldVm = store._vm;\n\n // bind store public getters\n store.getters = {};\n // reset local getters cache\n store._makeLocalGettersCache = Object.create(null);\n var wrappedGetters = store._wrappedGetters;\n var computed = {};\n forEachValue(wrappedGetters, function (fn, key) {\n // use computed to leverage its lazy-caching mechanism\n // direct inline function use will lead to closure preserving oldVm.\n // using partial to return function with only arguments preserved in closure environment.\n computed[key] = partial(fn, store);\n Object.defineProperty(store.getters, key, {\n get: function () { return store._vm[key]; },\n enumerable: true // for local getters\n });\n });\n\n // use a Vue instance to store the state tree\n // suppress warnings just in case the user has added\n // some funky global mixins\n var silent = Vue.config.silent;\n Vue.config.silent = true;\n store._vm = new Vue({\n data: {\n $$state: state\n },\n computed: computed\n });\n Vue.config.silent = silent;\n\n // enable strict mode for new vm\n if (store.strict) {\n enableStrictMode(store);\n }\n\n if (oldVm) {\n if (hot) {\n // dispatch changes in all subscribed watchers\n // to force getter re-evaluation for hot reloading.\n store._withCommit(function () {\n oldVm._data.$$state = null;\n });\n }\n Vue.nextTick(function () { return oldVm.$destroy(); });\n }\n}\n\nfunction installModule (store, rootState, path, module, hot) {\n var isRoot = !path.length;\n var namespace = store._modules.getNamespace(path);\n\n // register in namespace map\n if (module.namespaced) {\n if (store._modulesNamespaceMap[namespace] && (process.env.NODE_ENV !== 'production')) {\n console.error((\"[vuex] duplicate namespace \" + namespace + \" for the namespaced module \" + (path.join('/'))));\n }\n store._modulesNamespaceMap[namespace] = module;\n }\n\n // set state\n if (!isRoot && !hot) {\n var parentState = getNestedState(rootState, path.slice(0, -1));\n var moduleName = path[path.length - 1];\n store._withCommit(function () {\n if ((process.env.NODE_ENV !== 'production')) {\n if (moduleName in parentState) {\n console.warn(\n (\"[vuex] state field \\\"\" + moduleName + \"\\\" was overridden by a module with the same name at \\\"\" + (path.join('.')) + \"\\\"\")\n );\n }\n }\n Vue.set(parentState, moduleName, module.state);\n });\n }\n\n var local = module.context = makeLocalContext(store, namespace, path);\n\n module.forEachMutation(function (mutation, key) {\n var namespacedType = namespace + key;\n registerMutation(store, namespacedType, mutation, local);\n });\n\n module.forEachAction(function (action, key) {\n var type = action.root ? key : namespace + key;\n var handler = action.handler || action;\n registerAction(store, type, handler, local);\n });\n\n module.forEachGetter(function (getter, key) {\n var namespacedType = namespace + key;\n registerGetter(store, namespacedType, getter, local);\n });\n\n module.forEachChild(function (child, key) {\n installModule(store, rootState, path.concat(key), child, hot);\n });\n}\n\n/**\n * make localized dispatch, commit, getters and state\n * if there is no namespace, just use root ones\n */\nfunction makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ((process.env.NODE_ENV !== 'production') && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ((process.env.NODE_ENV !== 'production') && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}\n\nfunction makeLocalGetters (store, namespace) {\n if (!store._makeLocalGettersCache[namespace]) {\n var gettersProxy = {};\n var splitPos = namespace.length;\n Object.keys(store.getters).forEach(function (type) {\n // skip if the target getter is not match this namespace\n if (type.slice(0, splitPos) !== namespace) { return }\n\n // extract local getter type\n var localType = type.slice(splitPos);\n\n // Add a port to the getters proxy.\n // Define as getter property because\n // we do not want to evaluate the getters in this time.\n Object.defineProperty(gettersProxy, localType, {\n get: function () { return store.getters[type]; },\n enumerable: true\n });\n });\n store._makeLocalGettersCache[namespace] = gettersProxy;\n }\n\n return store._makeLocalGettersCache[namespace]\n}\n\nfunction registerMutation (store, type, handler, local) {\n var entry = store._mutations[type] || (store._mutations[type] = []);\n entry.push(function wrappedMutationHandler (payload) {\n handler.call(store, local.state, payload);\n });\n}\n\nfunction registerAction (store, type, handler, local) {\n var entry = store._actions[type] || (store._actions[type] = []);\n entry.push(function wrappedActionHandler (payload) {\n var res = handler.call(store, {\n dispatch: local.dispatch,\n commit: local.commit,\n getters: local.getters,\n state: local.state,\n rootGetters: store.getters,\n rootState: store.state\n }, payload);\n if (!isPromise(res)) {\n res = Promise.resolve(res);\n }\n if (store._devtoolHook) {\n return res.catch(function (err) {\n store._devtoolHook.emit('vuex:error', err);\n throw err\n })\n } else {\n return res\n }\n });\n}\n\nfunction registerGetter (store, type, rawGetter, local) {\n if (store._wrappedGetters[type]) {\n if ((process.env.NODE_ENV !== 'production')) {\n console.error((\"[vuex] duplicate getter key: \" + type));\n }\n return\n }\n store._wrappedGetters[type] = function wrappedGetter (store) {\n return rawGetter(\n local.state, // local state\n local.getters, // local getters\n store.state, // root state\n store.getters // root getters\n )\n };\n}\n\nfunction enableStrictMode (store) {\n store._vm.$watch(function () { return this._data.$$state }, function () {\n if ((process.env.NODE_ENV !== 'production')) {\n assert(store._committing, \"do not mutate vuex store state outside mutation handlers.\");\n }\n }, { deep: true, sync: true });\n}\n\nfunction getNestedState (state, path) {\n return path.reduce(function (state, key) { return state[key]; }, state)\n}\n\nfunction unifyObjectStyle (type, payload, options) {\n if (isObject(type) && type.type) {\n options = payload;\n payload = type;\n type = type.type;\n }\n\n if ((process.env.NODE_ENV !== 'production')) {\n assert(typeof type === 'string', (\"expects string as the type, but found \" + (typeof type) + \".\"));\n }\n\n return { type: type, payload: payload, options: options }\n}\n\nfunction install (_Vue) {\n if (Vue && _Vue === Vue) {\n if ((process.env.NODE_ENV !== 'production')) {\n console.error(\n '[vuex] already installed. Vue.use(Vuex) should be called only once.'\n );\n }\n return\n }\n Vue = _Vue;\n applyMixin(Vue);\n}\n\n/**\n * Reduce the code which written in Vue.js for getting the state.\n * @param {String} [namespace] - Module's namespace\n * @param {Object|Array} states # Object's item can be a function which accept state and getters for param, you can do something for state and getters in it.\n * @param {Object}\n */\nvar mapState = normalizeNamespace(function (namespace, states) {\n var res = {};\n if ((process.env.NODE_ENV !== 'production') && !isValidMap(states)) {\n console.error('[vuex] mapState: mapper parameter must be either an Array or an Object');\n }\n normalizeMap(states).forEach(function (ref) {\n var key = ref.key;\n var val = ref.val;\n\n res[key] = function mappedState () {\n var state = this.$store.state;\n var getters = this.$store.getters;\n if (namespace) {\n var module = getModuleByNamespace(this.$store, 'mapState', namespace);\n if (!module) {\n return\n }\n state = module.context.state;\n getters = module.context.getters;\n }\n return typeof val === 'function'\n ? val.call(this, state, getters)\n : state[val]\n };\n // mark vuex getter for devtools\n res[key].vuex = true;\n });\n return res\n});\n\n/**\n * Reduce the code which written in Vue.js for committing the mutation\n * @param {String} [namespace] - Module's namespace\n * @param {Object|Array} mutations # Object's item can be a function which accept `commit` function as the first param, it can accept another params. You can commit mutation and do any other things in this function. specially, You need to pass anthor params from the mapped function.\n * @return {Object}\n */\nvar mapMutations = normalizeNamespace(function (namespace, mutations) {\n var res = {};\n if ((process.env.NODE_ENV !== 'production') && !isValidMap(mutations)) {\n console.error('[vuex] mapMutations: mapper parameter must be either an Array or an Object');\n }\n normalizeMap(mutations).forEach(function (ref) {\n var key = ref.key;\n var val = ref.val;\n\n res[key] = function mappedMutation () {\n var args = [], len = arguments.length;\n while ( len-- ) args[ len ] = arguments[ len ];\n\n // Get the commit method from store\n var commit = this.$store.commit;\n if (namespace) {\n var module = getModuleByNamespace(this.$store, 'mapMutations', namespace);\n if (!module) {\n return\n }\n commit = module.context.commit;\n }\n return typeof val === 'function'\n ? val.apply(this, [commit].concat(args))\n : commit.apply(this.$store, [val].concat(args))\n };\n });\n return res\n});\n\n/**\n * Reduce the code which written in Vue.js for getting the getters\n * @param {String} [namespace] - Module's namespace\n * @param {Object|Array} getters\n * @return {Object}\n */\nvar mapGetters = normalizeNamespace(function (namespace, getters) {\n var res = {};\n if ((process.env.NODE_ENV !== 'production') && !isValidMap(getters)) {\n console.error('[vuex] mapGetters: mapper parameter must be either an Array or an Object');\n }\n normalizeMap(getters).forEach(function (ref) {\n var key = ref.key;\n var val = ref.val;\n\n // The namespace has been mutated by normalizeNamespace\n val = namespace + val;\n res[key] = function mappedGetter () {\n if (namespace && !getModuleByNamespace(this.$store, 'mapGetters', namespace)) {\n return\n }\n if ((process.env.NODE_ENV !== 'production') && !(val in this.$store.getters)) {\n console.error((\"[vuex] unknown getter: \" + val));\n return\n }\n return this.$store.getters[val]\n };\n // mark vuex getter for devtools\n res[key].vuex = true;\n });\n return res\n});\n\n/**\n * Reduce the code which written in Vue.js for dispatch the action\n * @param {String} [namespace] - Module's namespace\n * @param {Object|Array} actions # Object's item can be a function which accept `dispatch` function as the first param, it can accept anthor params. You can dispatch action and do any other things in this function. specially, You need to pass anthor params from the mapped function.\n * @return {Object}\n */\nvar mapActions = normalizeNamespace(function (namespace, actions) {\n var res = {};\n if ((process.env.NODE_ENV !== 'production') && !isValidMap(actions)) {\n console.error('[vuex] mapActions: mapper parameter must be either an Array or an Object');\n }\n normalizeMap(actions).forEach(function (ref) {\n var key = ref.key;\n var val = ref.val;\n\n res[key] = function mappedAction () {\n var args = [], len = arguments.length;\n while ( len-- ) args[ len ] = arguments[ len ];\n\n // get dispatch function from store\n var dispatch = this.$store.dispatch;\n if (namespace) {\n var module = getModuleByNamespace(this.$store, 'mapActions', namespace);\n if (!module) {\n return\n }\n dispatch = module.context.dispatch;\n }\n return typeof val === 'function'\n ? val.apply(this, [dispatch].concat(args))\n : dispatch.apply(this.$store, [val].concat(args))\n };\n });\n return res\n});\n\n/**\n * Rebinding namespace param for mapXXX function in special scoped, and return them by simple object\n * @param {String} namespace\n * @return {Object}\n */\nvar createNamespacedHelpers = function (namespace) { return ({\n mapState: mapState.bind(null, namespace),\n mapGetters: mapGetters.bind(null, namespace),\n mapMutations: mapMutations.bind(null, namespace),\n mapActions: mapActions.bind(null, namespace)\n}); };\n\n/**\n * Normalize the map\n * normalizeMap([1, 2, 3]) => [ { key: 1, val: 1 }, { key: 2, val: 2 }, { key: 3, val: 3 } ]\n * normalizeMap({a: 1, b: 2, c: 3}) => [ { key: 'a', val: 1 }, { key: 'b', val: 2 }, { key: 'c', val: 3 } ]\n * @param {Array|Object} map\n * @return {Object}\n */\nfunction normalizeMap (map) {\n if (!isValidMap(map)) {\n return []\n }\n return Array.isArray(map)\n ? map.map(function (key) { return ({ key: key, val: key }); })\n : Object.keys(map).map(function (key) { return ({ key: key, val: map[key] }); })\n}\n\n/**\n * Validate whether given map is valid or not\n * @param {*} map\n * @return {Boolean}\n */\nfunction isValidMap (map) {\n return Array.isArray(map) || isObject(map)\n}\n\n/**\n * Return a function expect two param contains namespace and map. it will normalize the namespace and then the param's function will handle the new namespace and the map.\n * @param {Function} fn\n * @return {Function}\n */\nfunction normalizeNamespace (fn) {\n return function (namespace, map) {\n if (typeof namespace !== 'string') {\n map = namespace;\n namespace = '';\n } else if (namespace.charAt(namespace.length - 1) !== '/') {\n namespace += '/';\n }\n return fn(namespace, map)\n }\n}\n\n/**\n * Search a special module from store by namespace. if module not exist, print error message.\n * @param {Object} store\n * @param {String} helper\n * @param {String} namespace\n * @return {Object}\n */\nfunction getModuleByNamespace (store, helper, namespace) {\n var module = store._modulesNamespaceMap[namespace];\n if ((process.env.NODE_ENV !== 'production') && !module) {\n console.error((\"[vuex] module namespace not found in \" + helper + \"(): \" + namespace));\n }\n return module\n}\n\n// Credits: borrowed code from fcomb/redux-logger\n\nfunction createLogger (ref) {\n if ( ref === void 0 ) ref = {};\n var collapsed = ref.collapsed; if ( collapsed === void 0 ) collapsed = true;\n var filter = ref.filter; if ( filter === void 0 ) filter = function (mutation, stateBefore, stateAfter) { return true; };\n var transformer = ref.transformer; if ( transformer === void 0 ) transformer = function (state) { return state; };\n var mutationTransformer = ref.mutationTransformer; if ( mutationTransformer === void 0 ) mutationTransformer = function (mut) { return mut; };\n var actionFilter = ref.actionFilter; if ( actionFilter === void 0 ) actionFilter = function (action, state) { return true; };\n var actionTransformer = ref.actionTransformer; if ( actionTransformer === void 0 ) actionTransformer = function (act) { return act; };\n var logMutations = ref.logMutations; if ( logMutations === void 0 ) logMutations = true;\n var logActions = ref.logActions; if ( logActions === void 0 ) logActions = true;\n var logger = ref.logger; if ( logger === void 0 ) logger = console;\n\n return function (store) {\n var prevState = deepCopy(store.state);\n\n if (typeof logger === 'undefined') {\n return\n }\n\n if (logMutations) {\n store.subscribe(function (mutation, state) {\n var nextState = deepCopy(state);\n\n if (filter(mutation, prevState, nextState)) {\n var formattedTime = getFormattedTime();\n var formattedMutation = mutationTransformer(mutation);\n var message = \"mutation \" + (mutation.type) + formattedTime;\n\n startMessage(logger, message, collapsed);\n logger.log('%c prev state', 'color: #9E9E9E; font-weight: bold', transformer(prevState));\n logger.log('%c mutation', 'color: #03A9F4; font-weight: bold', formattedMutation);\n logger.log('%c next state', 'color: #4CAF50; font-weight: bold', transformer(nextState));\n endMessage(logger);\n }\n\n prevState = nextState;\n });\n }\n\n if (logActions) {\n store.subscribeAction(function (action, state) {\n if (actionFilter(action, state)) {\n var formattedTime = getFormattedTime();\n var formattedAction = actionTransformer(action);\n var message = \"action \" + (action.type) + formattedTime;\n\n startMessage(logger, message, collapsed);\n logger.log('%c action', 'color: #03A9F4; font-weight: bold', formattedAction);\n endMessage(logger);\n }\n });\n }\n }\n}\n\nfunction startMessage (logger, message, collapsed) {\n var startMessage = collapsed\n ? logger.groupCollapsed\n : logger.group;\n\n // render\n try {\n startMessage.call(logger, message);\n } catch (e) {\n logger.log(message);\n }\n}\n\nfunction endMessage (logger) {\n try {\n logger.groupEnd();\n } catch (e) {\n logger.log('—— log end ——');\n }\n}\n\nfunction getFormattedTime () {\n var time = new Date();\n return (\" @ \" + (pad(time.getHours(), 2)) + \":\" + (pad(time.getMinutes(), 2)) + \":\" + (pad(time.getSeconds(), 2)) + \".\" + (pad(time.getMilliseconds(), 3)))\n}\n\nfunction repeat (str, times) {\n return (new Array(times + 1)).join(str)\n}\n\nfunction pad (num, maxLength) {\n return repeat('0', maxLength - num.toString().length) + num\n}\n\nvar index = {\n Store: Store,\n install: install,\n version: '3.6.2',\n mapState: mapState,\n mapMutations: mapMutations,\n mapGetters: mapGetters,\n mapActions: mapActions,\n createNamespacedHelpers: createNamespacedHelpers,\n createLogger: createLogger\n};\n\nexport default index;\nexport { Store, createLogger, createNamespacedHelpers, install, mapActions, mapGetters, mapMutations, mapState };\n","import '../assets/NcSettingsSection-DZwOPKg1.css';\nimport { r as register, p as t23, a as t } from \"./_l10n-DDx8P-X1.mjs\";\nimport { n as normalizeComponent } from \"./_plugin-vue2_normalizer-D637Qkok.mjs\";\nregister(t23);\nconst _sfc_main$1 = {\n name: \"HelpCircleIcon\",\n emits: [\"click\"],\n props: {\n title: {\n type: String\n },\n fillColor: {\n type: String,\n default: \"currentColor\"\n },\n size: {\n type: Number,\n default: 24\n }\n }\n};\nvar _sfc_render$1 = function render() {\n var _vm = this, _c = _vm._self._c;\n return _c(\"span\", _vm._b({ staticClass: \"material-design-icon help-circle-icon\", attrs: { \"aria-hidden\": _vm.title ? null : true, \"aria-label\": _vm.title, \"role\": \"img\" }, on: { \"click\": function($event) {\n return _vm.$emit(\"click\", $event);\n } } }, \"span\", _vm.$attrs, false), [_c(\"svg\", { staticClass: \"material-design-icon__svg\", attrs: { \"fill\": _vm.fillColor, \"width\": _vm.size, \"height\": _vm.size, \"viewBox\": \"0 0 24 24\" } }, [_c(\"path\", { attrs: { \"d\": \"M15.07,11.25L14.17,12.17C13.45,12.89 13,13.5 13,15H11V14.5C11,13.39 11.45,12.39 12.17,11.67L13.41,10.41C13.78,10.05 14,9.55 14,9C14,7.89 13.1,7 12,7A2,2 0 0,0 10,9H8A4,4 0 0,1 12,5A4,4 0 0,1 16,9C16,9.88 15.64,10.67 15.07,11.25M13,19H11V17H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z\" } }, [_vm.title ? _c(\"title\", [_vm._v(_vm._s(_vm.title))]) : _vm._e()])])]);\n};\nvar _sfc_staticRenderFns$1 = [];\nvar __component__$1 = /* @__PURE__ */ normalizeComponent(\n _sfc_main$1,\n _sfc_render$1,\n _sfc_staticRenderFns$1,\n false,\n null,\n null,\n null,\n null\n);\nconst HelpCircle = __component__$1.exports;\nconst _sfc_main = {\n name: \"NcSettingsSection\",\n components: {\n HelpCircle\n },\n props: {\n name: {\n type: String,\n required: true\n },\n description: {\n type: String,\n default: \"\"\n },\n docUrl: {\n type: String,\n default: \"\"\n },\n /**\n * Limit the width of the setting's content\n *\n * Setting this to false allows unrestricted (width) settings content.\n * Note that the name and description have always a width limit.\n * @deprecated Will be removed with next version and will not be used on Nextcloud 30+ (always forced to true)\n */\n limitWidth: {\n type: Boolean,\n default: true\n }\n },\n data() {\n return {\n docNameTranslated: t(\"External documentation for {name}\", {\n name: this.name\n })\n };\n },\n computed: {\n forceLimitWidth() {\n var _a, _b;\n if (this.limitWidth) {\n return true;\n }\n const [major] = (_b = (_a = window._oc_config) == null ? void 0 : _a.version.split(\".\", 2)) != null ? _b : [];\n return major && Number.parseInt(major) >= 30;\n },\n hasDescription() {\n return this.description.length > 0;\n },\n hasDocUrl() {\n return this.docUrl.length > 0;\n }\n }\n};\nvar _sfc_render = function render2() {\n var _vm = this, _c = _vm._self._c;\n return _c(\"div\", { staticClass: \"settings-section\", class: { \"settings-section--limit-width\": _vm.forceLimitWidth } }, [_c(\"h2\", { staticClass: \"settings-section__name\" }, [_vm._v(\" \" + _vm._s(_vm.name) + \" \"), _vm.hasDocUrl ? _c(\"a\", { staticClass: \"settings-section__info\", attrs: { \"href\": _vm.docUrl, \"title\": _vm.docNameTranslated, \"aria-label\": _vm.docNameTranslated, \"target\": \"_blank\", \"rel\": \"noreferrer nofollow\" } }, [_c(\"HelpCircle\", { attrs: { \"size\": 20 } })], 1) : _vm._e()]), _vm.hasDescription ? _c(\"p\", { staticClass: \"settings-section__desc\" }, [_vm._v(\" \" + _vm._s(_vm.description) + \" \")]) : _vm._e(), _vm._t(\"default\")], 2);\n};\nvar _sfc_staticRenderFns = [];\nvar __component__ = /* @__PURE__ */ normalizeComponent(\n _sfc_main,\n _sfc_render,\n _sfc_staticRenderFns,\n false,\n null,\n \"251fe753\",\n null,\n null\n);\nconst NcSettingsSection = __component__.exports;\nexport {\n NcSettingsSection as N\n};\n","\n\n","\n\n","\n\n","\n\n","\n\n\n\n\n\n\n","/**\n * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport type { IActivityType } from '../models/ActivitySettings.js'\n\n/**\n * Return wether the notification method can be checked for the activity\n *\n * @param activity - the concerned activity\n * @param methodKey - the concerned method\n * @return {boolean}\n */\nexport function isActivityEnabled(activity: IActivityType, methodKey: string) {\n\treturn activity.methods.includes(methodKey)\n}\n\n/**\n * @param activities - List of the activities to check\n * @param methodKey - the method key for which to verify the checked value\n * @return {boolean} Wether at least one input is checked for the given set of activities\n */\nexport function isOneInputUnChecked(activities: IActivityType[], methodKey: string) {\n\tfor (const activity of activities) {\n\t\tif (isActivityEnabled(activity, methodKey) && !activity[methodKey]) {\n\t\t\treturn true\n\t\t}\n\t}\n\n\treturn false\n}\n","\n\n\n\n\n\n\n","/**\n * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport Vue from 'vue'\nimport Vuex from 'vuex'\nimport { translate as t } from '@nextcloud/l10n'\n\nimport axios from '@nextcloud/axios'\nimport { generateUrl } from '@nextcloud/router'\nimport { loadState } from '@nextcloud/initial-state'\nimport { showSuccess, showError } from '@nextcloud/dialogs'\n\nimport { isActivityEnabled, isOneInputUnChecked } from '../utils/settings.ts'\nimport logger from '../utils/logger.ts'\n\nVue.use(Vuex)\n\n/**\n * @typedef {object} SettingsState\n * @property {object} setting .\n * @property {Object} activityGroups Activity setting groups that should be shown (Files, Calendar, ...)\n * @property {boolean} isEmailSet Whether the user has a valid email address set\n * @property {boolean} emailEnabled Whether activity emails should be sent\n * @property {boolean} activityDigestEnabled Whether the daily digest should be sent\n * @property {0|1|2|3} settingBatchtime How to group the activity emails\n * @property {Array} methods Available methods for activity (push, mail, ...)\n * @property {string} endpoint API endpoint to talk to (user or admin settings)\n */\n\nconst store = new Vuex.Store({\n\tstrict: true,\n\t/** @type {SettingsState} */\n\tstate: {\n\t\tsetting: loadState('activity', 'setting'),\n\t\tactivityGroups: loadState('activity', 'activity_groups'),\n\t\tisEmailSet: loadState('activity', 'is_email_set'),\n\t\temailEnabled: loadState('activity', 'email_enabled'),\n\t\tactivityDigestEnabled: loadState('activity', 'activity_digest_enabled', false),\n\t\tsettingBatchtime: loadState('activity', 'setting_batchtime'),\n\t\tmethods: loadState('activity', 'methods'),\n\t\tendpoint: '',\n\t},\n\tgetters: {\n\t\t/**\n\t\t * Return an array of checked activities.\n\t\t *\n\t\t * @param {SettingsState} state - The current state.\n\t\t * @return {Array}\n\t\t */\n\t\tcheckedActivities(state) {\n\t\t\tconst methodsEnabled = (activityKey, activity) => {\n\t\t\t\tconst methods = []\n\t\t\t\tif (activity.email) {\n\t\t\t\t\tmethods.push({ activityKey, method: 'email', activity })\n\t\t\t\t}\n\t\t\t\tif (activity.notification) {\n\t\t\t\t\tmethods.push({ activityKey, method: 'notification', activity })\n\t\t\t\t}\n\t\t\t\treturn methods\n\t\t\t}\n\n\t\t\treturn Object.values(state.activityGroups)\n\t\t\t\t.map(group => Object.entries(group.activities)) // [[[activityKey, activity], ...], [[activityKey, activity], ...]]\n\t\t\t\t.reduce((acc, val) => acc.concat(val), []) // [[activityKey, activity], ...]\n\t\t\t\t.map(([activityKey, activity]) => methodsEnabled(activityKey, activity)) // [[{activityKey, method, activity}, ...], ...]\n\t\t\t\t.reduce((acc, val) => acc.concat(val), [])\n\t\t\t\t.filter(({ activity, method }) => activity[method])\n\t\t\t\t.map(({ activityKey, method }) => `${activityKey}_${method}`) // ['enabled_activity_key', ...]\n\t\t},\n\t},\n\tmutations: {\n\t\t/**\n\t\t * Update the 'enabled' state of a notification method for a given group/activity/method tuple\n\t\t *\n\t\t * @param {SettingsState} state - The current state.\n\t\t * @param {object} payload - The payload.\n\t\t * @param {string} payload.groupKey - The targeted group\n\t\t * @param {string} payload.activityKey - The targeted activity\n\t\t * @param {string} payload.methodKey - The targeted method\n\t\t * @param {string} payload.value - The value to set\n\t\t */\n\t\tSET_METHOD_FOR_METHOD_AND_ACTIVITY(state, { groupKey, activityKey, methodKey, value }) {\n\t\t\tconst group = state.activityGroups[groupKey]\n\t\t\tconst activity = group.activities[activityKey]\n\n\t\t\tif (isActivityEnabled(activity, methodKey)) {\n\t\t\t\tactivity[methodKey] = value\n\t\t\t}\n\t\t},\n\t\t/**\n\t\t * Set the endpoint used to save the settings.\n\t\t *\n\t\t * @param {SettingsState} state - The current state.\n\t\t * @param {object} payload - The payload.\n\t\t * @param {string} payload.endpoint - Where to POST the saveSettings request.\n\t\t */\n\t\tSET_ENDPOINT(state, { endpoint }) {\n\t\t\tstate.endpoint = endpoint\n\t\t},\n\t\t/**\n\t\t * Set the batch time.\n\t\t *\n\t\t * @param {SettingsState} state - The current state.\n\t\t * @param {object} payload - The payload.\n\t\t * @param {0|1|2|3} payload.settingBatchtime - The selected batch time.\n\t\t */\n\t\tSET_SETTING_BATCHTIME(state, { settingBatchtime }) {\n\t\t\tstate.settingBatchtime = settingBatchtime\n\t\t},\n\t\t/**\n\t\t * Toggle activity digest.\n\t\t *\n\t\t * @param {SettingsState} state - The current state.\n\t\t * @param {object} payload - The payload.\n\t\t * @param {boolean} payload.activityDigestEnabled - Enabled status of the activity digest.\n\t\t */\n\t\tTOGGLE_ACTIVITY_DIGEST(state, { activityDigestEnabled }) {\n\t\t\tstate.activityDigestEnabled = activityDigestEnabled\n\t\t},\n\t\t/**\n\t\t * Toggle the availability of mail notifications\n\t\t *\n\t\t * @param {SettingsState} state - The current state.\n\t\t * @param {object} payload - The payload.\n\t\t * @param {boolean} payload.emailEnabled - Enabled status of the email notifications.\n\t\t */\n\t\tTOGGLE_EMAIL_ENABLED(state, { emailEnabled }) {\n\t\t\tstate.emailEnabled = emailEnabled\n\t\t},\n\t},\n\tactions: {\n\t\t/**\n\t\t * Set the endpoint used to save the settings.\n\t\t *\n\t\t * @param {object} _ - Action context\n\t\t * @param {Function} _.commit - State modifying function\n\t\t * @param {object} payload - The payload.\n\t\t * @param {string} payload.endpoint - Where to POST the saveSettings request.\n\t\t */\n\t\tsetEndpoint({ commit }, { endpoint }) {\n\t\t\tcommit('SET_ENDPOINT', { endpoint })\n\t\t},\n\n\t\t/**\n\t\t * Toggle the 'enabled' state of a notification method for a given group/activity/method tuple\n\t\t *\n\t\t * @param {object} _ - Action context\n\t\t * @param {Function} _.commit - State modifying function\n\t\t * @param {Function} _.dispatch - Function to dispatch another action\n\t\t * @param {object} _.state - Current state\n\t\t * @param {object} payload - The payload.\n\t\t * @param {string} payload.groupKey - The targeted group\n\t\t * @param {string} payload.activityKey - The targeted activity\n\t\t * @param {string} payload.methodKey - The targeted method\n\t\t */\n\t\ttoggleMethodForMethodAndActivity({ commit, state, dispatch }, { groupKey, activityKey, methodKey }) {\n\t\t\tconst activity = state.activityGroups[groupKey].activities[activityKey]\n\t\t\tconst oneInputIsChecked = isOneInputUnChecked([activity], methodKey)\n\n\t\t\tcommit(\n\t\t\t\t'SET_METHOD_FOR_METHOD_AND_ACTIVITY',\n\t\t\t\t{\n\t\t\t\t\tgroupKey,\n\t\t\t\t\tactivityKey,\n\t\t\t\t\tmethodKey,\n\t\t\t\t\tvalue: oneInputIsChecked,\n\t\t\t\t})\n\n\t\t\tdispatch('saveSettings')\n\t\t},\n\n\t\t/**\n\t\t * Toggle the 'enabled' state of a notification method for a given group/method tuple\n\t\t *\n\t\t * @param {object} _ - Action context\n\t\t * @param {Function} _.commit - State modifying function\n\t\t * @param {Function} _.dispatch - Function to dispatch another action\n\t\t * @param {object} _.state - Current state\n\t\t * @param {object} payload - The payload.\n\t\t * @param {string} payload.groupKey - The targeted group\n\t\t * @param {string} payload.methodKey - The targeted method\n\t\t */\n\t\ttoggleMethodForGroup({ commit, state, dispatch }, { groupKey, methodKey }) {\n\t\t\tconst activities = Object.values(state.activityGroups[groupKey].activities)\n\t\t\tconst oneInputIsChecked = isOneInputUnChecked(activities, methodKey)\n\n\t\t\tfor (const activityKey in state.activityGroups[groupKey].activities) {\n\t\t\t\tcommit(\n\t\t\t\t\t'SET_METHOD_FOR_METHOD_AND_ACTIVITY',\n\t\t\t\t\t{\n\t\t\t\t\t\tgroupKey,\n\t\t\t\t\t\tactivityKey,\n\t\t\t\t\t\tmethodKey,\n\t\t\t\t\t\tvalue: oneInputIsChecked,\n\t\t\t\t\t})\n\t\t\t}\n\n\t\t\tdispatch('saveSettings')\n\t\t},\n\n\t\t/**\n\t\t * Toggle the 'enabled' state of a notification method for a given group/activity tuple\n\t\t *\n\t\t * @param {object} _ - Action context\n\t\t * @param {Function} _.commit - State modifying function\n\t\t * @param {Function} _.dispatch - Function to dispatch another action\n\t\t * @param {object} _.state - Current state\n\t\t * @param {object} payload - The payload.\n\t\t * @param {string} payload.groupKey - The targeted group\n\t\t * @param {string} payload.activityKey - The targeted activity\n\t\t */\n\t\ttoggleMethodsForActivity({ commit, state, dispatch }, { groupKey, activityKey }) {\n\t\t\tconst activity = state.activityGroups[groupKey].activities[activityKey]\n\t\t\tconst oneInputIsChecked = activity.methods.map(method => isOneInputUnChecked([activity], method)).includes(true)\n\n\t\t\tfor (const methodKey of activity.methods) {\n\t\t\t\tcommit(\n\t\t\t\t\t'SET_METHOD_FOR_METHOD_AND_ACTIVITY',\n\t\t\t\t\t{\n\t\t\t\t\t\tgroupKey,\n\t\t\t\t\t\tactivityKey,\n\t\t\t\t\t\tmethodKey,\n\t\t\t\t\t\tvalue: oneInputIsChecked,\n\t\t\t\t\t})\n\t\t\t}\n\n\t\t\tdispatch('saveSettings')\n\t\t},\n\n\t\t/**\n\t\t * Set the batch time.\n\t\t *\n\t\t * @param {object} _ - Action context\n\t\t * @param {Function} _.commit - State modifying function\n\t\t * @param {Function} _.dispatch - Function to dispatch another action\n\t\t * @param {object} payload - The payload.\n\t\t * @param {0|1|2|3} payload.settingBatchtime - The selected batch time.\n\t\t */\n\t\tsetSettingBatchtime({ commit, dispatch }, { settingBatchtime }) {\n\t\t\tcommit(\n\t\t\t\t'SET_SETTING_BATCHTIME',\n\t\t\t\t{\n\t\t\t\t\tsettingBatchtime,\n\t\t\t\t})\n\n\t\t\tdispatch('saveSettings')\n\t\t},\n\n\t\t/**\n\t\t * Toggle the activity digest.\n\t\t *\n\t\t * @param {object} _ - Action context\n\t\t * @param {Function} _.commit - State modifying function\n\t\t * @param {Function} _.dispatch - Function to dispatch another action\n\t\t * @param {object} payload - The payload.\n\t\t * @param {boolean} payload.activityDigestEnabled - Enabled status of the activity digest.\n\t\t */\n\t\ttoggleActivityDigestEnabled({ commit, dispatch }, { activityDigestEnabled }) {\n\t\t\tcommit(\n\t\t\t\t'TOGGLE_ACTIVITY_DIGEST',\n\t\t\t\t{\n\t\t\t\t\tactivityDigestEnabled,\n\t\t\t\t})\n\n\t\t\tdispatch('saveSettings')\n\t\t},\n\n\t\t/**\n\t\t * Toggle the availability of mail notifications\n\t\t *\n\t\t * @param {object} _ - Action context\n\t\t * @param {Function} _.commit - State modifying function\n\t\t * @param {object} payload - The payload.\n\t\t * @param {boolean} payload.emailEnabled - Enabled status of the email notifications.\n\t\t */\n\t\ttoggleEmailEnabled({ commit }, { emailEnabled }) {\n\t\t\tcommit(\n\t\t\t\t'TOGGLE_EMAIL_ENABLED',\n\t\t\t\t{\n\t\t\t\t\temailEnabled,\n\t\t\t\t})\n\n\t\t\ttry {\n\n\t\t\t\tOCP.AppConfig.setValue(\n\t\t\t\t\t'activity', 'enable_email',\n\t\t\t\t\temailEnabled ? 'yes' : 'no'\n\t\t\t\t)\n\n\t\t\t\tshowSuccess(t('activity', 'Your settings have been updated.'))\n\t\t\t} catch (error) {\n\t\t\t\tshowError(t('activity', 'Unable to save the settings'))\n\t\t\t\tlogger.error('An error occurred while saving the activity settings', error)\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Save the currently displayed settings\n\t\t *\n\t\t * @param {object} _ - Action context\n\t\t * @param {object} _.state - Current state\n\t\t * @param {object} _.getters - Getter functions for the state\n\t\t */\n\t\tasync saveSettings({ state, getters }) {\n\t\t\ttry {\n\t\t\t\tconst form = new FormData()\n\t\t\t\tgetters.checkedActivities.forEach(activity => {\n\t\t\t\t\tform.append(activity, '1')\n\t\t\t\t})\n\n\t\t\t\tform.append('notify_setting_batchtime', `${state.settingBatchtime}`)\n\t\t\t\tform.append('activity_digest', `${state.activityDigestEnabled ? 1 : 0}`)\n\n\t\t\t\tconst response = await axios.post(generateUrl(state.endpoint), form)\n\n\t\t\t\tshowSuccess(response.data.data.message)\n\t\t\t} catch (error) {\n\t\t\t\tshowError(t('activity', 'Unable to save the settings'))\n\t\t\t\tlogger.error('An error occurred while saving the activity settings', error)\n\t\t\t}\n\t\t},\n\t},\n})\n\nexport default store\n"],"names":["applyMixin","Vue","version","vuexInit","_init","options","target","global","devtoolHook","devtoolPlugin","store","targetState","mutation","state","action","find","list","f","deepCopy","obj","cache","hit","c","copy","key","forEachValue","fn","isObject","isPromise","val","partial","arg","Module","rawModule","runtime","rawState","prototypeAccessors","module","ModuleCollection","rawRootModule","path","namespace","update","this$1","newModule","parent","rawChildModule","child","targetModule","Store","install","plugins","strict","ref","dispatch","commit","type","payload","installModule","resetStoreVM","plugin","useDevtools","prototypeAccessors$1","v","_type","_payload","_options","unifyObjectStyle","entry","handler","sub","result","resolve","reject","res","error","genericSubscribe","subs","getter","cb","parentState","getNestedState","resetStore","newOptions","committing","i","hot","oldVm","wrappedGetters","computed","silent","enableStrictMode","rootState","isRoot","moduleName","local","makeLocalContext","namespacedType","registerMutation","registerAction","registerGetter","noNamespace","args","makeLocalGetters","gettersProxy","splitPos","localType","err","rawGetter","_Vue","mapState","normalizeNamespace","states","normalizeMap","getters","getModuleByNamespace","mapMutations","mutations","len","mapGetters","mapActions","actions","createNamespacedHelpers","map","isValidMap","helper","createLogger","collapsed","filter","stateBefore","stateAfter","transformer","mutationTransformer","mut","actionFilter","actionTransformer","act","logMutations","logActions","logger","prevState","nextState","formattedTime","getFormattedTime","formattedMutation","message","startMessage","endMessage","formattedAction","time","pad","repeat","str","times","num","maxLength","index","Vuex","register","t23","_sfc_main$1","_sfc_render$1","_vm","_c","$event","_sfc_staticRenderFns$1","__component__$1","normalizeComponent","HelpCircle","_sfc_main","t","_a","_b","major","_sfc_render","_sfc_staticRenderFns","__component__","NcSettingsSection","id","MinusBox","CheckboxBlank","CheckboxMarked","CheckboxBlankOutline","values","input","isActivityEnabled","activity","methodKey","isOneInputUnChecked","activities","Checkbox","method","loadState","methodsEnabled","activityKey","methods","group","acc","groupKey","value","endpoint","settingBatchtime","activityDigestEnabled","emailEnabled","oneInputIsChecked","showSuccess","showError","form","response","axios","generateUrl"],"mappings":";wRAKA,SAASA,GAAYC,EAAK,CACpB,IAAAC,EAAU,OAAOD,EAAI,QAAQ,MAAM,GAAG,EAAE,CAAC,CAAC,EAE9C,GAAIC,GAAW,EACbD,EAAI,MAAM,CAAE,aAAcE,CAAU,CAAA,MAC/B,CAGD,IAAAC,EAAQH,EAAI,UAAU,MAC1BA,EAAI,UAAU,MAAQ,SAAUI,EAAS,CAClCA,IAAY,SAASA,EAAU,CAAA,GAE5BA,EAAA,KAAOA,EAAQ,KACnB,CAACF,CAAQ,EAAE,OAAOE,EAAQ,IAAI,EAC9BF,EACEC,EAAA,KAAK,KAAMC,CAAO,CAAA,CAE5B,CAMA,SAASF,GAAY,CACnB,IAAIE,EAAU,KAAK,SAEfA,EAAQ,MACL,KAAA,OAAS,OAAOA,EAAQ,OAAU,WACnCA,EAAQ,MAAA,EACRA,EAAQ,MACHA,EAAQ,QAAUA,EAAQ,OAAO,SACrC,KAAA,OAASA,EAAQ,OAAO,OAEjC,CACF,CAEA,IAAIC,GAAS,OAAO,OAAW,IAC3B,OACA,OAAOC,EAAW,IAChBA,EACA,GACFC,EAAcF,GAAO,6BAEzB,SAASG,GAAeC,EAAO,CACxBF,IAELE,EAAM,aAAeF,EAETA,EAAA,KAAK,YAAaE,CAAK,EAEvBF,EAAA,GAAG,uBAAwB,SAAUG,EAAa,CAC5DD,EAAM,aAAaC,CAAW,CAAA,CAC/B,EAEKD,EAAA,UAAU,SAAUE,EAAUC,EAAO,CAC7BL,EAAA,KAAK,gBAAiBI,EAAUC,CAAK,CAAA,EAChD,CAAE,QAAS,EAAA,CAAM,EAEdH,EAAA,gBAAgB,SAAUI,EAAQD,EAAO,CACjCL,EAAA,KAAK,cAAeM,EAAQD,CAAK,CAAA,EAC5C,CAAE,QAAS,EAAA,CAAM,EACtB,CAUA,SAASE,GAAMC,EAAMC,EAAG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I,CACH,MAAM6F,EAAO,IAAI,SACjB7F,EAAQ,kBAAkB,QAAQwE,GAAY,CAC7CqB,EAAK,OAAOrB,EAAU,GAAG,CAC9B,CAAK,EAEDqB,EAAK,OAAO,2BAA4B,GAAGlM,OAAAA,EAAM,iBAAkB,EACnEkM,EAAK,OAAO,kBAAmB,GAAGlM,OAAAA,EAAM,sBAAwB,EAAI,EAAG,EAEvE,MAAMmM,EAAW,MAAMC,GAAM,KAAKC,GAAYrM,EAAM,QAAQ,EAAGkM,CAAI,EAEnEF,EAAYG,EAAS,KAAK,KAAK,OAAO,CACtC,OAAQrI,EAAO,CACfmI,EAAUpC,EAAE,WAAY,6BAA6B,CAAC,EACtD/B,EAAO,MAAM,uDAAwDhE,CAAK,CAC1E,CACD,CACD,CACF,CAAC","x_google_ignoreList":[0,1,2,3,4,5]} \ No newline at end of file +{"version":3,"file":"settings-store-jBhw-TQN.mjs","sources":["../node_modules/vuex/dist/vuex.esm.js","../node_modules/@nextcloud/vue/dist/chunks/NcSettingsSection-CFn4bRnA.mjs","../node_modules/vue-material-design-icons/CheckboxBlankOutline.vue","../node_modules/vue-material-design-icons/CheckboxBlank.vue","../node_modules/vue-material-design-icons/MinusBox.vue","../node_modules/vue-material-design-icons/CheckboxMarked.vue","../src/components/Checkbox.vue","../src/utils/settings.ts","../src/components/ActivityGrid.vue","../src/store/settings-store.js"],"sourcesContent":["/*!\n * vuex v3.6.2\n * (c) 2021 Evan You\n * @license MIT\n */\nfunction applyMixin (Vue) {\n var version = Number(Vue.version.split('.')[0]);\n\n if (version >= 2) {\n Vue.mixin({ beforeCreate: vuexInit });\n } else {\n // override init and inject vuex init procedure\n // for 1.x backwards compatibility.\n var _init = Vue.prototype._init;\n Vue.prototype._init = function (options) {\n if ( options === void 0 ) options = {};\n\n options.init = options.init\n ? [vuexInit].concat(options.init)\n : vuexInit;\n _init.call(this, options);\n };\n }\n\n /**\n * Vuex init hook, injected into each instances init hooks list.\n */\n\n function vuexInit () {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function'\n ? options.store()\n : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }\n}\n\nvar target = typeof window !== 'undefined'\n ? window\n : typeof global !== 'undefined'\n ? global\n : {};\nvar devtoolHook = target.__VUE_DEVTOOLS_GLOBAL_HOOK__;\n\nfunction devtoolPlugin (store) {\n if (!devtoolHook) { return }\n\n store._devtoolHook = devtoolHook;\n\n devtoolHook.emit('vuex:init', store);\n\n devtoolHook.on('vuex:travel-to-state', function (targetState) {\n store.replaceState(targetState);\n });\n\n store.subscribe(function (mutation, state) {\n devtoolHook.emit('vuex:mutation', mutation, state);\n }, { prepend: true });\n\n store.subscribeAction(function (action, state) {\n devtoolHook.emit('vuex:action', action, state);\n }, { prepend: true });\n}\n\n/**\n * Get the first item that pass the test\n * by second argument function\n *\n * @param {Array} list\n * @param {Function} f\n * @return {*}\n */\nfunction find (list, f) {\n return list.filter(f)[0]\n}\n\n/**\n * Deep copy the given object considering circular structure.\n * This function caches all nested objects and its copies.\n * If it detects circular structure, use cached copy to avoid infinite loop.\n *\n * @param {*} obj\n * @param {Array} cache\n * @return {*}\n */\nfunction deepCopy (obj, cache) {\n if ( cache === void 0 ) cache = [];\n\n // just return if obj is immutable value\n if (obj === null || typeof obj !== 'object') {\n return obj\n }\n\n // if obj is hit, it is in circular structure\n var hit = find(cache, function (c) { return c.original === obj; });\n if (hit) {\n return hit.copy\n }\n\n var copy = Array.isArray(obj) ? [] : {};\n // put the copy into cache at first\n // because we want to refer it in recursive deepCopy\n cache.push({\n original: obj,\n copy: copy\n });\n\n Object.keys(obj).forEach(function (key) {\n copy[key] = deepCopy(obj[key], cache);\n });\n\n return copy\n}\n\n/**\n * forEach for object\n */\nfunction forEachValue (obj, fn) {\n Object.keys(obj).forEach(function (key) { return fn(obj[key], key); });\n}\n\nfunction isObject (obj) {\n return obj !== null && typeof obj === 'object'\n}\n\nfunction isPromise (val) {\n return val && typeof val.then === 'function'\n}\n\nfunction assert (condition, msg) {\n if (!condition) { throw new Error((\"[vuex] \" + msg)) }\n}\n\nfunction partial (fn, arg) {\n return function () {\n return fn(arg)\n }\n}\n\n// Base data struct for store's module, package with some attribute and method\nvar Module = function Module (rawModule, runtime) {\n this.runtime = runtime;\n // Store some children item\n this._children = Object.create(null);\n // Store the origin module object which passed by programmer\n this._rawModule = rawModule;\n var rawState = rawModule.state;\n\n // Store the origin module's state\n this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};\n};\n\nvar prototypeAccessors = { namespaced: { configurable: true } };\n\nprototypeAccessors.namespaced.get = function () {\n return !!this._rawModule.namespaced\n};\n\nModule.prototype.addChild = function addChild (key, module) {\n this._children[key] = module;\n};\n\nModule.prototype.removeChild = function removeChild (key) {\n delete this._children[key];\n};\n\nModule.prototype.getChild = function getChild (key) {\n return this._children[key]\n};\n\nModule.prototype.hasChild = function hasChild (key) {\n return key in this._children\n};\n\nModule.prototype.update = function update (rawModule) {\n this._rawModule.namespaced = rawModule.namespaced;\n if (rawModule.actions) {\n this._rawModule.actions = rawModule.actions;\n }\n if (rawModule.mutations) {\n this._rawModule.mutations = rawModule.mutations;\n }\n if (rawModule.getters) {\n this._rawModule.getters = rawModule.getters;\n }\n};\n\nModule.prototype.forEachChild = function forEachChild (fn) {\n forEachValue(this._children, fn);\n};\n\nModule.prototype.forEachGetter = function forEachGetter (fn) {\n if (this._rawModule.getters) {\n forEachValue(this._rawModule.getters, fn);\n }\n};\n\nModule.prototype.forEachAction = function forEachAction (fn) {\n if (this._rawModule.actions) {\n forEachValue(this._rawModule.actions, fn);\n }\n};\n\nModule.prototype.forEachMutation = function forEachMutation (fn) {\n if (this._rawModule.mutations) {\n forEachValue(this._rawModule.mutations, fn);\n }\n};\n\nObject.defineProperties( Module.prototype, prototypeAccessors );\n\nvar ModuleCollection = function ModuleCollection (rawRootModule) {\n // register root module (Vuex.Store options)\n this.register([], rawRootModule, false);\n};\n\nModuleCollection.prototype.get = function get (path) {\n return path.reduce(function (module, key) {\n return module.getChild(key)\n }, this.root)\n};\n\nModuleCollection.prototype.getNamespace = function getNamespace (path) {\n var module = this.root;\n return path.reduce(function (namespace, key) {\n module = module.getChild(key);\n return namespace + (module.namespaced ? key + '/' : '')\n }, '')\n};\n\nModuleCollection.prototype.update = function update$1 (rawRootModule) {\n update([], this.root, rawRootModule);\n};\n\nModuleCollection.prototype.register = function register (path, rawModule, runtime) {\n var this$1 = this;\n if ( runtime === void 0 ) runtime = true;\n\n if ((process.env.NODE_ENV !== 'production')) {\n assertRawModule(path, rawModule);\n }\n\n var newModule = new Module(rawModule, runtime);\n if (path.length === 0) {\n this.root = newModule;\n } else {\n var parent = this.get(path.slice(0, -1));\n parent.addChild(path[path.length - 1], newModule);\n }\n\n // register nested modules\n if (rawModule.modules) {\n forEachValue(rawModule.modules, function (rawChildModule, key) {\n this$1.register(path.concat(key), rawChildModule, runtime);\n });\n }\n};\n\nModuleCollection.prototype.unregister = function unregister (path) {\n var parent = this.get(path.slice(0, -1));\n var key = path[path.length - 1];\n var child = parent.getChild(key);\n\n if (!child) {\n if ((process.env.NODE_ENV !== 'production')) {\n console.warn(\n \"[vuex] trying to unregister module '\" + key + \"', which is \" +\n \"not registered\"\n );\n }\n return\n }\n\n if (!child.runtime) {\n return\n }\n\n parent.removeChild(key);\n};\n\nModuleCollection.prototype.isRegistered = function isRegistered (path) {\n var parent = this.get(path.slice(0, -1));\n var key = path[path.length - 1];\n\n if (parent) {\n return parent.hasChild(key)\n }\n\n return false\n};\n\nfunction update (path, targetModule, newModule) {\n if ((process.env.NODE_ENV !== 'production')) {\n assertRawModule(path, newModule);\n }\n\n // update target module\n targetModule.update(newModule);\n\n // update nested modules\n if (newModule.modules) {\n for (var key in newModule.modules) {\n if (!targetModule.getChild(key)) {\n if ((process.env.NODE_ENV !== 'production')) {\n console.warn(\n \"[vuex] trying to add a new module '\" + key + \"' on hot reloading, \" +\n 'manual reload is needed'\n );\n }\n return\n }\n update(\n path.concat(key),\n targetModule.getChild(key),\n newModule.modules[key]\n );\n }\n }\n}\n\nvar functionAssert = {\n assert: function (value) { return typeof value === 'function'; },\n expected: 'function'\n};\n\nvar objectAssert = {\n assert: function (value) { return typeof value === 'function' ||\n (typeof value === 'object' && typeof value.handler === 'function'); },\n expected: 'function or object with \"handler\" function'\n};\n\nvar assertTypes = {\n getters: functionAssert,\n mutations: functionAssert,\n actions: objectAssert\n};\n\nfunction assertRawModule (path, rawModule) {\n Object.keys(assertTypes).forEach(function (key) {\n if (!rawModule[key]) { return }\n\n var assertOptions = assertTypes[key];\n\n forEachValue(rawModule[key], function (value, type) {\n assert(\n assertOptions.assert(value),\n makeAssertionMessage(path, key, type, value, assertOptions.expected)\n );\n });\n });\n}\n\nfunction makeAssertionMessage (path, key, type, value, expected) {\n var buf = key + \" should be \" + expected + \" but \\\"\" + key + \".\" + type + \"\\\"\";\n if (path.length > 0) {\n buf += \" in module \\\"\" + (path.join('.')) + \"\\\"\";\n }\n buf += \" is \" + (JSON.stringify(value)) + \".\";\n return buf\n}\n\nvar Vue; // bind on install\n\nvar Store = function Store (options) {\n var this$1 = this;\n if ( options === void 0 ) options = {};\n\n // Auto install if it is not done yet and `window` has `Vue`.\n // To allow users to avoid auto-installation in some cases,\n // this code should be placed here. See #731\n if (!Vue && typeof window !== 'undefined' && window.Vue) {\n install(window.Vue);\n }\n\n if ((process.env.NODE_ENV !== 'production')) {\n assert(Vue, \"must call Vue.use(Vuex) before creating a store instance.\");\n assert(typeof Promise !== 'undefined', \"vuex requires a Promise polyfill in this browser.\");\n assert(this instanceof Store, \"store must be called with the new operator.\");\n }\n\n var plugins = options.plugins; if ( plugins === void 0 ) plugins = [];\n var strict = options.strict; if ( strict === void 0 ) strict = false;\n\n // store internal state\n this._committing = false;\n this._actions = Object.create(null);\n this._actionSubscribers = [];\n this._mutations = Object.create(null);\n this._wrappedGetters = Object.create(null);\n this._modules = new ModuleCollection(options);\n this._modulesNamespaceMap = Object.create(null);\n this._subscribers = [];\n this._watcherVM = new Vue();\n this._makeLocalGettersCache = Object.create(null);\n\n // bind commit and dispatch to self\n var store = this;\n var ref = this;\n var dispatch = ref.dispatch;\n var commit = ref.commit;\n this.dispatch = function boundDispatch (type, payload) {\n return dispatch.call(store, type, payload)\n };\n this.commit = function boundCommit (type, payload, options) {\n return commit.call(store, type, payload, options)\n };\n\n // strict mode\n this.strict = strict;\n\n var state = this._modules.root.state;\n\n // init root module.\n // this also recursively registers all sub-modules\n // and collects all module getters inside this._wrappedGetters\n installModule(this, state, [], this._modules.root);\n\n // initialize the store vm, which is responsible for the reactivity\n // (also registers _wrappedGetters as computed properties)\n resetStoreVM(this, state);\n\n // apply plugins\n plugins.forEach(function (plugin) { return plugin(this$1); });\n\n var useDevtools = options.devtools !== undefined ? options.devtools : Vue.config.devtools;\n if (useDevtools) {\n devtoolPlugin(this);\n }\n};\n\nvar prototypeAccessors$1 = { state: { configurable: true } };\n\nprototypeAccessors$1.state.get = function () {\n return this._vm._data.$$state\n};\n\nprototypeAccessors$1.state.set = function (v) {\n if ((process.env.NODE_ENV !== 'production')) {\n assert(false, \"use store.replaceState() to explicit replace store state.\");\n }\n};\n\nStore.prototype.commit = function commit (_type, _payload, _options) {\n var this$1 = this;\n\n // check object-style commit\n var ref = unifyObjectStyle(_type, _payload, _options);\n var type = ref.type;\n var payload = ref.payload;\n var options = ref.options;\n\n var mutation = { type: type, payload: payload };\n var entry = this._mutations[type];\n if (!entry) {\n if ((process.env.NODE_ENV !== 'production')) {\n console.error((\"[vuex] unknown mutation type: \" + type));\n }\n return\n }\n this._withCommit(function () {\n entry.forEach(function commitIterator (handler) {\n handler(payload);\n });\n });\n\n this._subscribers\n .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe\n .forEach(function (sub) { return sub(mutation, this$1.state); });\n\n if (\n (process.env.NODE_ENV !== 'production') &&\n options && options.silent\n ) {\n console.warn(\n \"[vuex] mutation type: \" + type + \". Silent option has been removed. \" +\n 'Use the filter functionality in the vue-devtools'\n );\n }\n};\n\nStore.prototype.dispatch = function dispatch (_type, _payload) {\n var this$1 = this;\n\n // check object-style dispatch\n var ref = unifyObjectStyle(_type, _payload);\n var type = ref.type;\n var payload = ref.payload;\n\n var action = { type: type, payload: payload };\n var entry = this._actions[type];\n if (!entry) {\n if ((process.env.NODE_ENV !== 'production')) {\n console.error((\"[vuex] unknown action type: \" + type));\n }\n return\n }\n\n try {\n this._actionSubscribers\n .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe\n .filter(function (sub) { return sub.before; })\n .forEach(function (sub) { return sub.before(action, this$1.state); });\n } catch (e) {\n if ((process.env.NODE_ENV !== 'production')) {\n console.warn(\"[vuex] error in before action subscribers: \");\n console.error(e);\n }\n }\n\n var result = entry.length > 1\n ? Promise.all(entry.map(function (handler) { return handler(payload); }))\n : entry[0](payload);\n\n return new Promise(function (resolve, reject) {\n result.then(function (res) {\n try {\n this$1._actionSubscribers\n .filter(function (sub) { return sub.after; })\n .forEach(function (sub) { return sub.after(action, this$1.state); });\n } catch (e) {\n if ((process.env.NODE_ENV !== 'production')) {\n console.warn(\"[vuex] error in after action subscribers: \");\n console.error(e);\n }\n }\n resolve(res);\n }, function (error) {\n try {\n this$1._actionSubscribers\n .filter(function (sub) { return sub.error; })\n .forEach(function (sub) { return sub.error(action, this$1.state, error); });\n } catch (e) {\n if ((process.env.NODE_ENV !== 'production')) {\n console.warn(\"[vuex] error in error action subscribers: \");\n console.error(e);\n }\n }\n reject(error);\n });\n })\n};\n\nStore.prototype.subscribe = function subscribe (fn, options) {\n return genericSubscribe(fn, this._subscribers, options)\n};\n\nStore.prototype.subscribeAction = function subscribeAction (fn, options) {\n var subs = typeof fn === 'function' ? { before: fn } : fn;\n return genericSubscribe(subs, this._actionSubscribers, options)\n};\n\nStore.prototype.watch = function watch (getter, cb, options) {\n var this$1 = this;\n\n if ((process.env.NODE_ENV !== 'production')) {\n assert(typeof getter === 'function', \"store.watch only accepts a function.\");\n }\n return this._watcherVM.$watch(function () { return getter(this$1.state, this$1.getters); }, cb, options)\n};\n\nStore.prototype.replaceState = function replaceState (state) {\n var this$1 = this;\n\n this._withCommit(function () {\n this$1._vm._data.$$state = state;\n });\n};\n\nStore.prototype.registerModule = function registerModule (path, rawModule, options) {\n if ( options === void 0 ) options = {};\n\n if (typeof path === 'string') { path = [path]; }\n\n if ((process.env.NODE_ENV !== 'production')) {\n assert(Array.isArray(path), \"module path must be a string or an Array.\");\n assert(path.length > 0, 'cannot register the root module by using registerModule.');\n }\n\n this._modules.register(path, rawModule);\n installModule(this, this.state, path, this._modules.get(path), options.preserveState);\n // reset store to update getters...\n resetStoreVM(this, this.state);\n};\n\nStore.prototype.unregisterModule = function unregisterModule (path) {\n var this$1 = this;\n\n if (typeof path === 'string') { path = [path]; }\n\n if ((process.env.NODE_ENV !== 'production')) {\n assert(Array.isArray(path), \"module path must be a string or an Array.\");\n }\n\n this._modules.unregister(path);\n this._withCommit(function () {\n var parentState = getNestedState(this$1.state, path.slice(0, -1));\n Vue.delete(parentState, path[path.length - 1]);\n });\n resetStore(this);\n};\n\nStore.prototype.hasModule = function hasModule (path) {\n if (typeof path === 'string') { path = [path]; }\n\n if ((process.env.NODE_ENV !== 'production')) {\n assert(Array.isArray(path), \"module path must be a string or an Array.\");\n }\n\n return this._modules.isRegistered(path)\n};\n\nStore.prototype.hotUpdate = function hotUpdate (newOptions) {\n this._modules.update(newOptions);\n resetStore(this, true);\n};\n\nStore.prototype._withCommit = function _withCommit (fn) {\n var committing = this._committing;\n this._committing = true;\n fn();\n this._committing = committing;\n};\n\nObject.defineProperties( Store.prototype, prototypeAccessors$1 );\n\nfunction genericSubscribe (fn, subs, options) {\n if (subs.indexOf(fn) < 0) {\n options && options.prepend\n ? subs.unshift(fn)\n : subs.push(fn);\n }\n return function () {\n var i = subs.indexOf(fn);\n if (i > -1) {\n subs.splice(i, 1);\n }\n }\n}\n\nfunction resetStore (store, hot) {\n store._actions = Object.create(null);\n store._mutations = Object.create(null);\n store._wrappedGetters = Object.create(null);\n store._modulesNamespaceMap = Object.create(null);\n var state = store.state;\n // init all modules\n installModule(store, state, [], store._modules.root, true);\n // reset vm\n resetStoreVM(store, state, hot);\n}\n\nfunction resetStoreVM (store, state, hot) {\n var oldVm = store._vm;\n\n // bind store public getters\n store.getters = {};\n // reset local getters cache\n store._makeLocalGettersCache = Object.create(null);\n var wrappedGetters = store._wrappedGetters;\n var computed = {};\n forEachValue(wrappedGetters, function (fn, key) {\n // use computed to leverage its lazy-caching mechanism\n // direct inline function use will lead to closure preserving oldVm.\n // using partial to return function with only arguments preserved in closure environment.\n computed[key] = partial(fn, store);\n Object.defineProperty(store.getters, key, {\n get: function () { return store._vm[key]; },\n enumerable: true // for local getters\n });\n });\n\n // use a Vue instance to store the state tree\n // suppress warnings just in case the user has added\n // some funky global mixins\n var silent = Vue.config.silent;\n Vue.config.silent = true;\n store._vm = new Vue({\n data: {\n $$state: state\n },\n computed: computed\n });\n Vue.config.silent = silent;\n\n // enable strict mode for new vm\n if (store.strict) {\n enableStrictMode(store);\n }\n\n if (oldVm) {\n if (hot) {\n // dispatch changes in all subscribed watchers\n // to force getter re-evaluation for hot reloading.\n store._withCommit(function () {\n oldVm._data.$$state = null;\n });\n }\n Vue.nextTick(function () { return oldVm.$destroy(); });\n }\n}\n\nfunction installModule (store, rootState, path, module, hot) {\n var isRoot = !path.length;\n var namespace = store._modules.getNamespace(path);\n\n // register in namespace map\n if (module.namespaced) {\n if (store._modulesNamespaceMap[namespace] && (process.env.NODE_ENV !== 'production')) {\n console.error((\"[vuex] duplicate namespace \" + namespace + \" for the namespaced module \" + (path.join('/'))));\n }\n store._modulesNamespaceMap[namespace] = module;\n }\n\n // set state\n if (!isRoot && !hot) {\n var parentState = getNestedState(rootState, path.slice(0, -1));\n var moduleName = path[path.length - 1];\n store._withCommit(function () {\n if ((process.env.NODE_ENV !== 'production')) {\n if (moduleName in parentState) {\n console.warn(\n (\"[vuex] state field \\\"\" + moduleName + \"\\\" was overridden by a module with the same name at \\\"\" + (path.join('.')) + \"\\\"\")\n );\n }\n }\n Vue.set(parentState, moduleName, module.state);\n });\n }\n\n var local = module.context = makeLocalContext(store, namespace, path);\n\n module.forEachMutation(function (mutation, key) {\n var namespacedType = namespace + key;\n registerMutation(store, namespacedType, mutation, local);\n });\n\n module.forEachAction(function (action, key) {\n var type = action.root ? key : namespace + key;\n var handler = action.handler || action;\n registerAction(store, type, handler, local);\n });\n\n module.forEachGetter(function (getter, key) {\n var namespacedType = namespace + key;\n registerGetter(store, namespacedType, getter, local);\n });\n\n module.forEachChild(function (child, key) {\n installModule(store, rootState, path.concat(key), child, hot);\n });\n}\n\n/**\n * make localized dispatch, commit, getters and state\n * if there is no namespace, just use root ones\n */\nfunction makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ((process.env.NODE_ENV !== 'production') && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ((process.env.NODE_ENV !== 'production') && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}\n\nfunction makeLocalGetters (store, namespace) {\n if (!store._makeLocalGettersCache[namespace]) {\n var gettersProxy = {};\n var splitPos = namespace.length;\n Object.keys(store.getters).forEach(function (type) {\n // skip if the target getter is not match this namespace\n if (type.slice(0, splitPos) !== namespace) { return }\n\n // extract local getter type\n var localType = type.slice(splitPos);\n\n // Add a port to the getters proxy.\n // Define as getter property because\n // we do not want to evaluate the getters in this time.\n Object.defineProperty(gettersProxy, localType, {\n get: function () { return store.getters[type]; },\n enumerable: true\n });\n });\n store._makeLocalGettersCache[namespace] = gettersProxy;\n }\n\n return store._makeLocalGettersCache[namespace]\n}\n\nfunction registerMutation (store, type, handler, local) {\n var entry = store._mutations[type] || (store._mutations[type] = []);\n entry.push(function wrappedMutationHandler (payload) {\n handler.call(store, local.state, payload);\n });\n}\n\nfunction registerAction (store, type, handler, local) {\n var entry = store._actions[type] || (store._actions[type] = []);\n entry.push(function wrappedActionHandler (payload) {\n var res = handler.call(store, {\n dispatch: local.dispatch,\n commit: local.commit,\n getters: local.getters,\n state: local.state,\n rootGetters: store.getters,\n rootState: store.state\n }, payload);\n if (!isPromise(res)) {\n res = Promise.resolve(res);\n }\n if (store._devtoolHook) {\n return res.catch(function (err) {\n store._devtoolHook.emit('vuex:error', err);\n throw err\n })\n } else {\n return res\n }\n });\n}\n\nfunction registerGetter (store, type, rawGetter, local) {\n if (store._wrappedGetters[type]) {\n if ((process.env.NODE_ENV !== 'production')) {\n console.error((\"[vuex] duplicate getter key: \" + type));\n }\n return\n }\n store._wrappedGetters[type] = function wrappedGetter (store) {\n return rawGetter(\n local.state, // local state\n local.getters, // local getters\n store.state, // root state\n store.getters // root getters\n )\n };\n}\n\nfunction enableStrictMode (store) {\n store._vm.$watch(function () { return this._data.$$state }, function () {\n if ((process.env.NODE_ENV !== 'production')) {\n assert(store._committing, \"do not mutate vuex store state outside mutation handlers.\");\n }\n }, { deep: true, sync: true });\n}\n\nfunction getNestedState (state, path) {\n return path.reduce(function (state, key) { return state[key]; }, state)\n}\n\nfunction unifyObjectStyle (type, payload, options) {\n if (isObject(type) && type.type) {\n options = payload;\n payload = type;\n type = type.type;\n }\n\n if ((process.env.NODE_ENV !== 'production')) {\n assert(typeof type === 'string', (\"expects string as the type, but found \" + (typeof type) + \".\"));\n }\n\n return { type: type, payload: payload, options: options }\n}\n\nfunction install (_Vue) {\n if (Vue && _Vue === Vue) {\n if ((process.env.NODE_ENV !== 'production')) {\n console.error(\n '[vuex] already installed. Vue.use(Vuex) should be called only once.'\n );\n }\n return\n }\n Vue = _Vue;\n applyMixin(Vue);\n}\n\n/**\n * Reduce the code which written in Vue.js for getting the state.\n * @param {String} [namespace] - Module's namespace\n * @param {Object|Array} states # Object's item can be a function which accept state and getters for param, you can do something for state and getters in it.\n * @param {Object}\n */\nvar mapState = normalizeNamespace(function (namespace, states) {\n var res = {};\n if ((process.env.NODE_ENV !== 'production') && !isValidMap(states)) {\n console.error('[vuex] mapState: mapper parameter must be either an Array or an Object');\n }\n normalizeMap(states).forEach(function (ref) {\n var key = ref.key;\n var val = ref.val;\n\n res[key] = function mappedState () {\n var state = this.$store.state;\n var getters = this.$store.getters;\n if (namespace) {\n var module = getModuleByNamespace(this.$store, 'mapState', namespace);\n if (!module) {\n return\n }\n state = module.context.state;\n getters = module.context.getters;\n }\n return typeof val === 'function'\n ? val.call(this, state, getters)\n : state[val]\n };\n // mark vuex getter for devtools\n res[key].vuex = true;\n });\n return res\n});\n\n/**\n * Reduce the code which written in Vue.js for committing the mutation\n * @param {String} [namespace] - Module's namespace\n * @param {Object|Array} mutations # Object's item can be a function which accept `commit` function as the first param, it can accept another params. You can commit mutation and do any other things in this function. specially, You need to pass anthor params from the mapped function.\n * @return {Object}\n */\nvar mapMutations = normalizeNamespace(function (namespace, mutations) {\n var res = {};\n if ((process.env.NODE_ENV !== 'production') && !isValidMap(mutations)) {\n console.error('[vuex] mapMutations: mapper parameter must be either an Array or an Object');\n }\n normalizeMap(mutations).forEach(function (ref) {\n var key = ref.key;\n var val = ref.val;\n\n res[key] = function mappedMutation () {\n var args = [], len = arguments.length;\n while ( len-- ) args[ len ] = arguments[ len ];\n\n // Get the commit method from store\n var commit = this.$store.commit;\n if (namespace) {\n var module = getModuleByNamespace(this.$store, 'mapMutations', namespace);\n if (!module) {\n return\n }\n commit = module.context.commit;\n }\n return typeof val === 'function'\n ? val.apply(this, [commit].concat(args))\n : commit.apply(this.$store, [val].concat(args))\n };\n });\n return res\n});\n\n/**\n * Reduce the code which written in Vue.js for getting the getters\n * @param {String} [namespace] - Module's namespace\n * @param {Object|Array} getters\n * @return {Object}\n */\nvar mapGetters = normalizeNamespace(function (namespace, getters) {\n var res = {};\n if ((process.env.NODE_ENV !== 'production') && !isValidMap(getters)) {\n console.error('[vuex] mapGetters: mapper parameter must be either an Array or an Object');\n }\n normalizeMap(getters).forEach(function (ref) {\n var key = ref.key;\n var val = ref.val;\n\n // The namespace has been mutated by normalizeNamespace\n val = namespace + val;\n res[key] = function mappedGetter () {\n if (namespace && !getModuleByNamespace(this.$store, 'mapGetters', namespace)) {\n return\n }\n if ((process.env.NODE_ENV !== 'production') && !(val in this.$store.getters)) {\n console.error((\"[vuex] unknown getter: \" + val));\n return\n }\n return this.$store.getters[val]\n };\n // mark vuex getter for devtools\n res[key].vuex = true;\n });\n return res\n});\n\n/**\n * Reduce the code which written in Vue.js for dispatch the action\n * @param {String} [namespace] - Module's namespace\n * @param {Object|Array} actions # Object's item can be a function which accept `dispatch` function as the first param, it can accept anthor params. You can dispatch action and do any other things in this function. specially, You need to pass anthor params from the mapped function.\n * @return {Object}\n */\nvar mapActions = normalizeNamespace(function (namespace, actions) {\n var res = {};\n if ((process.env.NODE_ENV !== 'production') && !isValidMap(actions)) {\n console.error('[vuex] mapActions: mapper parameter must be either an Array or an Object');\n }\n normalizeMap(actions).forEach(function (ref) {\n var key = ref.key;\n var val = ref.val;\n\n res[key] = function mappedAction () {\n var args = [], len = arguments.length;\n while ( len-- ) args[ len ] = arguments[ len ];\n\n // get dispatch function from store\n var dispatch = this.$store.dispatch;\n if (namespace) {\n var module = getModuleByNamespace(this.$store, 'mapActions', namespace);\n if (!module) {\n return\n }\n dispatch = module.context.dispatch;\n }\n return typeof val === 'function'\n ? val.apply(this, [dispatch].concat(args))\n : dispatch.apply(this.$store, [val].concat(args))\n };\n });\n return res\n});\n\n/**\n * Rebinding namespace param for mapXXX function in special scoped, and return them by simple object\n * @param {String} namespace\n * @return {Object}\n */\nvar createNamespacedHelpers = function (namespace) { return ({\n mapState: mapState.bind(null, namespace),\n mapGetters: mapGetters.bind(null, namespace),\n mapMutations: mapMutations.bind(null, namespace),\n mapActions: mapActions.bind(null, namespace)\n}); };\n\n/**\n * Normalize the map\n * normalizeMap([1, 2, 3]) => [ { key: 1, val: 1 }, { key: 2, val: 2 }, { key: 3, val: 3 } ]\n * normalizeMap({a: 1, b: 2, c: 3}) => [ { key: 'a', val: 1 }, { key: 'b', val: 2 }, { key: 'c', val: 3 } ]\n * @param {Array|Object} map\n * @return {Object}\n */\nfunction normalizeMap (map) {\n if (!isValidMap(map)) {\n return []\n }\n return Array.isArray(map)\n ? map.map(function (key) { return ({ key: key, val: key }); })\n : Object.keys(map).map(function (key) { return ({ key: key, val: map[key] }); })\n}\n\n/**\n * Validate whether given map is valid or not\n * @param {*} map\n * @return {Boolean}\n */\nfunction isValidMap (map) {\n return Array.isArray(map) || isObject(map)\n}\n\n/**\n * Return a function expect two param contains namespace and map. it will normalize the namespace and then the param's function will handle the new namespace and the map.\n * @param {Function} fn\n * @return {Function}\n */\nfunction normalizeNamespace (fn) {\n return function (namespace, map) {\n if (typeof namespace !== 'string') {\n map = namespace;\n namespace = '';\n } else if (namespace.charAt(namespace.length - 1) !== '/') {\n namespace += '/';\n }\n return fn(namespace, map)\n }\n}\n\n/**\n * Search a special module from store by namespace. if module not exist, print error message.\n * @param {Object} store\n * @param {String} helper\n * @param {String} namespace\n * @return {Object}\n */\nfunction getModuleByNamespace (store, helper, namespace) {\n var module = store._modulesNamespaceMap[namespace];\n if ((process.env.NODE_ENV !== 'production') && !module) {\n console.error((\"[vuex] module namespace not found in \" + helper + \"(): \" + namespace));\n }\n return module\n}\n\n// Credits: borrowed code from fcomb/redux-logger\n\nfunction createLogger (ref) {\n if ( ref === void 0 ) ref = {};\n var collapsed = ref.collapsed; if ( collapsed === void 0 ) collapsed = true;\n var filter = ref.filter; if ( filter === void 0 ) filter = function (mutation, stateBefore, stateAfter) { return true; };\n var transformer = ref.transformer; if ( transformer === void 0 ) transformer = function (state) { return state; };\n var mutationTransformer = ref.mutationTransformer; if ( mutationTransformer === void 0 ) mutationTransformer = function (mut) { return mut; };\n var actionFilter = ref.actionFilter; if ( actionFilter === void 0 ) actionFilter = function (action, state) { return true; };\n var actionTransformer = ref.actionTransformer; if ( actionTransformer === void 0 ) actionTransformer = function (act) { return act; };\n var logMutations = ref.logMutations; if ( logMutations === void 0 ) logMutations = true;\n var logActions = ref.logActions; if ( logActions === void 0 ) logActions = true;\n var logger = ref.logger; if ( logger === void 0 ) logger = console;\n\n return function (store) {\n var prevState = deepCopy(store.state);\n\n if (typeof logger === 'undefined') {\n return\n }\n\n if (logMutations) {\n store.subscribe(function (mutation, state) {\n var nextState = deepCopy(state);\n\n if (filter(mutation, prevState, nextState)) {\n var formattedTime = getFormattedTime();\n var formattedMutation = mutationTransformer(mutation);\n var message = \"mutation \" + (mutation.type) + formattedTime;\n\n startMessage(logger, message, collapsed);\n logger.log('%c prev state', 'color: #9E9E9E; font-weight: bold', transformer(prevState));\n logger.log('%c mutation', 'color: #03A9F4; font-weight: bold', formattedMutation);\n logger.log('%c next state', 'color: #4CAF50; font-weight: bold', transformer(nextState));\n endMessage(logger);\n }\n\n prevState = nextState;\n });\n }\n\n if (logActions) {\n store.subscribeAction(function (action, state) {\n if (actionFilter(action, state)) {\n var formattedTime = getFormattedTime();\n var formattedAction = actionTransformer(action);\n var message = \"action \" + (action.type) + formattedTime;\n\n startMessage(logger, message, collapsed);\n logger.log('%c action', 'color: #03A9F4; font-weight: bold', formattedAction);\n endMessage(logger);\n }\n });\n }\n }\n}\n\nfunction startMessage (logger, message, collapsed) {\n var startMessage = collapsed\n ? logger.groupCollapsed\n : logger.group;\n\n // render\n try {\n startMessage.call(logger, message);\n } catch (e) {\n logger.log(message);\n }\n}\n\nfunction endMessage (logger) {\n try {\n logger.groupEnd();\n } catch (e) {\n logger.log('—— log end ——');\n }\n}\n\nfunction getFormattedTime () {\n var time = new Date();\n return (\" @ \" + (pad(time.getHours(), 2)) + \":\" + (pad(time.getMinutes(), 2)) + \":\" + (pad(time.getSeconds(), 2)) + \".\" + (pad(time.getMilliseconds(), 3)))\n}\n\nfunction repeat (str, times) {\n return (new Array(times + 1)).join(str)\n}\n\nfunction pad (num, maxLength) {\n return repeat('0', maxLength - num.toString().length) + num\n}\n\nvar index = {\n Store: Store,\n install: install,\n version: '3.6.2',\n mapState: mapState,\n mapMutations: mapMutations,\n mapGetters: mapGetters,\n mapActions: mapActions,\n createNamespacedHelpers: createNamespacedHelpers,\n createLogger: createLogger\n};\n\nexport default index;\nexport { Store, createLogger, createNamespacedHelpers, install, mapActions, mapGetters, mapMutations, mapState };\n","import '../assets/NcSettingsSection-DZwOPKg1.css';\nimport { r as register, p as t23, a as t } from \"./_l10n-DDx8P-X1.mjs\";\nimport { n as normalizeComponent } from \"./_plugin-vue2_normalizer-D637Qkok.mjs\";\nregister(t23);\nconst _sfc_main$1 = {\n name: \"HelpCircleIcon\",\n emits: [\"click\"],\n props: {\n title: {\n type: String\n },\n fillColor: {\n type: String,\n default: \"currentColor\"\n },\n size: {\n type: Number,\n default: 24\n }\n }\n};\nvar _sfc_render$1 = function render() {\n var _vm = this, _c = _vm._self._c;\n return _c(\"span\", _vm._b({ staticClass: \"material-design-icon help-circle-icon\", attrs: { \"aria-hidden\": _vm.title ? null : true, \"aria-label\": _vm.title, \"role\": \"img\" }, on: { \"click\": function($event) {\n return _vm.$emit(\"click\", $event);\n } } }, \"span\", _vm.$attrs, false), [_c(\"svg\", { staticClass: \"material-design-icon__svg\", attrs: { \"fill\": _vm.fillColor, \"width\": _vm.size, \"height\": _vm.size, \"viewBox\": \"0 0 24 24\" } }, [_c(\"path\", { attrs: { \"d\": \"M15.07,11.25L14.17,12.17C13.45,12.89 13,13.5 13,15H11V14.5C11,13.39 11.45,12.39 12.17,11.67L13.41,10.41C13.78,10.05 14,9.55 14,9C14,7.89 13.1,7 12,7A2,2 0 0,0 10,9H8A4,4 0 0,1 12,5A4,4 0 0,1 16,9C16,9.88 15.64,10.67 15.07,11.25M13,19H11V17H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z\" } }, [_vm.title ? _c(\"title\", [_vm._v(_vm._s(_vm.title))]) : _vm._e()])])]);\n};\nvar _sfc_staticRenderFns$1 = [];\nvar __component__$1 = /* @__PURE__ */ normalizeComponent(\n _sfc_main$1,\n _sfc_render$1,\n _sfc_staticRenderFns$1,\n false,\n null,\n null,\n null,\n null\n);\nconst HelpCircle = __component__$1.exports;\nconst _sfc_main = {\n name: \"NcSettingsSection\",\n components: {\n HelpCircle\n },\n props: {\n name: {\n type: String,\n required: true\n },\n description: {\n type: String,\n default: \"\"\n },\n docUrl: {\n type: String,\n default: \"\"\n },\n /**\n * Limit the width of the setting's content\n *\n * Setting this to false allows unrestricted (width) settings content.\n * Note that the name and description have always a width limit.\n * @deprecated Will be removed with next version and will not be used on Nextcloud 30+ (always forced to true)\n */\n limitWidth: {\n type: Boolean,\n default: true\n }\n },\n data() {\n return {\n docNameTranslated: t(\"External documentation for {name}\", {\n name: this.name\n })\n };\n },\n computed: {\n forceLimitWidth() {\n var _a, _b;\n if (this.limitWidth) {\n return true;\n }\n const [major] = (_b = (_a = window._oc_config) == null ? void 0 : _a.version.split(\".\", 2)) != null ? _b : [];\n return major && Number.parseInt(major) >= 30;\n },\n hasDescription() {\n return this.description.length > 0;\n },\n hasDocUrl() {\n return this.docUrl.length > 0;\n }\n }\n};\nvar _sfc_render = function render2() {\n var _vm = this, _c = _vm._self._c;\n return _c(\"div\", { staticClass: \"settings-section\", class: { \"settings-section--limit-width\": _vm.forceLimitWidth } }, [_c(\"h2\", { staticClass: \"settings-section__name\" }, [_vm._v(\" \" + _vm._s(_vm.name) + \" \"), _vm.hasDocUrl ? _c(\"a\", { staticClass: \"settings-section__info\", attrs: { \"href\": _vm.docUrl, \"title\": _vm.docNameTranslated, \"aria-label\": _vm.docNameTranslated, \"target\": \"_blank\", \"rel\": \"noreferrer nofollow\" } }, [_c(\"HelpCircle\", { attrs: { \"size\": 20 } })], 1) : _vm._e()]), _vm.hasDescription ? _c(\"p\", { staticClass: \"settings-section__desc\" }, [_vm._v(\" \" + _vm._s(_vm.description) + \" \")]) : _vm._e(), _vm._t(\"default\")], 2);\n};\nvar _sfc_staticRenderFns = [];\nvar __component__ = /* @__PURE__ */ normalizeComponent(\n _sfc_main,\n _sfc_render,\n _sfc_staticRenderFns,\n false,\n null,\n \"251fe753\",\n null,\n null\n);\nconst NcSettingsSection = __component__.exports;\nexport {\n NcSettingsSection as N\n};\n","\n\n","\n\n","\n\n","\n\n","\n\n\n\n\n\n\n","/**\n * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport type { IActivityType } from '../models/ActivitySettings.js'\n\n/**\n * Return wether the notification method can be checked for the activity\n *\n * @param activity - the concerned activity\n * @param methodKey - the concerned method\n * @return {boolean}\n */\nexport function isActivityEnabled(activity: IActivityType, methodKey: string) {\n\treturn activity.methods.includes(methodKey)\n}\n\n/**\n * @param activities - List of the activities to check\n * @param methodKey - the method key for which to verify the checked value\n * @return {boolean} Wether at least one input is checked for the given set of activities\n */\nexport function isOneInputUnChecked(activities: IActivityType[], methodKey: string) {\n\tfor (const activity of activities) {\n\t\tif (isActivityEnabled(activity, methodKey) && !activity[methodKey]) {\n\t\t\treturn true\n\t\t}\n\t}\n\n\treturn false\n}\n","\n\n\n\n\n\n\n","/**\n * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport Vue from 'vue'\nimport Vuex from 'vuex'\nimport { translate as t } from '@nextcloud/l10n'\n\nimport axios from '@nextcloud/axios'\nimport { generateUrl } from '@nextcloud/router'\nimport { loadState } from '@nextcloud/initial-state'\nimport { showSuccess, showError } from '@nextcloud/dialogs'\n\nimport { isActivityEnabled, isOneInputUnChecked } from '../utils/settings.ts'\nimport logger from '../utils/logger.ts'\n\nVue.use(Vuex)\n\n/**\n * @typedef {object} SettingsState\n * @property {object} setting .\n * @property {Object} activityGroups Activity setting groups that should be shown (Files, Calendar, ...)\n * @property {boolean} isEmailSet Whether the user has a valid email address set\n * @property {boolean} emailEnabled Whether activity emails should be sent\n * @property {boolean} activityDigestEnabled Whether the daily digest should be sent\n * @property {0|1|2|3} settingBatchtime How to group the activity emails\n * @property {Array} methods Available methods for activity (push, mail, ...)\n * @property {string} endpoint API endpoint to talk to (user or admin settings)\n */\n\nconst store = new Vuex.Store({\n\tstrict: true,\n\t/** @type {SettingsState} */\n\tstate: {\n\t\tsetting: loadState('activity', 'setting'),\n\t\tactivityGroups: loadState('activity', 'activity_groups'),\n\t\tisEmailSet: loadState('activity', 'is_email_set'),\n\t\temailEnabled: loadState('activity', 'email_enabled'),\n\t\tactivityDigestEnabled: loadState('activity', 'activity_digest_enabled', false),\n\t\tsettingBatchtime: loadState('activity', 'setting_batchtime'),\n\t\tmethods: loadState('activity', 'methods'),\n\t\tendpoint: '',\n\t},\n\tgetters: {\n\t\t/**\n\t\t * Return an array of checked activities.\n\t\t *\n\t\t * @param {SettingsState} state - The current state.\n\t\t * @return {Array}\n\t\t */\n\t\tcheckedActivities(state) {\n\t\t\tconst methodsEnabled = (activityKey, activity) => {\n\t\t\t\tconst methods = []\n\t\t\t\tif (activity.email) {\n\t\t\t\t\tmethods.push({ activityKey, method: 'email', activity })\n\t\t\t\t}\n\t\t\t\tif (activity.notification) {\n\t\t\t\t\tmethods.push({ activityKey, method: 'notification', activity })\n\t\t\t\t}\n\t\t\t\treturn methods\n\t\t\t}\n\n\t\t\treturn Object.values(state.activityGroups)\n\t\t\t\t.map(group => Object.entries(group.activities)) // [[[activityKey, activity], ...], [[activityKey, activity], ...]]\n\t\t\t\t.reduce((acc, val) => acc.concat(val), []) // [[activityKey, activity], ...]\n\t\t\t\t.map(([activityKey, activity]) => methodsEnabled(activityKey, activity)) // [[{activityKey, method, activity}, ...], ...]\n\t\t\t\t.reduce((acc, val) => acc.concat(val), [])\n\t\t\t\t.filter(({ activity, method }) => activity[method])\n\t\t\t\t.map(({ activityKey, method }) => `${activityKey}_${method}`) // ['enabled_activity_key', ...]\n\t\t},\n\t},\n\tmutations: {\n\t\t/**\n\t\t * Update the 'enabled' state of a notification method for a given group/activity/method tuple\n\t\t *\n\t\t * @param {SettingsState} state - The current state.\n\t\t * @param {object} payload - The payload.\n\t\t * @param {string} payload.groupKey - The targeted group\n\t\t * @param {string} payload.activityKey - The targeted activity\n\t\t * @param {string} payload.methodKey - The targeted method\n\t\t * @param {string} payload.value - The value to set\n\t\t */\n\t\tSET_METHOD_FOR_METHOD_AND_ACTIVITY(state, { groupKey, activityKey, methodKey, value }) {\n\t\t\tconst group = state.activityGroups[groupKey]\n\t\t\tconst activity = group.activities[activityKey]\n\n\t\t\tif (isActivityEnabled(activity, methodKey)) {\n\t\t\t\tactivity[methodKey] = value\n\t\t\t}\n\t\t},\n\t\t/**\n\t\t * Set the endpoint used to save the settings.\n\t\t *\n\t\t * @param {SettingsState} state - The current state.\n\t\t * @param {object} payload - The payload.\n\t\t * @param {string} payload.endpoint - Where to POST the saveSettings request.\n\t\t */\n\t\tSET_ENDPOINT(state, { endpoint }) {\n\t\t\tstate.endpoint = endpoint\n\t\t},\n\t\t/**\n\t\t * Set the batch time.\n\t\t *\n\t\t * @param {SettingsState} state - The current state.\n\t\t * @param {object} payload - The payload.\n\t\t * @param {0|1|2|3} payload.settingBatchtime - The selected batch time.\n\t\t */\n\t\tSET_SETTING_BATCHTIME(state, { settingBatchtime }) {\n\t\t\tstate.settingBatchtime = settingBatchtime\n\t\t},\n\t\t/**\n\t\t * Toggle activity digest.\n\t\t *\n\t\t * @param {SettingsState} state - The current state.\n\t\t * @param {object} payload - The payload.\n\t\t * @param {boolean} payload.activityDigestEnabled - Enabled status of the activity digest.\n\t\t */\n\t\tTOGGLE_ACTIVITY_DIGEST(state, { activityDigestEnabled }) {\n\t\t\tstate.activityDigestEnabled = activityDigestEnabled\n\t\t},\n\t\t/**\n\t\t * Toggle the availability of mail notifications\n\t\t *\n\t\t * @param {SettingsState} state - The current state.\n\t\t * @param {object} payload - The payload.\n\t\t * @param {boolean} payload.emailEnabled - Enabled status of the email notifications.\n\t\t */\n\t\tTOGGLE_EMAIL_ENABLED(state, { emailEnabled }) {\n\t\t\tstate.emailEnabled = emailEnabled\n\t\t},\n\t},\n\tactions: {\n\t\t/**\n\t\t * Set the endpoint used to save the settings.\n\t\t *\n\t\t * @param {object} _ - Action context\n\t\t * @param {Function} _.commit - State modifying function\n\t\t * @param {object} payload - The payload.\n\t\t * @param {string} payload.endpoint - Where to POST the saveSettings request.\n\t\t */\n\t\tsetEndpoint({ commit }, { endpoint }) {\n\t\t\tcommit('SET_ENDPOINT', { endpoint })\n\t\t},\n\n\t\t/**\n\t\t * Toggle the 'enabled' state of a notification method for a given group/activity/method tuple\n\t\t *\n\t\t * @param {object} _ - Action context\n\t\t * @param {Function} _.commit - State modifying function\n\t\t * @param {Function} _.dispatch - Function to dispatch another action\n\t\t * @param {object} _.state - Current state\n\t\t * @param {object} payload - The payload.\n\t\t * @param {string} payload.groupKey - The targeted group\n\t\t * @param {string} payload.activityKey - The targeted activity\n\t\t * @param {string} payload.methodKey - The targeted method\n\t\t */\n\t\ttoggleMethodForMethodAndActivity({ commit, state, dispatch }, { groupKey, activityKey, methodKey }) {\n\t\t\tconst activity = state.activityGroups[groupKey].activities[activityKey]\n\t\t\tconst oneInputIsChecked = isOneInputUnChecked([activity], methodKey)\n\n\t\t\tcommit(\n\t\t\t\t'SET_METHOD_FOR_METHOD_AND_ACTIVITY',\n\t\t\t\t{\n\t\t\t\t\tgroupKey,\n\t\t\t\t\tactivityKey,\n\t\t\t\t\tmethodKey,\n\t\t\t\t\tvalue: oneInputIsChecked,\n\t\t\t\t})\n\n\t\t\tdispatch('saveSettings')\n\t\t},\n\n\t\t/**\n\t\t * Toggle the 'enabled' state of a notification method for a given group/method tuple\n\t\t *\n\t\t * @param {object} _ - Action context\n\t\t * @param {Function} _.commit - State modifying function\n\t\t * @param {Function} _.dispatch - Function to dispatch another action\n\t\t * @param {object} _.state - Current state\n\t\t * @param {object} payload - The payload.\n\t\t * @param {string} payload.groupKey - The targeted group\n\t\t * @param {string} payload.methodKey - The targeted method\n\t\t */\n\t\ttoggleMethodForGroup({ commit, state, dispatch }, { groupKey, methodKey }) {\n\t\t\tconst activities = Object.values(state.activityGroups[groupKey].activities)\n\t\t\tconst oneInputIsChecked = isOneInputUnChecked(activities, methodKey)\n\n\t\t\tfor (const activityKey in state.activityGroups[groupKey].activities) {\n\t\t\t\tcommit(\n\t\t\t\t\t'SET_METHOD_FOR_METHOD_AND_ACTIVITY',\n\t\t\t\t\t{\n\t\t\t\t\t\tgroupKey,\n\t\t\t\t\t\tactivityKey,\n\t\t\t\t\t\tmethodKey,\n\t\t\t\t\t\tvalue: oneInputIsChecked,\n\t\t\t\t\t})\n\t\t\t}\n\n\t\t\tdispatch('saveSettings')\n\t\t},\n\n\t\t/**\n\t\t * Toggle the 'enabled' state of a notification method for a given group/activity tuple\n\t\t *\n\t\t * @param {object} _ - Action context\n\t\t * @param {Function} _.commit - State modifying function\n\t\t * @param {Function} _.dispatch - Function to dispatch another action\n\t\t * @param {object} _.state - Current state\n\t\t * @param {object} payload - The payload.\n\t\t * @param {string} payload.groupKey - The targeted group\n\t\t * @param {string} payload.activityKey - The targeted activity\n\t\t */\n\t\ttoggleMethodsForActivity({ commit, state, dispatch }, { groupKey, activityKey }) {\n\t\t\tconst activity = state.activityGroups[groupKey].activities[activityKey]\n\t\t\tconst oneInputIsChecked = activity.methods.map(method => isOneInputUnChecked([activity], method)).includes(true)\n\n\t\t\tfor (const methodKey of activity.methods) {\n\t\t\t\tcommit(\n\t\t\t\t\t'SET_METHOD_FOR_METHOD_AND_ACTIVITY',\n\t\t\t\t\t{\n\t\t\t\t\t\tgroupKey,\n\t\t\t\t\t\tactivityKey,\n\t\t\t\t\t\tmethodKey,\n\t\t\t\t\t\tvalue: oneInputIsChecked,\n\t\t\t\t\t})\n\t\t\t}\n\n\t\t\tdispatch('saveSettings')\n\t\t},\n\n\t\t/**\n\t\t * Set the batch time.\n\t\t *\n\t\t * @param {object} _ - Action context\n\t\t * @param {Function} _.commit - State modifying function\n\t\t * @param {Function} _.dispatch - Function to dispatch another action\n\t\t * @param {object} payload - The payload.\n\t\t * @param {0|1|2|3} payload.settingBatchtime - The selected batch time.\n\t\t */\n\t\tsetSettingBatchtime({ commit, dispatch }, { settingBatchtime }) {\n\t\t\tcommit(\n\t\t\t\t'SET_SETTING_BATCHTIME',\n\t\t\t\t{\n\t\t\t\t\tsettingBatchtime,\n\t\t\t\t})\n\n\t\t\tdispatch('saveSettings')\n\t\t},\n\n\t\t/**\n\t\t * Toggle the activity digest.\n\t\t *\n\t\t * @param {object} _ - Action context\n\t\t * @param {Function} _.commit - State modifying function\n\t\t * @param {Function} _.dispatch - Function to dispatch another action\n\t\t * @param {object} payload - The payload.\n\t\t * @param {boolean} payload.activityDigestEnabled - Enabled status of the activity digest.\n\t\t */\n\t\ttoggleActivityDigestEnabled({ commit, dispatch }, { activityDigestEnabled }) {\n\t\t\tcommit(\n\t\t\t\t'TOGGLE_ACTIVITY_DIGEST',\n\t\t\t\t{\n\t\t\t\t\tactivityDigestEnabled,\n\t\t\t\t})\n\n\t\t\tdispatch('saveSettings')\n\t\t},\n\n\t\t/**\n\t\t * Toggle the availability of mail notifications\n\t\t *\n\t\t * @param {object} _ - Action context\n\t\t * @param {Function} _.commit - State modifying function\n\t\t * @param {object} payload - The payload.\n\t\t * @param {boolean} payload.emailEnabled - Enabled status of the email notifications.\n\t\t */\n\t\ttoggleEmailEnabled({ commit }, { emailEnabled }) {\n\t\t\tcommit(\n\t\t\t\t'TOGGLE_EMAIL_ENABLED',\n\t\t\t\t{\n\t\t\t\t\temailEnabled,\n\t\t\t\t})\n\n\t\t\ttry {\n\n\t\t\t\tOCP.AppConfig.setValue(\n\t\t\t\t\t'activity', 'enable_email',\n\t\t\t\t\temailEnabled ? 'yes' : 'no'\n\t\t\t\t)\n\n\t\t\t\tshowSuccess(t('activity', 'Your settings have been updated.'))\n\t\t\t} catch (error) {\n\t\t\t\tshowError(t('activity', 'Unable to save the settings'))\n\t\t\t\tlogger.error('An error occurred while saving the activity settings', error)\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Save the currently displayed settings\n\t\t *\n\t\t * @param {object} _ - Action context\n\t\t * @param {object} _.state - Current state\n\t\t * @param {object} _.getters - Getter functions for the state\n\t\t */\n\t\tasync saveSettings({ state, getters }) {\n\t\t\ttry {\n\t\t\t\tconst form = new FormData()\n\t\t\t\tgetters.checkedActivities.forEach(activity => {\n\t\t\t\t\tform.append(activity, '1')\n\t\t\t\t})\n\n\t\t\t\tform.append('notify_setting_batchtime', `${state.settingBatchtime}`)\n\t\t\t\tform.append('activity_digest', `${state.activityDigestEnabled ? 1 : 0}`)\n\n\t\t\t\tconst response = await axios.post(generateUrl(state.endpoint), form)\n\n\t\t\t\tshowSuccess(response.data.data.message)\n\t\t\t} catch (error) {\n\t\t\t\tshowError(t('activity', 'Unable to save the settings'))\n\t\t\t\tlogger.error('An error occurred while saving the activity settings', error)\n\t\t\t}\n\t\t},\n\t},\n})\n\nexport default store\n"],"names":["applyMixin","Vue","version","vuexInit","_init","options","target","global","devtoolHook","devtoolPlugin","store","targetState","mutation","state","action","find","list","f","deepCopy","obj","cache","hit","c","copy","key","forEachValue","fn","isObject","isPromise","val","partial","arg","Module","rawModule","runtime","rawState","prototypeAccessors","module","ModuleCollection","rawRootModule","path","namespace","update","this$1","newModule","parent","rawChildModule","child","targetModule","Store","install","plugins","strict","ref","dispatch","commit","type","payload","installModule","resetStoreVM","plugin","useDevtools","prototypeAccessors$1","v","_type","_payload","_options","unifyObjectStyle","entry","handler","sub","result","resolve","reject","res","error","genericSubscribe","subs","getter","cb","parentState","getNestedState","resetStore","newOptions","committing","i","hot","oldVm","wrappedGetters","computed","silent","enableStrictMode","rootState","isRoot","moduleName","local","makeLocalContext","namespacedType","registerMutation","registerAction","registerGetter","noNamespace","args","makeLocalGetters","gettersProxy","splitPos","localType","err","rawGetter","_Vue","mapState","normalizeNamespace","states","normalizeMap","getters","getModuleByNamespace","mapMutations","mutations","len","mapGetters","mapActions","actions","createNamespacedHelpers","map","isValidMap","helper","createLogger","collapsed","filter","stateBefore","stateAfter","transformer","mutationTransformer","mut","actionFilter","actionTransformer","act","logMutations","logActions","logger","prevState","nextState","formattedTime","getFormattedTime","formattedMutation","message","startMessage","endMessage","formattedAction","time","pad","repeat","str","times","num","maxLength","index","Vuex","register","t23","_sfc_main$1","_sfc_render$1","_vm","_c","$event","_sfc_staticRenderFns$1","__component__$1","normalizeComponent","HelpCircle","_sfc_main","t","_a","_b","major","_sfc_render","_sfc_staticRenderFns","__component__","NcSettingsSection","id","MinusBox","CheckboxBlank","CheckboxMarked","CheckboxBlankOutline","values","input","isActivityEnabled","activity","methodKey","isOneInputUnChecked","activities","Checkbox","method","loadState","methodsEnabled","activityKey","methods","group","acc","groupKey","value","endpoint","settingBatchtime","activityDigestEnabled","emailEnabled","oneInputIsChecked","showSuccess","showError","form","response","axios","generateUrl"],"mappings":";wRAKA,SAASA,GAAYC,EAAK,CACpB,IAAAC,EAAU,OAAOD,EAAI,QAAQ,MAAM,GAAG,EAAE,CAAC,CAAC,EAE9C,GAAIC,GAAW,EACbD,EAAI,MAAM,CAAE,aAAcE,CAAU,CAAA,MAC/B,CAGD,IA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ACF,EACK,MAACE,GAAoBD,GAAc,QCxFxCP,GAAA,CACA,KAAA,2BACA,MAAA,CAAA,OAAA,EACA,MAAA,CACA,MAAA,CACA,KAAA,MACA,EACA,UAAA,CACA,KAAA,OACA,QAAA,cACA,EACA,KAAA,CACA,KAAA,OACA,QAAA,EACA,CACA,CACA,8nBChBAA,GAAA,CACA,KAAA,oBACA,MAAA,CAAA,OAAA,EACA,MAAA,CACA,MAAA,CACA,KAAA,MACA,EACA,UAAA,CACA,KAAA,OACA,QAAA,cACA,EACA,KAAA,CACA,KAAA,OACA,QAAA,EACA,CACA,CACA,umBChBAA,GAAA,CACA,KAAA,eACA,MAAA,CAAA,OAAA,EACA,MAAA,CACA,MAAA,CACA,KAAA,MACA,EACA,UAAA,CACA,KAAA,OACA,QAAA,cACA,EACA,KAAA,CACA,KAAA,OACA,QAAA,EACA,CACA,CACA,gnBChBAA,GAAA,CACA,KAAA,qBACA,MAAA,CAAA,OAAA,EACA,MAAA,CACA,MAAA,CACA,KAAA,MACA,EACA,UAAA,CACA,KAAA,OACA,QAAA,cACA,EACA,KAAA,CACA,KAAA,OACA,QAAA,EACA,CACA,CACA,upBCMAA,GAAA,CACA,KAAA,WAEA,MAAA,CAKA,GAAA,CACA,KAAA,OACA,SAAA,GACA,UAAAS,GAAAA,EAAA,KAAA,IAAA,EACA,EAKA,QAAA,CACA,KAAA,CAAA,QAAA,MAAA,MAAA,EACA,QAAA,EACA,EAKA,MAAA,CACA,KAAA,OACA,QAAA,IACA,EAKA,SAAA,CACA,KAAA,QACA,QAAA,EACA,EAKA,cAAA,CACA,KAAA,QACA,QAAA,EACA,EAKA,eAAA,CACA,KAAA,OACA,QAAA,MACA,EAKA,KAAA,CACA,KAAA,OACA,QAAA,IACA,CACA,EAEA,SAAA,CAMA,MAAA,CACA,MACA,GAAA,EAOA,SAAA,CACA,MAAA,CACA,cAAA,KAAA,KAAA,IACA,CACA,EAEA,WAAA,CACA,MAAA,CAAA,GAAA,KAAA,OAAA,EA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MC,GAAM,KAAKC,GAAYrM,EAAM,QAAQ,EAAGkM,CAAI,EAEnEF,EAAYG,EAAS,KAAK,KAAK,OAAO,CACtC,OAAQrI,EAAO,CACfmI,EAAUpC,EAAE,WAAY,6BAA6B,CAAC,EACtD/B,EAAO,MAAM,uDAAwDhE,CAAK,CAC1E,CACD,CACD,CACF,CAAC","x_google_ignoreList":[0,1,2,3,4,5]} \ No newline at end of file diff --git a/js/vendor.LICENSE.txt b/js/vendor.LICENSE.txt index 98d882abe..5513b251f 100644 --- a/js/vendor.LICENSE.txt +++ b/js/vendor.LICENSE.txt @@ -53,7 +53,7 @@ version: 2.1.0 license: GPL-3.0-or-later @nextcloud/l10n -version: 2.2.0 +version: 3.1.0 license: GPL-3.0-or-later @nextcloud/logger diff --git a/src/components/ActivityGrid.vue b/src/components/ActivityGrid.vue index a43b9b276..257e3a592 100644 --- a/src/components/ActivityGrid.vue +++ b/src/components/ActivityGrid.vue @@ -102,6 +102,10 @@ table.grid th.activity_select_group { color: var(--color-main-text); } +table.grid tr td span { + justify-content: center; +} + .sr-only { position:absolute; left:-10000px; @@ -110,4 +114,8 @@ table.grid th.activity_select_group { height:1px; overflow:hidden; } + +.activity-frequency__label { + margin-right: 10px; +}