Skip to content

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

16.5 KB
Raw Blame
"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([["8943"],{65977:function(e,t,i){i.d(t,{Z:()=>o});var r=i(58786);let o=(0,r.aZ)({name:"Add",render:()=>(0,r.h)("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))})},60309:function(e,t,i){i.d(t,{L:()=>r});function r(e,t){if(!e)return;let i=document.createElement("a");i.href=e,void 0!==t&&(i.download=t),document.body.appendChild(i),i.click(),document.body.removeChild(i)}},79537:function(e,t,i){i.d(t,{Z:()=>l});var r=i(58786),o=i(54470),n=i(27046),a=i(71309);let s=(0,a.cB)("input-group",`
 display: inline-flex;
 width: 100%;
 flex-wrap: nowrap;
 vertical-align: bottom;
`,[(0,a.c)(">",[(0,a.cB)("input",[(0,a.c)("&:not(:last-child)",`
 border-top-right-radius: 0!important;
 border-bottom-right-radius: 0!important;
 `),(0,a.c)("&:not(:first-child)",`
 border-top-left-radius: 0!important;
 border-bottom-left-radius: 0!important;
 margin-left: -1px!important;
 `)]),(0,a.cB)("button",[(0,a.c)("&:not(:last-child)",`
 border-top-right-radius: 0!important;
 border-bottom-right-radius: 0!important;
 `,[(0,a.cE)("state-border, border",`
 border-top-right-radius: 0!important;
 border-bottom-right-radius: 0!important;
 `)]),(0,a.c)("&:not(:first-child)",`
 border-top-left-radius: 0!important;
 border-bottom-left-radius: 0!important;
 `,[(0,a.cE)("state-border, border",`
 border-top-left-radius: 0!important;
 border-bottom-left-radius: 0!important;
 `)])]),(0,a.c)("*",[(0,a.c)("&:not(:last-child)",`
 border-top-right-radius: 0!important;
 border-bottom-right-radius: 0!important;
 `,[(0,a.c)(">",[(0,a.cB)("input",`
 border-top-right-radius: 0!important;
 border-bottom-right-radius: 0!important;
 `),(0,a.cB)("base-selection",[(0,a.cB)("base-selection-label",`
 border-top-right-radius: 0!important;
 border-bottom-right-radius: 0!important;
 `),(0,a.cB)("base-selection-tags",`
 border-top-right-radius: 0!important;
 border-bottom-right-radius: 0!important;
 `),(0,a.cE)("box-shadow, border, state-border",`
 border-top-right-radius: 0!important;
 border-bottom-right-radius: 0!important;
 `)])])]),(0,a.c)("&:not(:first-child)",`
 margin-left: -1px!important;
 border-top-left-radius: 0!important;
 border-bottom-left-radius: 0!important;
 `,[(0,a.c)(">",[(0,a.cB)("input",`
 border-top-left-radius: 0!important;
 border-bottom-left-radius: 0!important;
 `),(0,a.cB)("base-selection",[(0,a.cB)("base-selection-label",`
 border-top-left-radius: 0!important;
 border-bottom-left-radius: 0!important;
 `),(0,a.cB)("base-selection-tags",`
 border-top-left-radius: 0!important;
 border-bottom-left-radius: 0!important;
 `),(0,a.cE)("box-shadow, border, state-border",`
 border-top-left-radius: 0!important;
 border-bottom-left-radius: 0!important;
 `)])])])])])]),l=(0,r.aZ)({name:"InputGroup",props:{},setup(e){let{mergedClsPrefixRef:t}=(0,o.ZP)(e);return(0,n.Z)("-input-group",s,t),{mergedClsPrefix:t}},render(){let{mergedClsPrefix:e}=this;return(0,r.h)("div",{class:`${e}-input-group`},this.$slots)}})},60579:function(e,t,i){i.d(t,{Z:()=>f});var r=i(65083),o=i(23125),n=i(58786),a=i(62594),s=i(56946),l=i(54470),d=i(53198),c=i(71309),u=i(53573),h=i(66480);let p=(0,c.c)([(0,c.c)("@keyframes spin-rotate",`
 from {
 transform: rotate(0);
 }
 to {
 transform: rotate(360deg);
 }
 `),(0,c.cB)("spin-container",`
 position: relative;
 `,[(0,c.cB)("spin-body",`
 position: absolute;
 top: 50%;
 left: 50%;
 transform: translateX(-50%) translateY(-50%);
 `,[(0,h.h)()])]),(0,c.cB)("spin-body",`
 display: inline-flex;
 align-items: center;
 justify-content: center;
 flex-direction: column;
 `),(0,c.cB)("spin",`
 display: inline-flex;
 height: var(--n-size);
 width: var(--n-size);
 font-size: var(--n-size);
 color: var(--n-color);
 `,[(0,c.cM)("rotate",`
 animation: spin-rotate 2s linear infinite;
 `)]),(0,c.cB)("spin-description",`
 display: inline-block;
 font-size: var(--n-font-size);
 color: var(--n-text-color);
 transition: color .3s var(--n-bezier);
 margin-top: 8px;
 `),(0,c.cB)("spin-content",`
 opacity: 1;
 transition: opacity .3s var(--n-bezier);
 pointer-events: all;
 `,[(0,c.cM)("spinning",`
 user-select: none;
 -webkit-user-select: none;
 pointer-events: none;
 opacity: var(--n-opacity-spinning);
 `)])]),b={small:20,medium:18,large:16},v=Object.assign(Object.assign({},s.Z.props),{contentClass:String,contentStyle:[Object,String],description:String,stroke:String,size:{type:[String,Number],default:"medium"},show:{type:Boolean,default:!0},strokeWidth:Number,rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0},delay:Number}),f=(0,n.aZ)({name:"Spin",props:v,slots:Object,setup(e){let{mergedClsPrefixRef:t,inlineThemeDisabled:i}=(0,l.ZP)(e),a=(0,s.Z)("Spin","-spin",p,u.Z,e,t),h=(0,n.Fl)(()=>{let{size:t}=e,{common:{cubicBezierEaseInOut:i},self:o}=a.value,{opacitySpinning:n,color:s,textColor:l}=o;return{"--n-bezier":i,"--n-opacity-spinning":n,"--n-size":"number"==typeof t?(0,r.BL)(t):o[(0,c.Tl)("size",t)],"--n-color":s,"--n-text-color":l}}),v=i?(0,d.F)("spin",(0,n.Fl)(()=>{let{size:t}=e;return"number"==typeof t?String(t):t[0]}),h,e):void 0,f=(0,o.Z)(e,["spinning","show"]),m=(0,n.iH)(!1);return(0,n.m0)(t=>{let i;if(f.value){let{delay:r}=e;if(r){i=window.setTimeout(()=>{m.value=!0},r),t(()=>{clearTimeout(i)});return}}m.value=f.value}),{mergedClsPrefix:t,active:m,mergedStrokeWidth:(0,n.Fl)(()=>{let{strokeWidth:t}=e;if(void 0!==t)return t;let{size:i}=e;return b["number"==typeof i?"medium":i]}),cssVars:i?void 0:h,themeClass:null==v?void 0:v.themeClass,onRender:null==v?void 0:v.onRender}},render(){var e,t;let{$slots:i,mergedClsPrefix:r,description:o}=this,s=i.icon&&this.rotate,l=(o||i.description)&&(0,n.h)("div",{class:`${r}-spin-description`},o||(null==(e=i.description)?void 0:e.call(i))),d=i.icon?(0,n.h)("div",{class:[`${r}-spin-body`,this.themeClass]},(0,n.h)("div",{class:[`${r}-spin`,s&&`${r}-spin--rotate`],style:i.default?"":this.cssVars},i.icon()),l):(0,n.h)("div",{class:[`${r}-spin-body`,this.themeClass]},(0,n.h)(a.Z,{clsPrefix:r,style:i.default?"":this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,class:`${r}-spin`}),l);return null==(t=this.onRender)||t.call(this),i.default?(0,n.h)("div",{class:[`${r}-spin-container`,this.themeClass],style:this.cssVars},(0,n.h)("div",{class:[`${r}-spin-content`,this.active&&`${r}-spin-content--spinning`,this.contentClass],style:this.contentStyle},i),(0,n.h)(n.uT,{name:"fade-in-transition"},{default:()=>this.active?d:null})):d}})},29875:function(e,t,i){let r;i.d(t,{Z:()=>B});var o=i(65083),n=i(20013),a=i(58786),s=i(76128),l=i(62594),d=i(56946),c=i(54470),u=i(32196),h=i(53198),p=i(44267),b=i(71309),v=i(93950),f=i(19595),m=i(9798),g=i(30951);let w={name:"Switch",common:m.Z,self:function(e){let{primaryColor:t,opacityDisabled:i,borderRadius:r,textColor3:o}=e;return Object.assign(Object.assign({},g.Z),{iconColor:o,textColor:"white",loadingColor:t,opacityDisabled:i,railColor:"rgba(0, 0, 0, .14)",railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 0 2px ${(0,f.zX)(t,{alpha:.2})}`})}};var y=i(28632);let k=(0,b.cB)("switch",`
 height: var(--n-height);
 min-width: var(--n-width);
 vertical-align: middle;
 user-select: none;
 -webkit-user-select: none;
 display: inline-flex;
 outline: none;
 justify-content: center;
 align-items: center;
`,[(0,b.cE)("children-placeholder",`
 height: var(--n-rail-height);
 display: flex;
 flex-direction: column;
 overflow: hidden;
 pointer-events: none;
 visibility: hidden;
 `),(0,b.cE)("rail-placeholder",`
 display: flex;
 flex-wrap: none;
 `),(0,b.cE)("button-placeholder",`
 width: calc(1.75 * var(--n-rail-height));
 height: var(--n-rail-height);
 `),(0,b.cB)("base-loading",`
 position: absolute;
 top: 50%;
 left: 50%;
 transform: translateX(-50%) translateY(-50%);
 font-size: calc(var(--n-button-width) - 4px);
 color: var(--n-loading-color);
 transition: color .3s var(--n-bezier);
 `,[(0,y.c)({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),(0,b.cE)("checked, unchecked",`
 transition: color .3s var(--n-bezier);
 color: var(--n-text-color);
 box-sizing: border-box;
 position: absolute;
 white-space: nowrap;
 top: 0;
 bottom: 0;
 display: flex;
 align-items: center;
 line-height: 1;
 `),(0,b.cE)("checked",`
 right: 0;
 padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset));
 `),(0,b.cE)("unchecked",`
 left: 0;
 justify-content: flex-end;
 padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset));
 `),(0,b.c)("&:focus",[(0,b.cE)("rail",`
 box-shadow: var(--n-box-shadow-focus);
 `)]),(0,b.cM)("round",[(0,b.cE)("rail","border-radius: calc(var(--n-rail-height) / 2);",[(0,b.cE)("button","border-radius: calc(var(--n-button-height) / 2);")])]),(0,b.u4)("disabled",[(0,b.u4)("icon",[(0,b.cM)("rubber-band",[(0,b.cM)("pressed",[(0,b.cE)("rail",[(0,b.cE)("button","max-width: var(--n-button-width-pressed);")])]),(0,b.cE)("rail",[(0,b.c)("&:active",[(0,b.cE)("button","max-width: var(--n-button-width-pressed);")])]),(0,b.cM)("active",[(0,b.cM)("pressed",[(0,b.cE)("rail",[(0,b.cE)("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),(0,b.cE)("rail",[(0,b.c)("&:active",[(0,b.cE)("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),(0,b.cM)("active",[(0,b.cE)("rail",[(0,b.cE)("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),(0,b.cE)("rail",`
 overflow: hidden;
 height: var(--n-rail-height);
 min-width: var(--n-rail-width);
 border-radius: var(--n-rail-border-radius);
 cursor: pointer;
 position: relative;
 transition:
 opacity .3s var(--n-bezier),
 background .3s var(--n-bezier),
 box-shadow .3s var(--n-bezier);
 background-color: var(--n-rail-color);
 `,[(0,b.cE)("button-icon",`
 color: var(--n-icon-color);
 transition: color .3s var(--n-bezier);
 font-size: calc(var(--n-button-height) - 4px);
 position: absolute;
 left: 0;
 right: 0;
 top: 0;
 bottom: 0;
 display: flex;
 justify-content: center;
 align-items: center;
 line-height: 1;
 `,[(0,y.c)()]),(0,b.cE)("button",`
 align-items: center; 
 top: var(--n-offset);
 left: var(--n-offset);
 height: var(--n-button-height);
 width: var(--n-button-width-pressed);
 max-width: var(--n-button-width);
 border-radius: var(--n-button-border-radius);
 background-color: var(--n-button-color);
 box-shadow: var(--n-button-box-shadow);
 box-sizing: border-box;
 cursor: inherit;
 content: "";
 position: absolute;
 transition:
 background-color .3s var(--n-bezier),
 left .3s var(--n-bezier),
 opacity .3s var(--n-bezier),
 max-width .3s var(--n-bezier),
 box-shadow .3s var(--n-bezier);
 `)]),(0,b.cM)("active",[(0,b.cE)("rail","background-color: var(--n-rail-color-active);")]),(0,b.cM)("loading",[(0,b.cE)("rail",`
 cursor: wait;
 `)]),(0,b.cM)("disabled",[(0,b.cE)("rail",`
 cursor: not-allowed;
 opacity: .5;
 `)])]),x=Object.assign(Object.assign({},d.Z.props),{size:{type:String,default:"medium"},value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},onChange:[Function,Array]}),B=(0,a.aZ)({name:"Switch",props:x,slots:Object,setup(e){void 0===r&&(r="undefined"==typeof CSS||void 0!==CSS.supports&&CSS.supports("width","max(1px)"));let{mergedClsPrefixRef:t,inlineThemeDisabled:i}=(0,c.ZP)(e),s=(0,d.Z)("Switch","-switch",k,w,e,t),l=(0,u.Z)(e),{mergedSizeRef:v,mergedDisabledRef:f}=l,m=(0,a.iH)(e.defaultValue),g=(0,a.Vh)(e,"value"),y=(0,n.Z)(g,m),x=(0,a.Fl)(()=>y.value===e.checkedValue),B=(0,a.iH)(!1),$=(0,a.iH)(!1),S=(0,a.Fl)(()=>{let{railStyle:t}=e;if(t)return t({focused:$.value,checked:x.value})});function C(t){let{"onUpdate:value":i,onChange:r,onUpdateValue:o}=e,{nTriggerFormInput:n,nTriggerFormChange:a}=l;i&&(0,p.R)(i,t),o&&(0,p.R)(o,t),r&&(0,p.R)(r,t),m.value=t,n(),a()}let Z=(0,a.Fl)(()=>{let e,t,i,{value:n}=v,{self:{opacityDisabled:a,railColor:l,railColorActive:d,buttonBoxShadow:c,buttonColor:u,boxShadowFocus:h,loadingColor:p,textColor:f,iconColor:m,[(0,b.Tl)("buttonHeight",n)]:g,[(0,b.Tl)("buttonWidth",n)]:w,[(0,b.Tl)("buttonWidthPressed",n)]:y,[(0,b.Tl)("railHeight",n)]:k,[(0,b.Tl)("railWidth",n)]:x,[(0,b.Tl)("railBorderRadius",n)]:B,[(0,b.Tl)("buttonBorderRadius",n)]:$},common:{cubicBezierEaseInOut:S}}=s.value;return r?(e=`calc((${k} - ${g}) / 2)`,t=`max(${k}, ${g})`,i=`max(${x}, calc(${x} + ${g} - ${k}))`):(e=(0,o.BL)(((0,o.fQ)(k)-(0,o.fQ)(g))/2),t=(0,o.BL)(Math.max((0,o.fQ)(k),(0,o.fQ)(g))),i=(0,o.fQ)(k)>(0,o.fQ)(g)?x:(0,o.BL)((0,o.fQ)(x)+(0,o.fQ)(g)-(0,o.fQ)(k))),{"--n-bezier":S,"--n-button-border-radius":$,"--n-button-box-shadow":c,"--n-button-color":u,"--n-button-width":w,"--n-button-width-pressed":y,"--n-button-height":g,"--n-height":t,"--n-offset":e,"--n-opacity-disabled":a,"--n-rail-border-radius":B,"--n-rail-color":l,"--n-rail-color-active":d,"--n-rail-height":k,"--n-rail-width":x,"--n-width":i,"--n-box-shadow-focus":h,"--n-loading-color":p,"--n-text-color":f,"--n-icon-color":m}}),z=i?(0,h.F)("switch",(0,a.Fl)(()=>v.value[0]),Z,e):void 0;return{handleClick:function(){e.loading||f.value||(y.value!==e.checkedValue?C(e.checkedValue):C(e.uncheckedValue))},handleBlur:function(){$.value=!1;let{nTriggerFormBlur:e}=l;e(),B.value=!1},handleFocus:function(){$.value=!0;let{nTriggerFormFocus:e}=l;e()},handleKeyup:function(t){e.loading||f.value||" "===t.key&&(y.value!==e.checkedValue?C(e.checkedValue):C(e.uncheckedValue),B.value=!1)},handleKeydown:function(t){e.loading||f.value||" "===t.key&&(t.preventDefault(),B.value=!0)},mergedRailStyle:S,pressed:B,mergedClsPrefix:t,mergedValue:y,checked:x,mergedDisabled:f,cssVars:i?void 0:Z,themeClass:null==z?void 0:z.themeClass,onRender:null==z?void 0:z.onRender}},render(){let{mergedClsPrefix:e,mergedDisabled:t,checked:i,mergedRailStyle:r,onRender:o,$slots:n}=this;null==o||o();let{checked:d,unchecked:c,icon:u,"checked-icon":h,"unchecked-icon":p}=n,b=!((0,v.aD)(u)&&(0,v.aD)(h)&&(0,v.aD)(p));return(0,a.h)("div",{role:"switch","aria-checked":i,class:[`${e}-switch`,this.themeClass,b&&`${e}-switch--icon`,i&&`${e}-switch--active`,t&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},(0,a.h)("div",{class:`${e}-switch__rail`,"aria-hidden":"true",style:r},(0,v.K9)(d,t=>(0,v.K9)(c,i=>t||i?(0,a.h)("div",{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},(0,a.h)("div",{class:`${e}-switch__rail-placeholder`},(0,a.h)("div",{class:`${e}-switch__button-placeholder`}),t),(0,a.h)("div",{class:`${e}-switch__rail-placeholder`},(0,a.h)("div",{class:`${e}-switch__button-placeholder`}),i)):null)),(0,a.h)("div",{class:`${e}-switch__button`},(0,v.K9)(u,t=>(0,v.K9)(h,i=>(0,v.K9)(p,r=>(0,a.h)(s.Z,null,{default:()=>this.loading?(0,a.h)(l.Z,{key:"loading",clsPrefix:e,strokeWidth:20}):this.checked&&(i||t)?(0,a.h)("div",{class:`${e}-switch__button-icon`,key:i?"checked-icon":"icon"},i||t):!this.checked&&(r||t)?(0,a.h)("div",{class:`${e}-switch__button-icon`,key:r?"unchecked-icon":"icon"},r||t):null})))),(0,v.K9)(d,t=>t&&(0,a.h)("div",{key:"checked",class:`${e}-switch__checked`},t)),(0,v.K9)(c,t=>t&&(0,a.h)("div",{key:"unchecked",class:`${e}-switch__unchecked`},t)))))}})},50144:function(e,t,i){i.d(t,{Z:()=>d});var r=i(58786),o=i(56946),n=i(54470),a=i(49942),s=i(44108);let l=Object.assign(Object.assign({},a.Kd),o.Z.props),d=(0,r.aZ)({name:"Tooltip",props:l,slots:Object,__popover__:!0,setup(e){let{mergedClsPrefixRef:t}=(0,n.ZP)(e),i=(0,o.Z)("Tooltip","-tooltip",void 0,s.Z,e,t),a=(0,r.iH)(null);return Object.assign(Object.assign({},{syncPosition(){a.value.syncPosition()},setShow(e){a.value.setShow(e)}}),{popoverRef:a,mergedTheme:i,popoverThemeOverrides:(0,r.Fl)(()=>i.value.self)})},render(){let{mergedTheme:e,internalExtraClass:t}=this;return(0,r.h)(a.ZP,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat("tooltip"),ref:"popoverRef"}),this.$slots)}})}}]);