BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr
"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([["69"],{85259:function(e,t,r){r.d(t,{B:()=>n});function n(e,t){let{target:r}=e;for(;r;){if(r.dataset&&void 0!==r.dataset[t])return!0;r=r.parentElement}return!1}},20772:function(e,t,r){r.d(t,{J:()=>c});var n=r(48987);class l extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function i(e,t){let r,{checkedKeys:l,keysToCheck:i,keysToUncheck:o,indeterminateKeys:a,cascade:s,leafOnly:d,checkStrategy:f,allowNotLoaded:c}=e;if(!s)if(void 0!==i)return{checkedKeys:(0,n.TS)(l,i),indeterminateKeys:Array.from(a)};else if(void 0!==o)return{checkedKeys:(0,n.h9)(l,o),indeterminateKeys:Array.from(a)};else return{checkedKeys:Array.from(l),indeterminateKeys:Array.from(a)};let{levelTreeNodeMap:h}=t;if(void 0!==o)r=function(e,t,r,n){let l=u(t,r,n,!1),i=u(e,r,n,!0),o=function(e,t){let r=new Set;return e.forEach(e=>{let n=t.treeNodeMap.get(e);if(void 0!==n){let e=n.parent;for(;null!==e&&!e.disabled&&!r.has(e.key);){;r.add(e.key),e=e.parent}}}),r}(e,r),a=[];return l.forEach(e=>{(i.has(e)||o.has(e))&&a.push(e)}),a.forEach(e=>l.delete(e)),l}(o,l,t,c);else if(void 0!==i)r=u(l.concat(i),t,c,!1);else r=u(l,t,c,!1);let y="parent"===f,g="child"===f||d,p=r,v=new Set,k=Math.max.apply(null,Array.from(h.keys()));for(let e=k;e>=0;e-=1){let t=0===e;for(let r of h.get(e)){if(r.isLeaf)continue;let{key:e,shallowLoaded:n}=r;if(g&&n&&r.children.forEach(e=>{!e.disabled&&!e.isLeaf&&e.shallowLoaded&&p.has(e.key)&&p.delete(e.key)}),r.disabled||!n)continue;let l=!0,i=!1,u=!0;for(let e of r.children){let t=e.key;if(!e.disabled){if(u&&(u=!1),p.has(t))i=!0;else if(v.has(t)){i=!0,l=!1;break}else if(l=!1,i)break}}l&&!u?(y&&r.children.forEach(e=>{!e.disabled&&p.has(e.key)&&p.delete(e.key)}),p.add(e)):i&&v.add(e),t&&g&&p.has(e)&&p.delete(e)}}return{checkedKeys:Array.from(p),indeterminateKeys:Array.from(v)}}function u(e,t,r,i){let{treeNodeMap:u,getChildren:o}=t,a=new Set,s=new Set(e);return e.forEach(e=>{let t=u.get(e);void 0!==t&&(0,n.Q8)(t,e=>{if(e.disabled)return n.Lf.STOP;let{key:t}=e;if(!a.has(t)&&(a.add(t),s.add(t),(0,n.jE)(e.rawNode,o))){if(i)return n.Lf.STOP;else if(!r)throw new l}})}),s}function o(e,t){let r=e.siblings,n=r.length,{index:l}=e;return t?r[(l+1)%n]:l===r.length-1?null:r[l+1]}function a(e,t,{loop:r=!1,includeDisabled:n=!1}={}){let l="prev"===t?s:o,i={reverse:"prev"===t},u=!1,f=null;return!function t(o){if(null!==o){if(o===e)if(u){if(!e.disabled&&!e.isGroup){f=e;return}}else u=!0;else if((!o.disabled||n)&&!o.ignored&&!o.isGroup){f=o;return}if(o.isGroup){let e=d(o,i);null!==e?f=e:t(l(o,r))}else{let e=l(o,!1);if(null!==e)t(e);else{let e=o.parent;(null==e?void 0:e.isGroup)?t(l(e,r)):r&&t(l(o,!0))}}}}(e),f}function s(e,t){let r=e.siblings,n=r.length,{index:l}=e;return t?r[(l-1+n)%n]:0===l?null:r[l-1]}function d(e,t={}){let{reverse:r=!1}=t,{children:n}=e;if(n){let{length:e}=n,l=r?e-1:0,i=r?-1:e,u=r?-1:1;for(let e=l;e!==i;e+=u){let r=n[e];if(!r.disabled&&!r.ignored)if(!r.isGroup)return r;else{let e=d(r,t);if(null!==e)return e}}}return null}let f={getChild(){return this.ignored?null:d(this)},getParent(){let{parent:e}=this;return(null==e?void 0:e.isGroup)?e.getParent():e},getNext(e={}){return a(this,"next",e)},getPrev(e={}){return a(this,"prev",e)}};function c(e,t={}){var r;let l=new Map,u=new Map,{getDisabled:o=n.pK,getIgnored:a=n.WU,getIsGroup:s=n.ty,getKey:d=n.MH}=t,h=null!=(r=t.getChildren)?r:n.JV,y=t.ignoreEmptyChildren?e=>{let t=h(e);return Array.isArray(t)&&!t.length?null:t}:h,g=function e(t,r,n,l,i,u=null,o=0){let a=[];return t.forEach((s,d)=>{var f;let c=Object.create(l);if(c.rawNode=s,c.siblings=a,c.level=o,c.index=d,c.isFirstChild=0===d,c.isLastChild=d+1===t.length,c.parent=u,!c.ignored){let t=i(s);Array.isArray(t)&&(c.children=e(t,r,n,l,i,c,o+1))}a.push(c),r.set(c.key,c),n.has(o)||n.set(o,[]),null==(f=n.get(o))||f.push(c)}),a}(e,l,u,Object.assign({get key(){return d(this.rawNode)},get disabled(){return o(this.rawNode)},get isGroup(){return s(this.rawNode)},get isLeaf(){return(0,n.Be)(this.rawNode,y)},get shallowLoaded(){return(0,n.f8)(this.rawNode,y)},get ignored(){return a(this.rawNode)},contains(e){var t=e;let r=this.key;for(;t;){if(t.key===r)return!0;t=t.parent}return!1}},f),y);function p(e){if(null==e)return null;let t=l.get(e);return t&&!t.ignored?t:null}let v={treeNodes:g,treeNodeMap:l,levelTreeNodeMap:u,maxLevel:Math.max(...u.keys()),getChildren:y,getFlattenedNodes:e=>(function(e,t){let r=t?new Set(t):void 0,n=[];return!function e(t){t.forEach(t=>{n.push(t),!t.isLeaf&&t.children&&!t.ignored&&(t.isGroup?e(t.children):(void 0===r||r.has(t.key))&&e(t.children))})}(e),n})(g,e),getNode:function(e){if(null==e)return null;let t=l.get(e);return!t||t.isGroup||t.ignored?null:t},getPrev:function(e,t){let r=p(e);return r?r.getPrev(t):null},getNext:function(e,t){let r=p(e);return r?r.getNext(t):null},getParent:function(e){let t=p(e);return t?t.getParent():null},getChild:function(e){let t=p(e);return t?t.getChild():null},getFirstAvailableNode:()=>(function(e){if(0===e.length)return null;let t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t})(g),getPath:(e,t={})=>(function(e,{includeGroup:t=!1,includeSelf:r=!0},n){var l;let i=n.treeNodeMap,u=null==e?null:null!=(l=i.get(e))?l:null,o={keyPath:[],treeNodePath:[],treeNode:u};if(null==u?void 0:u.ignored)return o.treeNode=null,o;for(;u;)u.ignored||!t&&u.isGroup||o.treeNodePath.push(u),u=u.parent;return o.treeNodePath.reverse(),r||o.treeNodePath.pop(),o.keyPath=o.treeNodePath.map(e=>e.key),o})(e,t,v),getCheckedKeys(e,t={}){let{cascade:r=!0,leafOnly:l=!1,checkStrategy:u="all",allowNotLoaded:o=!1}=t;return i({checkedKeys:(0,n.qr)(e),indeterminateKeys:(0,n.oP)(e),cascade:r,leafOnly:l,checkStrategy:u,allowNotLoaded:o},v)},check(e,t,r={}){let{cascade:l=!0,leafOnly:u=!1,checkStrategy:o="all",allowNotLoaded:a=!1}=r;return i({checkedKeys:(0,n.qr)(t),indeterminateKeys:(0,n.oP)(t),keysToCheck:null==e?[]:(0,n.qo)(e),cascade:l,leafOnly:u,checkStrategy:o,allowNotLoaded:a},v)},uncheck(e,t,r={}){let{cascade:l=!0,leafOnly:u=!1,checkStrategy:o="all",allowNotLoaded:a=!1}=r;return i({checkedKeys:(0,n.qr)(t),indeterminateKeys:(0,n.oP)(t),keysToUncheck:null==e?[]:(0,n.qo)(e),cascade:l,leafOnly:u,checkStrategy:o,allowNotLoaded:a},v)},getNonLeafKeys:(e={})=>(0,n.Mu)(g,e)};return v}},48987:function(e,t,r){function n(e){return Array.isArray(e)?e:[e]}r.d(t,{Be:()=>u,JV:()=>o,Lf:()=>l,MH:()=>a,Mu:()=>i,Q8:()=>function e(t,r){let n=r(t);void 0!==t.children&&n!==l.STOP&&t.children.forEach(t=>e(t,r))},TS:()=>g,WU:()=>s,f8:()=>d,h9:()=>p,jE:()=>c,oP:()=>y,pK:()=>f,qo:()=>n,qr:()=>h,rD:()=>k,ty:()=>v});let l={STOP:"STOP"};function i(e,t={}){let{preserveGroup:r=!1}=t,n=[],l=r?e=>{e.isLeaf||(n.push(e.key),u(e.children))}:e=>{e.isLeaf||(e.isGroup||n.push(e.key),u(e.children))};function u(e){e.forEach(l)}return u(e),n}function u(e,t){let{isLeaf:r}=e;return void 0!==r?r:!t(e)}function o(e){return e.children}function a(e){return e.key}function s(){return!1}function d(e,t){let{isLeaf:r}=e;return!1!==r||!!Array.isArray(t(e))}function f(e){return!0===e.disabled}function c(e,t){return!1===e.isLeaf&&!Array.isArray(t(e))}function h(e){var t;return null==e?[]:Array.isArray(e)?e:null!=(t=e.checkedKeys)?t:[]}function y(e){var t;return null==e||Array.isArray(e)?[]:null!=(t=e.indeterminateKeys)?t:[]}function g(e,t){let r=new Set(e);return t.forEach(e=>{r.has(e)||r.add(e)}),Array.from(r)}function p(e,t){let r=new Set(e);return t.forEach(e=>{r.has(e)&&r.delete(e)}),Array.from(r)}function v(e){return(null==e?void 0:e.type)==="group"}function k(e){let t=new Map;return e.forEach((e,r)=>{t.set(e.key,r)}),e=>{var r;return null!=(r=t.get(e))?r:null}}},72825:function(e,t,r){r.d(t,{Z:()=>a});var n=r(58786),l=r(64148),i=r(77427);let u="v-hidden",o=(0,i.c)("[v-hidden]",{display:"none!important"}),a=(0,n.aZ)({name:"Overflow",props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:t}){let r=(0,n.iH)(null),a=(0,n.iH)(null);function s(n){let l,{value:i}=r,{getCounter:o,getTail:s}=e;if(l=void 0!==o?o():a.value,!i||!l)return;l.hasAttribute(u)&&l.removeAttribute(u);let{children:d}=i;if(n.showAllItemsBeforeCalculate)for(let e of d)e.hasAttribute(u)&&e.removeAttribute(u);let f=i.offsetWidth,c=[],h=t.tail?null==s?void 0:s():null,y=h?h.offsetWidth:0,g=!1,p=i.children.length-!!t.tail;for(let t=0;t<p-1;++t){if(t<0)continue;let r=d[t];if(g){r.hasAttribute(u)||r.setAttribute(u,"");continue}r.hasAttribute(u)&&r.removeAttribute(u);let n=r.offsetWidth;if(y+=n,c[t]=n,y>f){let{updateCounter:r}=e;for(let n=t;n>=0;--n){let i=p-1-n;void 0!==r?r(i):l.textContent=`${i}`;let u=l.offsetWidth;if((y-=c[n])+u<=f||0===n){g=!0,t=n-1,h&&(-1===t?(h.style.maxWidth=`${f-u}px`,h.style.boxSizing="border-box"):h.style.maxWidth="");let{onUpdateCount:r}=e;r&&r(i);break}}}}let{onUpdateOverflow:v}=e;g?void 0!==v&&v(!0):(void 0!==v&&v(!1),l.setAttribute(u,""))}let d=(0,l.O)();return o.mount({id:"vueuc/overflow",head:!0,anchorMetaName:i.A,ssr:d}),(0,n.bv)(()=>s({showAllItemsBeforeCalculate:!1})),{selfRef:r,counterRef:a,sync:s}},render(){let{$slots:e}=this;return(0,n.Y3)(()=>this.sync({showAllItemsBeforeCalculate:!1})),(0,n.h)("div",{class:"v-overflow",ref:"selfRef"},[(0,n.WI)(e,"default"),e.counter?e.counter():(0,n.h)("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}})}}]);