(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".material-design-icon[data-v-9cedb949]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.settings-section[data-v-9cedb949]{display:block;padding:0 0 calc(var(--default-grid-baseline) * 5) 0;margin:calc(var(--default-grid-baseline) * 7);width:min(900px,100% - var(--default-grid-baseline) * 7 * 2)}.settings-section[data-v-9cedb949]:not(:last-child){border-bottom:1px solid var(--color-border)}.settings-section__name[data-v-9cedb949]{display:inline-flex;align-items:center;justify-content:center;max-width:900px;margin-top:0}.settings-section__info[data-v-9cedb949]{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-inline-start:0;color:var(--color-text-maxcontrast)}.settings-section__info[data-v-9cedb949]:hover,.settings-section__info[data-v-9cedb949]:focus,.settings-section__info[data-v-9cedb949]:active{color:var(--color-main-text)}.settings-section__desc[data-v-9cedb949]{margin-top:-.2em;margin-bottom:1em;color:var(--color-text-maxcontrast);max-width:900px}.checkbox-radio-switch[data-v-8c669300]{display:flex}.checkbox-radio-switch__input[data-v-8c669300]{position:fixed;z-index:-1;top:-5000px;left:-5000px;opacity:0}.checkbox-radio-switch__label[data-v-8c669300]{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-8c669300],.checkbox-radio-switch__label[data-v-8c669300] *{cursor:pointer}.checkbox-radio-switch__icon[data-v-8c669300]{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-8c669300]{opacity:.7}.checkbox-radio-switch--disabled .checkbox-radio-switch__label .checkbox-radio-switch__icon[data-v-8c669300]{color:var(--color-text-light)}.checkbox-radio-switch:not(.checkbox-radio-switch--disabled) .checkbox-radio-switch__input:hover+.checkbox-radio-switch__label[data-v-8c669300],.checkbox-radio-switch:not(.checkbox-radio-switch--disabled) .checkbox-radio-switch__input:focus+.checkbox-radio-switch__label[data-v-8c669300]{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-8c669300]{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-8c669300]{color:var(--color-text-lighter)}.checkbox-radio-switch-switch.checkbox-radio-switch--disabled.checkbox-radio-switch--checked .checkbox-radio-switch__icon[data-v-8c669300]{color:var(--color-primary-element-light)}.checkbox-radio-switch .sr-only[data-v-8c669300]{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}table.grid th[data-v-648e684b]{color:var(--color-text-light);height:44px}table.grid .group-header th[data-v-648e684b]{padding-top:16px;height:60px}table.grid th.group-header-section[data-v-648e684b]{font-size:16px;font-weight:700}table.grid th.activity_select_group[data-v-648e684b]{color:var(--color-main-text)}.sr-only[data-v-648e684b]{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})(); import{r as mt,E as gt,_ as et,a as yt,g as O,c as _,h as vt,B as _t}from"./_plugin-vue_export-helper-BUWJmgct.chunk.mjs";import{$ as bt,a0 as kt,s as it,c as Et,d as Ct,a as h,b as d,g,E as k,f as ot,j as nt,t as v,u as U,h as at,G as A,e as F,i as rt,z as R,C as wt,n as Ot,L as w,m as Tt,F as S,M as x}from"./index-9ivYYh8l.chunk.mjs";import{a as Q,s as Y}from"./index-JpgrUA2Z-kkHx3eHp.chunk.mjs";import{l as Z}from"./logger-1JHA8kGV.chunk.mjs";function At(){return st().__VUE_DEVTOOLS_GLOBAL_HOOK__}function st(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const St=typeof Proxy=="function",xt="devtools-plugin:setup",It="plugin:settings:set";let T,N;function Mt(){var t;return T!==void 0||(typeof window<"u"&&window.performance?(T=!0,N=window.performance):typeof globalThis<"u"&&!((t=globalThis.perf_hooks)===null||t===void 0)&&t.performance?(T=!0,N=globalThis.perf_hooks.performance):T=!1),T}function Gt(){return Mt()?N.now():Date.now()}class jt{constructor(i,e){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=i,this.hook=e;const o={};if(i.settings)for(const r in i.settings){const s=i.settings[r];o[r]=s.defaultValue}const n=`__vue-devtools-plugin-settings__${i.id}`;let a=Object.assign({},o);try{const r=localStorage.getItem(n),s=JSON.parse(r);Object.assign(a,s)}catch{}this.fallbacks={getSettings(){return a},setSettings(r){try{localStorage.setItem(n,JSON.stringify(r))}catch{}a=r},now(){return Gt()}},e&&e.on(It,(r,s)=>{r===this.plugin.id&&this.fallbacks.setSettings(s)}),this.proxiedOn=new Proxy({},{get:(r,s)=>this.target?this.target.on[s]:(...c)=>{this.onQueue.push({method:s,args:c})}}),this.proxiedTarget=new Proxy({},{get:(r,s)=>this.target?this.target[s]:s==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(s)?(...c)=>(this.targetQueue.push({method:s,args:c,resolve:()=>{}}),this.fallbacks[s](...c)):(...c)=>new Promise(u=>{this.targetQueue.push({method:s,args:c,resolve:u})})})}async setRealTarget(i){this.target=i;for(const e of this.onQueue)this.target.on[e.method](...e.args);for(const e of this.targetQueue)e.resolve(await this.target[e.method](...e.args))}}function Lt(t,i){const e=t,o=st(),n=At(),a=St&&e.enableEarlyProxy;if(n&&(o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!a))n.emit(xt,t,i);else{const r=a?new jt(e,n):null;(o.__VUE_DEVTOOLS_PLUGINS__=o.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:e,setupFn:i,proxy:r}),r&&i(r.proxiedTarget)}}var Nt="store";function C(t,i){Object.keys(t).forEach(function(e){return i(t[e],e)})}function ct(t){return t!==null&&typeof t=="object"}function Dt(t){return t&&typeof t.then=="function"}function Vt(t,i){return function(){return t(i)}}function J(t,i,e){return i.indexOf(t)<0&&(e&&e.prepend?i.unshift(t):i.push(t)),function(){var o=i.indexOf(t);o>-1&&i.splice(o,1)}}function W(t,i){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var e=t.state;M(t,e,[],t._modules.root,!0),V(t,e,i)}function V(t,i,e){var o=t._state,n=t._scope;t.getters={},t._makeLocalGettersCache=Object.create(null);var a=t._wrappedGetters,r={},s={},c=bt(!0);c.run(function(){C(a,function(u,l){r[l]=Vt(u,t),s[l]=Et(function(){return r[l]()}),Object.defineProperty(t.getters,l,{get:function(){return s[l].value},enumerable:!0})})}),t._state=kt({data:i}),t._scope=c,t.strict&&zt(t),o&&e&&t._withCommit(function(){o.data=null}),n&&n.stop()}function M(t,i,e,o,n){var a=!e.length,r=t._modules.getNamespace(e);if(o.namespaced&&(t._modulesNamespaceMap[r],t._modulesNamespaceMap[r]=o),!a&&!n){var s=$(i,e.slice(0,-1)),c=e[e.length-1];t._withCommit(function(){s[c]=o.state})}var u=o.context=$t(t,r,e);o.forEachMutation(function(l,p){var f=r+p;Ht(t,f,l,u)}),o.forEachAction(function(l,p){var f=l.root?p:r+p,P=l.handler||l;Bt(t,f,P,u)}),o.forEachGetter(function(l,p){var f=r+p;Kt(t,f,l,u)}),o.forEachChild(function(l,p){M(t,i,e.concat(p),l,n)})}function $t(t,i,e){var o=i==="",n={dispatch:o?t.dispatch:function(a,r,s){var c=I(a,r,s),u=c.payload,l=c.options,p=c.type;return(!l||!l.root)&&(p=i+p),t.dispatch(p,u)},commit:o?t.commit:function(a,r,s){var c=I(a,r,s),u=c.payload,l=c.options,p=c.type;(!l||!l.root)&&(p=i+p),t.commit(p,u,l)}};return Object.defineProperties(n,{getters:{get:o?function(){return t.getters}:function(){return lt(t,i)}},state:{get:function(){return $(t.state,e)}}}),n}function lt(t,i){if(!t._makeLocalGettersCache[i]){var e={},o=i.length;Object.keys(t.getters).forEach(function(n){if(n.slice(0,o)===i){var a=n.slice(o);Object.defineProperty(e,a,{get:function(){return t.getters[n]},enumerable:!0})}}),t._makeLocalGettersCache[i]=e}return t._makeLocalGettersCache[i]}function Ht(t,i,e,o){var n=t._mutations[i]||(t._mutations[i]=[]);n.push(function(a){e.call(t,o.state,a)})}function Bt(t,i,e,o){var n=t._actions[i]||(t._actions[i]=[]);n.push(function(a){var r=e.call(t,{dispatch:o.dispatch,commit:o.commit,getters:o.getters,state:o.state,rootGetters:t.getters,rootState:t.state},a);return Dt(r)||(r=Promise.resolve(r)),t._devtoolHook?r.catch(function(s){throw t._devtoolHook.emit("vuex:error",s),s}):r})}function Kt(t,i,e,o){t._wrappedGetters[i]||(t._wrappedGetters[i]=function(n){return e(o.state,o.getters,n.state,n.getters)})}function zt(t){it(function(){return t._state.data},function(){},{deep:!0,flush:"sync"})}function $(t,i){return i.reduce(function(e,o){return e[o]},t)}function I(t,i,e){return ct(t)&&t.type&&(e=i,i=t,t=t.type),{type:t,payload:i,options:e}}var Pt="vuex bindings",q="vuex:mutations",G="vuex:actions",E="vuex",Ut=0;function Ft(t,i){Lt({id:"org.vuejs.vuex",app:t,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[Pt]},function(e){e.addTimelineLayer({id:q,label:"Vuex Mutations",color:X}),e.addTimelineLayer({id:G,label:"Vuex Actions",color:X}),e.addInspector({id:E,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),e.on.getInspectorTree(function(o){if(o.app===t&&o.inspectorId===E)if(o.filter){var n=[];pt(n,i._modules.root,o.filter,""),o.rootNodes=n}else o.rootNodes=[ht(i._modules.root,"")]}),e.on.getInspectorState(function(o){if(o.app===t&&o.inspectorId===E){var n=o.nodeId;lt(i,n),o.state=Yt(Jt(i._modules,n),n==="root"?i.getters:i._makeLocalGettersCache,n)}}),e.on.editInspectorState(function(o){if(o.app===t&&o.inspectorId===E){var n=o.nodeId,a=o.path;n!=="root"&&(a=n.split("/").filter(Boolean).concat(a)),i._withCommit(function(){o.set(i._state.data,a,o.state.value)})}}),i.subscribe(function(o,n){var a={};o.payload&&(a.payload=o.payload),a.state=n,e.notifyComponentUpdate(),e.sendInspectorTree(E),e.sendInspectorState(E),e.addTimelineEvent({layerId:q,event:{time:Date.now(),title:o.type,data:a}})}),i.subscribeAction({before:function(o,n){var a={};o.payload&&(a.payload=o.payload),o._id=Ut++,o._time=Date.now(),a.state=n,e.addTimelineEvent({layerId:G,event:{time:o._time,title:o.type,groupId:o._id,subtitle:"start",data:a}})},after:function(o,n){var a={},r=Date.now()-o._time;a.duration={_custom:{type:"duration",display:r+"ms",tooltip:"Action duration",value:r}},o.payload&&(a.payload=o.payload),a.state=n,e.addTimelineEvent({layerId:G,event:{time:Date.now(),title:o.type,groupId:o._id,subtitle:"end",data:a}})}})})}var X=8702998,Rt=6710886,Qt=16777215,ut={label:"namespaced",textColor:Qt,backgroundColor:Rt};function dt(t){return t&&t!=="root"?t.split("/").slice(-2,-1)[0]:"Root"}function ht(t,i){return{id:i||"root",label:dt(i),tags:t.namespaced?[ut]:[],children:Object.keys(t._children).map(function(e){return ht(t._children[e],i+e+"/")})}}function pt(t,i,e,o){o.includes(e)&&t.push({id:o||"root",label:o.endsWith("/")?o.slice(0,o.length-1):o||"Root",tags:i.namespaced?[ut]:[]}),Object.keys(i._children).forEach(function(n){pt(t,i._children[n],e,o+n+"/")})}function Yt(t,i,e){i=e==="root"?i:i[e];var o=Object.keys(i),n={state:Object.keys(t.state).map(function(r){return{key:r,editable:!0,value:t.state[r]}})};if(o.length){var a=Zt(i);n.getters=Object.keys(a).map(function(r){return{key:r.endsWith("/")?dt(r):r,editable:!1,value:D(function(){return a[r]})}})}return n}function Zt(t){var i={};return Object.keys(t).forEach(function(e){var o=e.split("/");if(o.length>1){var n=i,a=o.pop();o.forEach(function(r){n[r]||(n[r]={_custom:{value:{},display:r,tooltip:"Module",abstract:!0}}),n=n[r]._custom.value}),n[a]=D(function(){return t[e]})}else i[e]=D(function(){return t[e]})}),i}function Jt(t,i){var e=i.split("/").filter(function(o){return o});return e.reduce(function(o,n,a){var r=o[n];if(!r)throw new Error('Missing module "'+n+'" for path "'+i+'".');return a===e.length-1?r:r._children},i==="root"?t:t.root._children)}function D(t){try{return t()}catch(i){return i}}var y=function(t,i){this.runtime=i,this._children=Object.create(null),this._rawModule=t;var e=t.state;this.state=(typeof e=="function"?e():e)||{}},tt={namespaced:{configurable:!0}};tt.namespaced.get=function(){return!!this._rawModule.namespaced},y.prototype.addChild=function(t,i){this._children[t]=i},y.prototype.removeChild=function(t){delete this._children[t]},y.prototype.getChild=function(t){return this._children[t]},y.prototype.hasChild=function(t){return t in this._children},y.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},y.prototype.forEachChild=function(t){C(this._children,t)},y.prototype.forEachGetter=function(t){this._rawModule.getters&&C(this._rawModule.getters,t)},y.prototype.forEachAction=function(t){this._rawModule.actions&&C(this._rawModule.actions,t)},y.prototype.forEachMutation=function(t){this._rawModule.mutations&&C(this._rawModule.mutations,t)},Object.defineProperties(y.prototype,tt);var b=function(t){this.register([],t,!1)};b.prototype.get=function(t){return t.reduce(function(i,e){return i.getChild(e)},this.root)},b.prototype.getNamespace=function(t){var i=this.root;return t.reduce(function(e,o){return i=i.getChild(o),e+(i.namespaced?o+"/":"")},"")},b.prototype.update=function(t){ft([],this.root,t)},b.prototype.register=function(t,i,e){var o=this;e===void 0&&(e=!0);var n=new y(i,e);if(t.length===0)this.root=n;else{var a=this.get(t.slice(0,-1));a.addChild(t[t.length-1],n)}i.modules&&C(i.modules,function(r,s){o.register(t.concat(s),r,e)})},b.prototype.unregister=function(t){var i=this.get(t.slice(0,-1)),e=t[t.length-1],o=i.getChild(e);o&&o.runtime&&i.removeChild(e)},b.prototype.isRegistered=function(t){var i=this.get(t.slice(0,-1)),e=t[t.length-1];return i?i.hasChild(e):!1};function ft(t,i,e){if(i.update(e),e.modules)for(var o in e.modules){if(!i.getChild(o))return;ft(t.concat(o),i.getChild(o),e.modules[o])}}function Wt(t){return new m(t)}var m=function(t){var i=this;t===void 0&&(t={});var e=t.plugins;e===void 0&&(e=[]);var o=t.strict;o===void 0&&(o=!1);var n=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new b(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=n;var a=this,r=this,s=r.dispatch,c=r.commit;this.dispatch=function(l,p){return s.call(a,l,p)},this.commit=function(l,p,f){return c.call(a,l,p,f)},this.strict=o;var u=this._modules.root.state;M(this,u,[],this._modules.root),V(this,u),e.forEach(function(l){return l(i)})},j={state:{configurable:!0}};m.prototype.install=function(t,i){t.provide(i||Nt,this),t.config.globalProperties.$store=this;var e=this._devtools!==void 0?this._devtools:!1;e&&Ft(t,this)},j.state.get=function(){return this._state.data},j.state.set=function(t){},m.prototype.commit=function(t,i,e){var o=this,n=I(t,i,e),a=n.type,r=n.payload,s={type:a,payload:r},c=this._mutations[a];c&&(this._withCommit(function(){c.forEach(function(u){u(r)})}),this._subscribers.slice().forEach(function(u){return u(s,o.state)}))},m.prototype.dispatch=function(t,i){var e=this,o=I(t,i),n=o.type,a=o.payload,r={type:n,payload:a},s=this._actions[n];if(s){try{this._actionSubscribers.slice().filter(function(u){return u.before}).forEach(function(u){return u.before(r,e.state)})}catch{}var c=s.length>1?Promise.all(s.map(function(u){return u(a)})):s[0](a);return new Promise(function(u,l){c.then(function(p){try{e._actionSubscribers.filter(function(f){return f.after}).forEach(function(f){return f.after(r,e.state)})}catch{}u(p)},function(p){try{e._actionSubscribers.filter(function(f){return f.error}).forEach(function(f){return f.error(r,e.state,p)})}catch{}l(p)})})}},m.prototype.subscribe=function(t,i){return J(t,this._subscribers,i)},m.prototype.subscribeAction=function(t,i){var e=typeof t=="function"?{before:t}:t;return J(e,this._actionSubscribers,i)},m.prototype.watch=function(t,i,e){var o=this;return it(function(){return t(o.state,o.getters)},i,Object.assign({},e))},m.prototype.replaceState=function(t){var i=this;this._withCommit(function(){i._state.data=t})},m.prototype.registerModule=function(t,i,e){e===void 0&&(e={}),typeof t=="string"&&(t=[t]),this._modules.register(t,i),M(this,this.state,t,this._modules.get(t),e.preserveState),V(this,this.state)},m.prototype.unregisterModule=function(t){var i=this;typeof t=="string"&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var e=$(i.state,t.slice(0,-1));delete e[t[t.length-1]]}),W(this)},m.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),this._modules.isRegistered(t)},m.prototype.hotUpdate=function(t){this._modules.update(t),W(this,!0)},m.prototype._withCommit=function(t){var i=this._committing;this._committing=!0,t(),this._committing=i},Object.defineProperties(m.prototype,j);var qt=B(function(t,i){var e={};return H(i).forEach(function(o){var n=o.key,a=o.val;e[n]=function(){var r=this.$store.state,s=this.$store.getters;if(t){var c=K(this.$store,"mapState",t);if(!c)return;r=c.context.state,s=c.context.getters}return typeof a=="function"?a.call(this,r,s):r[a]},e[n].vuex=!0}),e}),Xt=B(function(t,i){var e={};return H(i).forEach(function(o){var n=o.key,a=o.val;a=t+a,e[n]=function(){if(!(t&&!K(this.$store,"mapGetters",t)))return this.$store.getters[a]},e[n].vuex=!0}),e}),te=B(function(t,i){var e={};return H(i).forEach(function(o){var n=o.key,a=o.val;e[n]=function(){for(var r=[],s=arguments.length;s--;)r[s]=arguments[s];var c=this.$store.dispatch;if(t){var u=K(this.$store,"mapActions",t);if(!u)return;c=u.context.dispatch}return typeof a=="function"?a.apply(this,[c].concat(r)):c.apply(this.$store,[a].concat(r))}}),e});function H(t){return ee(t)?Array.isArray(t)?t.map(function(i){return{key:i,val:i}}):Object.keys(t).map(function(i){return{key:i,val:t[i]}}):[]}function ee(t){return Array.isArray(t)||ct(t)}function B(t){return function(i,e){return typeof i!="string"?(e=i,i=""):i.charAt(i.length-1)!=="/"&&(i+="/"),t(i,e)}}function K(t,i,e){var o=t._modulesNamespaceMap[e];return o}const ie={name:"HelpCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},oe=["aria-hidden","aria-label"],ne=["fill","width","height"],ae={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"},re={key:0};function se(t,i,e,o,n,a){return d(),h("span",A(t.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon help-circle-icon",role:"img",onClick:i[0]||(i[0]=r=>t.$emit("click",r))}),[(d(),h("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[g("path",ae,[e.title?(d(),h("title",re,v(e.title),1)):k("",!0)])],8,ne))],16,oe)}const ce=et(ie,[["render",se]]);mt(gt);const le={class:"settings-section"},ue={class:"settings-section__name"},de=["aria-label","href","title"],he={key:0,class:"settings-section__desc"},pe=Ct({__name:"NcSettingsSection",props:{name:{},description:{default:""},docUrl:{default:""}},setup(t){const i=yt("External documentation");return(e,o)=>(d(),h("div",le,[g("h2",ue,[nt(v(e.name)+" ",1),e.docUrl?(d(),h("a",{key:0,"aria-label":U(i),class:"settings-section__info",href:e.docUrl,rel:"noreferrer nofollow",target:"_blank",title:U(i)},[at(ce,{size:20})],8,de)):k("",!0)]),e.description?(d(),h("p",he,v(e.description),1)):k("",!0),ot(e.$slots,"default",{},void 0,!0)]))}}),ri=et(pe,[["__scopeId","data-v-9cedb949"]]),fe={name:"CheckboxBlankIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},me=["aria-hidden","aria-label"],ge=["fill","width","height"],ye={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"},ve={key:0};function _e(t,i,e,o,n,a){return d(),h("span",A(t.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon checkbox-blank-icon",role:"img",onClick:i[0]||(i[0]=r=>t.$emit("click",r))}),[(d(),h("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[g("path",ye,[e.title?(d(),h("title",ve,v(e.title),1)):k("",!0)])],8,ge))],16,me)}const be=O(fe,[["render",_e]]),ke={name:"CheckboxBlankOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ee=["aria-hidden","aria-label"],Ce=["fill","width","height"],we={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"},Oe={key:0};function Te(t,i,e,o,n,a){return d(),h("span",A(t.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon checkbox-blank-outline-icon",role:"img",onClick:i[0]||(i[0]=r=>t.$emit("click",r))}),[(d(),h("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[g("path",we,[e.title?(d(),h("title",Oe,v(e.title),1)):k("",!0)])],8,Ce))],16,Ee)}const Ae=O(ke,[["render",Te]]),Se={name:"CheckboxMarkedIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},xe=["aria-hidden","aria-label"],Ie=["fill","width","height"],Me={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"},Ge={key:0};function je(t,i,e,o,n,a){return d(),h("span",A(t.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon checkbox-marked-icon",role:"img",onClick:i[0]||(i[0]=r=>t.$emit("click",r))}),[(d(),h("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[g("path",Me,[e.title?(d(),h("title",Ge,v(e.title),1)):k("",!0)])],8,Ie))],16,xe)}const Le=O(Se,[["render",je]]),Ne={name:"MinusBoxIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},De=["aria-hidden","aria-label"],Ve=["fill","width","height"],$e={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"},He={key:0};function Be(t,i,e,o,n,a){return d(),h("span",A(t.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon minus-box-icon",role:"img",onClick:i[0]||(i[0]=r=>t.$emit("click",r))}),[(d(),h("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[g("path",$e,[e.title?(d(),h("title",He,v(e.title),1)):k("",!0)])],8,Ve))],16,De)}const Ke=O(Ne,[["render",Be]]),ze={name:"CheckboxInput",props:{id:{type:String,required:!0,validator:t=>t.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}},emits:["update:checked"],computed:{size(){return 24},cssVars(){return{"--icon-size":this.size+"px"}},isChecked(){return[...this.checked].indexOf(this.value)>-1},checkboxRadioIconElement(){return this.indeterminate?Ke:this.disabled&&!this.isChecked?be:this.isChecked?Le:Ae}},methods:{onToggle(){if(this.disabled)return;if(typeof this.checked=="boolean"){this.$emit("update:checked",!this.isChecked);return}const t=this.getInputsSet().filter(i=>i.checked).map(i=>i.value);this.$emit("update:checked",t)},getInputsSet(){return[...document.getElementsByName(this.name)]}}},Pe=["id","checked","disabled","indeterminate","name","value"],Ue=["for"],Fe={class:"sr-only"};function Re(t,i,e,o,n,a){return d(),F(R(e.wrapperElement),{class:Ot([{"checkbox-radio-switch--checked":a.isChecked,"checkbox-radio-switch--disabled":e.disabled,"checkbox-radio-switch--indeterminate":e.indeterminate},"checkbox-radio-switch checkbox-radio-switch-checkbox"]),style:wt(a.cssVars)},{default:rt(()=>[g("input",{id:e.id,checked:a.isChecked,disabled:e.disabled,indeterminate:e.indeterminate,name:e.name,type:"checkbox",value:e.value,class:"checkbox-radio-switch__input",onChange:i[0]||(i[0]=(...r)=>a.onToggle&&a.onToggle(...r))},null,40,Pe),g("label",{for:e.id,class:"checkbox-radio-switch__label"},[(d(),F(R(a.checkboxRadioIconElement),{size:a.size,class:"checkbox-radio-switch__icon","aria-hidden":"true"},null,8,["size"])),g("span",Fe,[ot(t.$slots,"default",{},void 0,!0)])],8,Ue)]),_:3},8,["class","style"])}const Qe=O(ze,[["render",Re],["__scopeId","data-v-8c669300"]]);function z(t,i){return t.methods.includes(i)}function L(t,i){for(const e of t)if(z(e,i)&&!e[i])return!0;return!1}const Ye={name:"ActivityGrid",components:{CheckboxInput:Qe},computed:{...Xt(["checkedActivities"]),...qt(["methods","activityGroups"])},methods:{isActivityEnabled:z,...te(["toggleMethodForMethodAndActivity"]),actionName(t){return t==="email"?w("activity","Send email"):w("activity","Send push notification")},t:w}},Ze={class:"grid activitysettings"},Je={class:"sr-only"},We={class:"group-header"},qe={class:"group-header-section"},Xe={scope:"row"},ti=["innerHTML"];function ei(t,i,e,o,n,a){const r=Tt("CheckboxInput");return d(),h("table",Ze,[g("caption",Je,v(a.t("activity","Activity notification configuration")),1),(d(!0),h(S,null,x(t.activityGroups,(s,c)=>(d(),h("tbody",{key:c},[g("tr",We,[g("th",qe,v(s.name),1),(d(!0),h(S,null,x(t.methods,(u,l)=>(d(),h("th",{key:l,class:"activity_select_group"},v(u),1))),128))]),(d(!0),h(S,null,x(s.activities,(u,l)=>(d(),h("tr",{key:l},[g("th",Xe,[g("span",{innerHTML:u.desc},null,8,ti)]),(d(!0),h(S,null,x(t.methods,(p,f)=>(d(),h("td",{key:f},[at(r,{id:`${l}_${f}`,disabled:!a.isActivityEnabled(u,f),checked:t.checkedActivities,value:`${l}_${f}`,"onUpdate:checked":P=>t.toggleMethodForMethodAndActivity({groupKey:c,activityKey:l,methodKey:f})},{default:rt(()=>[nt(v(a.actionName(f)),1)]),_:2},1032,["id","disabled","checked","value","onUpdate:checked"])]))),128))]))),128))]))),128))])}const si=O(Ye,[["render",ei],["__scopeId","data-v-648e684b"]]),ci=new Wt({strict:!0,state:{setting:_("activity","setting"),activityGroups:_("activity","activity_groups"),isEmailSet:_("activity","is_email_set"),emailEnabled:_("activity","email_enabled"),activityDigestEnabled:_("activity","activity_digest_enabled",!1),settingBatchtime:_("activity","setting_batchtime"),methods:_("activity","methods"),endpoint:""},getters:{checkedActivities(t){const i=(e,o)=>{const n=[];return o.email&&n.push({activityKey:e,method:"email",activity:o}),o.notification&&n.push({activityKey:e,method:"notification",activity:o}),n};return Object.values(t.activityGroups).map(e=>Object.entries(e.activities)).reduce((e,o)=>e.concat(o),[]).map(([e,o])=>i(e,o)).reduce((e,o)=>e.concat(o),[]).filter(({activity:e,method:o})=>e[o]).map(({activityKey:e,method:o})=>`${e}_${o}`)}},mutations:{SET_METHOD_FOR_METHOD_AND_ACTIVITY(t,{groupKey:i,activityKey:e,methodKey:o,value:n}){const a=t.activityGroups[i].activities[e];z(a,o)&&(a[o]=n)},SET_ENDPOINT(t,{endpoint:i}){t.endpoint=i},SET_SETTING_BATCHTIME(t,{settingBatchtime:i}){t.settingBatchtime=i},TOGGLE_ACTIVITY_DIGEST(t,{activityDigestEnabled:i}){t.activityDigestEnabled=i},TOGGLE_EMAIL_ENABLED(t,{emailEnabled:i}){t.emailEnabled=i}},actions:{setEndpoint({commit:t},{endpoint:i}){t("SET_ENDPOINT",{endpoint:i})},toggleMethodForMethodAndActivity({commit:t,state:i,dispatch:e},{groupKey:o,activityKey:n,methodKey:a}){const r=i.activityGroups[o].activities[n],s=L([r],a);t("SET_METHOD_FOR_METHOD_AND_ACTIVITY",{groupKey:o,activityKey:n,methodKey:a,value:s}),e("saveSettings")},toggleMethodForGroup({commit:t,state:i,dispatch:e},{groupKey:o,methodKey:n}){const a=Object.values(i.activityGroups[o].activities),r=L(a,n);for(const s in i.activityGroups[o].activities)t("SET_METHOD_FOR_METHOD_AND_ACTIVITY",{groupKey:o,activityKey:s,methodKey:n,value:r});e("saveSettings")},toggleMethodsForActivity({commit:t,state:i,dispatch:e},{groupKey:o,activityKey:n}){const a=i.activityGroups[o].activities[n],r=a.methods.map(s=>L([a],s)).includes(!0);for(const s of a.methods)t("SET_METHOD_FOR_METHOD_AND_ACTIVITY",{groupKey:o,activityKey:n,methodKey:s,value:r});e("saveSettings")},setSettingBatchtime({commit:t,dispatch:i},{settingBatchtime:e}){t("SET_SETTING_BATCHTIME",{settingBatchtime:e}),i("saveSettings")},toggleActivityDigestEnabled({commit:t,dispatch:i},{activityDigestEnabled:e}){t("TOGGLE_ACTIVITY_DIGEST",{activityDigestEnabled:e}),i("saveSettings")},toggleEmailEnabled({commit:t},{emailEnabled:i}){t("TOGGLE_EMAIL_ENABLED",{emailEnabled:i});try{OCP.AppConfig.setValue("activity","enable_email",i?"yes":"no"),Q(w("activity","Your settings have been updated."))}catch(e){Y(w("activity","Unable to save the settings")),Z.error("An error occurred while saving the activity settings",{error:e})}},async saveSettings({state:t,getters:i}){try{const e=new FormData;i.checkedActivities.forEach(n=>{e.append(n,"1")}),e.append("notify_setting_batchtime",`${t.settingBatchtime}`),e.append("activity_digest",`${t.activityDigestEnabled?1:0}`);const o=await vt.post(_t(t.endpoint),e);Q(o.data.data.message)}catch(e){Y(w("activity","Unable to save the settings")),Z.error("An error occurred while saving the activity settings",{error:e})}}}});export{si as A,ri as N,qt as a,te as m,ci as s}; //# sourceMappingURL=settings-store-BDdaIZZw.chunk.mjs.map