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([["2017"],{76561:function(e,r,t){t.d(r,{Z:()=>k});var i=t(58786),o=t(56946),l=t(54470),s=t(53198),n=t(71309),a=t(52496),c=t(96823),p=t(87075),d=t(62198),g=t(64812),h=t(52317);let u={success:(0,i.h)(p.Z,null),error:(0,i.h)(d.Z,null),warning:(0,i.h)(g.Z,null),info:(0,i.h)(h.Z,null)},f=(0,i.aZ)({name:"ProgressCircle",props:{clsPrefix:{type:String,required:!0},status:{type:String,required:!0},strokeWidth:{type:Number,required:!0},fillColor:[String,Object],railColor:String,railStyle:[String,Object],percentage:{type:Number,default:0},offsetDegree:{type:Number,default:0},showIndicator:{type:Boolean,required:!0},indicatorTextColor:String,unit:String,viewBoxWidth:{type:Number,required:!0},gapDegree:{type:Number,required:!0},gapOffsetDegree:{type:Number,default:0}},setup(e,{slots:r}){function t(r,t,i,o){let{gapDegree:l,viewBoxWidth:s,strokeWidth:n}=e,a=50+n/2,c=2*Math.PI*50;return{pathString:`M ${a},${a} m 0,50
a 50,50 0 1 1 0,${-100}
a 50,50 0 1 1 0,100`,pathStyle:{stroke:"rail"===o?i:"object"==typeof e.fillColor?"url(#gradient)":i,strokeDasharray:`${r/100*(c-l)}px ${8*s}px`,strokeDashoffset:`-${l/2}px`,transformOrigin:t?"center":void 0,transform:t?`rotate(${t}deg)`:void 0}}}let o=()=>{let r="object"==typeof e.fillColor,t=r?e.fillColor.stops[0]:"",o=r?e.fillColor.stops[1]:"";return r&&(0,i.h)("defs",null,(0,i.h)("linearGradient",{id:"gradient",x1:"0%",y1:"100%",x2:"100%",y2:"0%"},(0,i.h)("stop",{offset:"0%","stop-color":t}),(0,i.h)("stop",{offset:"100%","stop-color":o})))};return()=>{let{fillColor:l,railColor:s,strokeWidth:n,offsetDegree:a,status:p,percentage:d,showIndicator:g,indicatorTextColor:h,unit:f,gapOffsetDegree:v,clsPrefix:y}=e,{pathString:b,pathStyle:m}=t(100,0,s,"rail"),{pathString:x,pathStyle:$}=t(d,a,l,"fill"),B=100+n;return(0,i.h)("div",{class:`${y}-progress-content`,role:"none"},(0,i.h)("div",{class:`${y}-progress-graph`,"aria-hidden":!0},(0,i.h)("div",{class:`${y}-progress-graph-circle`,style:{transform:v?`rotate(${v}deg)`:void 0}},(0,i.h)("svg",{viewBox:`0 0 ${B} ${B}`},o(),(0,i.h)("g",null,(0,i.h)("path",{class:`${y}-progress-graph-circle-rail`,d:b,"stroke-width":n,"stroke-linecap":"round",fill:"none",style:m})),(0,i.h)("g",null,(0,i.h)("path",{class:[`${y}-progress-graph-circle-fill`,0===d&&`${y}-progress-graph-circle-fill--empty`],d:x,"stroke-width":n,"stroke-linecap":"round",fill:"none",style:$}))))),g?(0,i.h)("div",null,r.default?(0,i.h)("div",{class:`${y}-progress-custom-content`,role:"none"},r.default()):"default"!==p?(0,i.h)("div",{class:`${y}-progress-icon`,"aria-hidden":!0},(0,i.h)(c.Z,{clsPrefix:y},{default:()=>u[p]})):(0,i.h)("div",{class:`${y}-progress-text`,style:{color:h},role:"none"},(0,i.h)("span",{class:`${y}-progress-text__percentage`},d),(0,i.h)("span",{class:`${y}-progress-text__unit`},f))):null)}}});var v=t(89620);let y={success:(0,i.h)(p.Z,null),error:(0,i.h)(d.Z,null),warning:(0,i.h)(g.Z,null),info:(0,i.h)(h.Z,null)},b=(0,i.aZ)({name:"ProgressLine",props:{clsPrefix:{type:String,required:!0},percentage:{type:Number,default:0},railColor:String,railStyle:[String,Object],fillColor:[String,Object],status:{type:String,required:!0},indicatorPlacement:{type:String,required:!0},indicatorTextColor:String,unit:{type:String,default:"%"},processing:{type:Boolean,required:!0},showIndicator:{type:Boolean,required:!0},height:[String,Number],railBorderRadius:[String,Number],fillBorderRadius:[String,Number]},setup(e,{slots:r}){let t=(0,i.Fl)(()=>(0,v.N)(e.height)),o=(0,i.Fl)(()=>{var r,t;return"object"==typeof e.fillColor?`linear-gradient(to right, ${null==(r=e.fillColor)?void 0:r.stops[0]} , ${null==(t=e.fillColor)?void 0:t.stops[1]})`:e.fillColor}),l=(0,i.Fl)(()=>void 0!==e.railBorderRadius?(0,v.N)(e.railBorderRadius):void 0!==e.height?(0,v.N)(e.height,{c:.5}):""),s=(0,i.Fl)(()=>void 0!==e.fillBorderRadius?(0,v.N)(e.fillBorderRadius):void 0!==e.railBorderRadius?(0,v.N)(e.railBorderRadius):void 0!==e.height?(0,v.N)(e.height,{c:.5}):"");return()=>{let{indicatorPlacement:n,railColor:a,railStyle:p,percentage:d,unit:g,indicatorTextColor:h,status:u,showIndicator:f,processing:v,clsPrefix:b}=e;return(0,i.h)("div",{class:`${b}-progress-content`,role:"none"},(0,i.h)("div",{class:`${b}-progress-graph`,"aria-hidden":!0},(0,i.h)("div",{class:[`${b}-progress-graph-line`,{[`${b}-progress-graph-line--indicator-${n}`]:!0}]},(0,i.h)("div",{class:`${b}-progress-graph-line-rail`,style:[{backgroundColor:a,height:t.value,borderRadius:l.value},p]},(0,i.h)("div",{class:[`${b}-progress-graph-line-fill`,v&&`${b}-progress-graph-line-fill--processing`],style:{maxWidth:`${e.percentage}%`,background:o.value,height:t.value,lineHeight:t.value,borderRadius:s.value}},"inside"===n?(0,i.h)("div",{class:`${b}-progress-graph-line-indicator`,style:{color:h}},r.default?r.default():`${d}${g}`):null)))),f&&"outside"===n?(0,i.h)("div",null,r.default?(0,i.h)("div",{class:`${b}-progress-custom-content`,style:{color:h},role:"none"},r.default()):"default"===u?(0,i.h)("div",{role:"none",class:`${b}-progress-icon ${b}-progress-icon--as-text`,style:{color:h}},d,g):(0,i.h)("div",{class:`${b}-progress-icon`,"aria-hidden":!0},(0,i.h)(c.Z,{clsPrefix:b},{default:()=>y[u]}))):null)}}});function m(e,r,t=100){return`m ${t/2} ${t/2-e} a ${e} ${e} 0 1 1 0 ${2*e} a ${e} ${e} 0 1 1 0 -${2*e}`}let x=(0,i.aZ)({name:"ProgressMultipleCircle",props:{clsPrefix:{type:String,required:!0},viewBoxWidth:{type:Number,required:!0},percentage:{type:Array,default:[0]},strokeWidth:{type:Number,required:!0},circleGap:{type:Number,required:!0},showIndicator:{type:Boolean,required:!0},fillColor:{type:Array,default:()=>[]},railColor:{type:Array,default:()=>[]},railStyle:{type:Array,default:()=>[]}},setup(e,{slots:r}){let t=(0,i.Fl)(()=>e.percentage.map((r,t)=>`${Math.PI*r/100*(e.viewBoxWidth/2-e.strokeWidth/2*(1+2*t)-e.circleGap*t)*2}, ${8*e.viewBoxWidth}`)),o=(r,t)=>{let o=e.fillColor[t],l="object"==typeof o?o.stops[0]:"",s="object"==typeof o?o.stops[1]:"";return"object"==typeof e.fillColor[t]&&(0,i.h)("linearGradient",{id:`gradient-${t}`,x1:"100%",y1:"0%",x2:"0%",y2:"100%"},(0,i.h)("stop",{offset:"0%","stop-color":l}),(0,i.h)("stop",{offset:"100%","stop-color":s}))};return()=>{let{viewBoxWidth:l,strokeWidth:s,circleGap:n,showIndicator:a,fillColor:c,railColor:p,railStyle:d,percentage:g,clsPrefix:h}=e;return(0,i.h)("div",{class:`${h}-progress-content`,role:"none"},(0,i.h)("div",{class:`${h}-progress-graph`,"aria-hidden":!0},(0,i.h)("div",{class:`${h}-progress-graph-circle`},(0,i.h)("svg",{viewBox:`0 0 ${l} ${l}`},(0,i.h)("defs",null,g.map((e,r)=>o(e,r))),g.map((e,r)=>(0,i.h)("g",{key:r},(0,i.h)("path",{class:`${h}-progress-graph-circle-rail`,d:m(l/2-s/2*(1+2*r)-n*r,s,l),"stroke-width":s,"stroke-linecap":"round",fill:"none",style:[{strokeDashoffset:0,stroke:p[r]},d[r]]}),(0,i.h)("path",{class:[`${h}-progress-graph-circle-fill`,0===e&&`${h}-progress-graph-circle-fill--empty`],d:m(l/2-s/2*(1+2*r)-n*r,s,l),"stroke-width":s,"stroke-linecap":"round",fill:"none",style:{strokeDasharray:t.value[r],strokeDashoffset:0,stroke:"object"==typeof c[r]?`url(#gradient-${r})`:c[r]}})))))),a&&r.default?(0,i.h)("div",null,(0,i.h)("div",{class:`${h}-progress-text`},r.default())):null)}}}),$=(0,n.c)([(0,n.cB)("progress",{display:"inline-block"},[(0,n.cB)("progress-icon",`
color: var(--n-icon-color);
transition: color .3s var(--n-bezier);
`),(0,n.cM)("line",`
width: 100%;
display: block;
`,[(0,n.cB)("progress-content",`
display: flex;
align-items: center;
`,[(0,n.cB)("progress-graph",{flex:1})]),(0,n.cB)("progress-custom-content",{marginLeft:"14px"}),(0,n.cB)("progress-icon",`
width: 30px;
padding-left: 14px;
height: var(--n-icon-size-line);
line-height: var(--n-icon-size-line);
font-size: var(--n-icon-size-line);
`,[(0,n.cM)("as-text",`
color: var(--n-text-color-line-outer);
text-align: center;
width: 40px;
font-size: var(--n-font-size);
padding-left: 4px;
transition: color .3s var(--n-bezier);
`)])]),(0,n.cM)("circle, dashboard",{width:"120px"},[(0,n.cB)("progress-custom-content",`
position: absolute;
left: 50%;
top: 50%;
transform: translateX(-50%) translateY(-50%);
display: flex;
align-items: center;
justify-content: center;
`),(0,n.cB)("progress-text",`
position: absolute;
left: 50%;
top: 50%;
transform: translateX(-50%) translateY(-50%);
display: flex;
align-items: center;
color: inherit;
font-size: var(--n-font-size-circle);
color: var(--n-text-color-circle);
font-weight: var(--n-font-weight-circle);
transition: color .3s var(--n-bezier);
white-space: nowrap;
`),(0,n.cB)("progress-icon",`
position: absolute;
left: 50%;
top: 50%;
transform: translateX(-50%) translateY(-50%);
display: flex;
align-items: center;
color: var(--n-icon-color);
font-size: var(--n-icon-size-circle);
`)]),(0,n.cM)("multiple-circle",`
width: 200px;
color: inherit;
`,[(0,n.cB)("progress-text",`
font-weight: var(--n-font-weight-circle);
color: var(--n-text-color-circle);
position: absolute;
left: 50%;
top: 50%;
transform: translateX(-50%) translateY(-50%);
display: flex;
align-items: center;
justify-content: center;
transition: color .3s var(--n-bezier);
`)]),(0,n.cB)("progress-content",{position:"relative"}),(0,n.cB)("progress-graph",{position:"relative"},[(0,n.cB)("progress-graph-circle",[(0,n.c)("svg",{verticalAlign:"bottom"}),(0,n.cB)("progress-graph-circle-fill",`
stroke: var(--n-fill-color);
transition:
opacity .3s var(--n-bezier),
stroke .3s var(--n-bezier),
stroke-dasharray .3s var(--n-bezier);
`,[(0,n.cM)("empty",{opacity:0})]),(0,n.cB)("progress-graph-circle-rail",`
transition: stroke .3s var(--n-bezier);
overflow: hidden;
stroke: var(--n-rail-color);
`)]),(0,n.cB)("progress-graph-line",[(0,n.cM)("indicator-inside",[(0,n.cB)("progress-graph-line-rail",`
height: 16px;
line-height: 16px;
border-radius: 10px;
`,[(0,n.cB)("progress-graph-line-fill",`
height: inherit;
border-radius: 10px;
`),(0,n.cB)("progress-graph-line-indicator",`
background: #0000;
white-space: nowrap;
text-align: right;
margin-left: 14px;
margin-right: 14px;
height: inherit;
font-size: 12px;
color: var(--n-text-color-line-inner);
transition: color .3s var(--n-bezier);
`)])]),(0,n.cM)("indicator-inside-label",`
height: 16px;
display: flex;
align-items: center;
`,[(0,n.cB)("progress-graph-line-rail",`
flex: 1;
transition: background-color .3s var(--n-bezier);
`),(0,n.cB)("progress-graph-line-indicator",`
background: var(--n-fill-color);
font-size: 12px;
transform: translateZ(0);
display: flex;
vertical-align: middle;
height: 16px;
line-height: 16px;
padding: 0 10px;
border-radius: 10px;
position: absolute;
white-space: nowrap;
color: var(--n-text-color-line-inner);
transition:
right .2s var(--n-bezier),
color .3s var(--n-bezier),
background-color .3s var(--n-bezier);
`)]),(0,n.cB)("progress-graph-line-rail",`
position: relative;
overflow: hidden;
height: var(--n-rail-height);
border-radius: 5px;
background-color: var(--n-rail-color);
transition: background-color .3s var(--n-bezier);
`,[(0,n.cB)("progress-graph-line-fill",`
background: var(--n-fill-color);
position: relative;
border-radius: 5px;
height: inherit;
width: 100%;
max-width: 0%;
transition:
background-color .3s var(--n-bezier),
max-width .2s var(--n-bezier);
`,[(0,n.cM)("processing",[(0,n.c)("&::after",`
content: "";
background-image: var(--n-line-bg-processing);
animation: progress-processing-animation 2s var(--n-bezier) infinite;
`)])])])])])]),(0,n.c)("@keyframes progress-processing-animation",`
0% {
position: absolute;
left: 0;
top: 0;
bottom: 0;
right: 100%;
opacity: 1;
}
66% {
position: absolute;
left: 0;
top: 0;
bottom: 0;
right: 0;
opacity: 0;
}
100% {
position: absolute;
left: 0;
top: 0;
bottom: 0;
right: 0;
opacity: 0;
}
`)]),B=Object.assign(Object.assign({},o.Z.props),{processing:Boolean,type:{type:String,default:"line"},gapDegree:Number,gapOffsetDegree:Number,status:{type:String,default:"default"},railColor:[String,Array],railStyle:[String,Array],color:[String,Array,Object],viewBoxWidth:{type:Number,default:100},strokeWidth:{type:Number,default:7},percentage:[Number,Array],unit:{type:String,default:"%"},showIndicator:{type:Boolean,default:!0},indicatorPosition:{type:String,default:"outside"},indicatorPlacement:{type:String,default:"outside"},indicatorTextColor:String,circleGap:{type:Number,default:1},height:Number,borderRadius:[String,Number],fillBorderRadius:[String,Number],offsetDegree:Number}),k=(0,i.aZ)({name:"Progress",props:B,setup(e){let r=(0,i.Fl)(()=>e.indicatorPlacement||e.indicatorPosition),t=(0,i.Fl)(()=>e.gapDegree||0===e.gapDegree?e.gapDegree:"dashboard"===e.type?75:void 0),{mergedClsPrefixRef:c,inlineThemeDisabled:p}=(0,l.ZP)(e),d=(0,o.Z)("Progress","-progress",$,a.Z,e,c),g=(0,i.Fl)(()=>{let{status:r}=e,{common:{cubicBezierEaseInOut:t},self:{fontSize:i,fontSizeCircle:o,railColor:l,railHeight:s,iconSizeCircle:a,iconSizeLine:c,textColorCircle:p,textColorLineInner:g,textColorLineOuter:h,lineBgProcessing:u,fontWeightCircle:f,[(0,n.Tl)("iconColor",r)]:v,[(0,n.Tl)("fillColor",r)]:y}}=d.value;return{"--n-bezier":t,"--n-fill-color":y,"--n-font-size":i,"--n-font-size-circle":o,"--n-font-weight-circle":f,"--n-icon-color":v,"--n-icon-size-circle":a,"--n-icon-size-line":c,"--n-line-bg-processing":u,"--n-rail-color":l,"--n-rail-height":s,"--n-text-color-circle":p,"--n-text-color-line-inner":g,"--n-text-color-line-outer":h}}),h=p?(0,s.F)("progress",(0,i.Fl)(()=>e.status[0]),g,e):void 0;return{mergedClsPrefix:c,mergedIndicatorPlacement:r,gapDeg:t,cssVars:p?void 0:g,themeClass:null==h?void 0:h.themeClass,onRender:null==h?void 0:h.onRender}},render(){let{type:e,cssVars:r,indicatorTextColor:t,showIndicator:o,status:l,railColor:s,railStyle:n,color:a,percentage:c,viewBoxWidth:p,strokeWidth:d,mergedIndicatorPlacement:g,unit:h,borderRadius:u,fillBorderRadius:v,height:y,processing:m,circleGap:$,mergedClsPrefix:B,gapDeg:k,gapOffsetDegree:w,themeClass:S,$slots:C,onRender:z}=this;return null==z||z(),(0,i.h)("div",{class:[S,`${B}-progress`,`${B}-progress--${e}`,`${B}-progress--${l}`],style:r,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":c,role:"circle"===e||"line"===e||"dashboard"===e?"progressbar":"none"},"circle"===e||"dashboard"===e?(0,i.h)(f,{clsPrefix:B,status:l,showIndicator:o,indicatorTextColor:t,railColor:s,fillColor:a,railStyle:n,offsetDegree:this.offsetDegree,percentage:c,viewBoxWidth:p,strokeWidth:d,gapDegree:void 0===k?75*("dashboard"===e):k,gapOffsetDegree:w,unit:h},C):"line"===e?(0,i.h)(b,{clsPrefix:B,status:l,showIndicator:o,indicatorTextColor:t,railColor:s,fillColor:a,railStyle:n,percentage:c,processing:m,indicatorPlacement:g,unit:h,fillBorderRadius:v,railBorderRadius:u,height:y},C):"multiple-circle"===e?(0,i.h)(x,{clsPrefix:B,strokeWidth:d,railColor:s,fillColor:a,railStyle:n,viewBoxWidth:p,percentage:c,showIndicator:o,circleGap:$},C):null)}})}}]);