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([["6646"],{65977:function(e,r,t){t.d(r,{Z:()=>l});var o=t(58786);let l=(0,o.aZ)({name:"Add",render:()=>(0,o.h)("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))})},6445:function(e,r,t){t.d(r,{z:()=>o});function o(e,r="default",t=[]){let l=e.$slots[r];return void 0===l?t:l()}},90340:function(e,r,t){t.d(r,{Z:()=>p});var o=t(58786),l=t(77565),i=t(56946),n=t(54470),a=t(53198),s=t(51048),d=t(24286),c=t(74482);let u=(0,t(71309).cB)("collapse-transition",{width:"100%"},[(0,c.Y)()]),h=Object.assign(Object.assign({},i.Z.props),{show:{type:Boolean,default:!0},appear:Boolean,collapsed:{type:Boolean,default:void 0}}),p=(0,o.aZ)({name:"CollapseTransition",props:h,inheritAttrs:!1,setup(e){let{mergedClsPrefixRef:r,inlineThemeDisabled:t,mergedRtlRef:l}=(0,n.ZP)(e),c=(0,i.Z)("CollapseTransition","-collapse-transition",u,d.Z,e,r),h=(0,s.V)("CollapseTransition",l,r),p=(0,o.Fl)(()=>void 0!==e.collapsed?e.collapsed:e.show),v=(0,o.Fl)(()=>{let{self:{bezier:e}}=c.value;return{"--n-bezier":e}}),b=t?(0,a.F)("collapse-transition",void 0,v,e):void 0;return{rtlEnabled:h,mergedShow:p,mergedClsPrefix:r,cssVars:t?void 0:v,themeClass:null==b?void 0:b.themeClass,onRender:null==b?void 0:b.onRender}},render(){return(0,o.h)(l.Z,{appear:this.appear},{default:()=>{var e;if(this.mergedShow)return null==(e=this.onRender)||e.call(this),(0,o.h)("div",(0,o.dG)({class:[`${this.mergedClsPrefix}-collapse-transition`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse-transition--rtl`,this.themeClass],style:this.cssVars},this.$attrs),this.$slots)}})}})},35409:function(e,r,t){t.d(r,{HX:()=>d,Ox:()=>c,ZP:()=>h,uv:()=>u});var o=t(58786),l=t(56946),i=t(54470),n=t(50144),a=t(38461),s=t(64170);function d(e){return`${e}-ellipsis--line-clamp`}function c(e,r){return`${e}-ellipsis--cursor-${r}`}let u=Object.assign(Object.assign({},l.Z.props),{expandTrigger:String,lineClamp:[Number,String],tooltip:{type:[Boolean,Object],default:!0}}),h=(0,o.aZ)({name:"Ellipsis",inheritAttrs:!1,props:u,slots:Object,setup(e,{slots:r,attrs:t}){let n=(0,i.hJ)(),u=(0,l.Z)("Ellipsis","-ellipsis",s.Z,a.Z,e,n),h=(0,o.iH)(null),p=(0,o.iH)(null),v=(0,o.iH)(null),b=(0,o.iH)(!1),f=(0,o.Fl)(()=>{let{lineClamp:r}=e,{value:t}=b;return void 0!==r?{textOverflow:"","-webkit-line-clamp":t?"":r}:{textOverflow:t?"":"ellipsis","-webkit-line-clamp":""}});function g(){let r=!1,{value:t}=b;if(t)return!0;let{value:o}=h;if(o){let{lineClamp:t}=e;if(function(r){if(!r)return;let t=f.value,o=d(n.value);for(let l in void 0!==e.lineClamp?w(r,o,"add"):w(r,o,"remove"),t)r.style[l]!==t[l]&&(r.style[l]=t[l])}(o),void 0!==t)r=o.scrollHeight<=o.offsetHeight;else{let{value:e}=p;e&&(r=e.getBoundingClientRect().width<=o.getBoundingClientRect().width)}var l=o,i=r;let a=c(n.value,"pointer");"click"!==e.expandTrigger||i?w(l,a,"remove"):w(l,a,"add")}return r}let m=(0,o.Fl)(()=>"click"===e.expandTrigger?()=>{var e;let{value:r}=b;r&&(null==(e=v.value)||e.setShow(!1)),b.value=!r}:void 0);function w(e,r,t){"add"===t?e.classList.contains(r)||e.classList.add(r):e.classList.contains(r)&&e.classList.remove(r)}return(0,o.se)(()=>{var r;e.tooltip&&(null==(r=v.value)||r.setShow(!1))}),{mergedTheme:u,triggerRef:h,triggerInnerRef:p,tooltipRef:v,handleClick:m,renderTrigger:()=>(0,o.h)("span",Object.assign({},(0,o.dG)(t,{class:[`${n.value}-ellipsis`,void 0!==e.lineClamp?d(n.value):void 0,"click"===e.expandTrigger?c(n.value,"pointer"):void 0],style:f.value}),{ref:"triggerRef",onClick:m.value,onMouseenter:"click"===e.expandTrigger?g:void 0}),e.lineClamp?r:(0,o.h)("span",{ref:"triggerInnerRef"},r)),getTooltipDisabled:g}},render(){var e;let{tooltip:r,renderTrigger:t,$slots:l}=this;if(!r)return t();{let{mergedTheme:i}=this;return(0,o.h)(n.Z,Object.assign({ref:"tooltipRef",placement:"top"},r,{getDisabled:this.getTooltipDisabled,theme:i.peers.Tooltip,themeOverrides:i.peerOverrides.Tooltip}),{trigger:t,default:null!=(e=l.tooltip)?e:l.default})}}})},64170:function(e,r,t){t.d(r,{Z:()=>l});var o=t(71309);let l=(0,o.cB)("ellipsis",{overflow:"hidden"},[(0,o.u4)("line-clamp",`
white-space: nowrap;
display: inline-block;
vertical-align: bottom;
max-width: 100%;
`),(0,o.cM)("line-clamp",`
display: -webkit-inline-box;
-webkit-box-orient: vertical;
`),(0,o.cM)("cursor-pointer",`
cursor: pointer;
`)])},37864:function(e,r,t){t.d(r,{ZP:()=>d});var o=t(58786),l=t(27987),i=t(42056),n=t(58410),a=t(6455);let s=Object.assign(Object.assign({},n.gk),a.Cn);(0,l.u)(s);let d=(0,o.aZ)({__GRID_ITEM__:!0,name:"FormItemGridItem",alias:["FormItemGi"],props:s,setup(){let e=(0,o.iH)(null);return{formItemInstRef:e,validate:(...r)=>{let{value:t}=e;if(t)return t.validate(...r)},restoreValidation:()=>{let{value:r}=e;r&&r.restoreValidation()}}},render(){return(0,o.h)(n.ZP,(0,i.C)(this.$.vnode.props||{},n.xB),{default:()=>{let e=(0,i.C)(this.$props,a.eh);return(0,o.h)(a.ZP,Object.assign({ref:"formItemInstRef"},e),this.$slots)}})}})},81833:function(e,r,t){function o(e,r){var t;if(null==e)return;let o=function(e){if("number"==typeof e)return{"":e.toString()};let r={};return e.split(/ +/).forEach(e=>{if(""===e)return;let[t,o]=e.split(":");void 0===o?r[""]=t:r[t]=o}),r}(e);if(void 0===r)return o[""];if("string"==typeof r)return null!=(t=o[r])?t:o[""];if(Array.isArray(r)){for(let e=r.length-1;e>=0;--e){let t=r[e];if(t in o)return o[t]}return o[""]}{let e,t=-1;return Object.keys(o).forEach(l=>{let i=Number(l);!Number.isNaN(i)&&r>=i&&i>=t&&(t=i,e=o[l])}),e}}t.d(r,{Z:()=>y});var l=t(76072),i=t(65083),n=t(58786),a=t(86223);let s={xs:0,s:640,m:1024,l:1280,xl:1536,"2xl":1920},d={},c=function(e=s){if(!a.j||"function"!=typeof window.matchMedia)return(0,n.Fl)(()=>[]);let r=(0,n.iH)({}),t=Object.keys(e),o=(e,t)=>{e.matches?r.value[t]=!0:r.value[t]=!1};return t.forEach(r=>{let t,l,i=e[r];if(void 0===d[i])(t=window.matchMedia(`(min-width: ${i}px)`)).addEventListener?t.addEventListener("change",e=>{l.forEach(t=>{t(e,r)})}):t.addListener&&t.addListener(e=>{l.forEach(t=>{t(e,r)})}),l=new Set,d[i]={mql:t,cbs:l};else t=d[i].mql,l=d[i].cbs;l.add(o),t.matches&&l.forEach(e=>{e(t,r)})}),(0,n.Jd)(()=>{t.forEach(r=>{let{cbs:t}=d[e[r]];t.has(o)&&t.delete(o)})}),(0,n.Fl)(()=>{let{value:e}=r;return t.filter(r=>e[r])})};var u=t(61691),h=t(70020),p=t(54470),v=t(68574),b=t(60951),f=t(6445);let g={xs:0,s:640,m:1024,l:1280,xl:1536,xxl:1920};var m=t(37507);let w="__ssr__",y=(0,n.aZ)({name:"Grid",inheritAttrs:!1,props:{layoutShiftDisabled:Boolean,responsive:{type:[String,Boolean],default:"self"},cols:{type:[Number,String],default:24},itemResponsive:Boolean,collapsed:Boolean,collapsedRows:{type:Number,default:1},itemStyle:[Object,String],xGap:{type:[Number,String],default:0},yGap:{type:[Number,String],default:0}},setup(e){let{mergedClsPrefixRef:r,mergedBreakpointsRef:t}=(0,p.ZP)(e),a=/^\d+$/,s=(0,n.iH)(void 0),d=c((null==t?void 0:t.value)||g),h=(0,u.Z)(()=>!(!e.itemResponsive&&a.test(e.cols.toString())&&a.test(e.xGap.toString())&&a.test(e.yGap.toString()))),b=(0,n.Fl)(()=>{if(h.value)return"self"===e.responsive?s.value:d.value}),f=(0,u.Z)(()=>{var r;return null!=(r=Number(o(e.cols.toString(),b.value)))?r:24}),y=(0,u.Z)(()=>o(e.xGap.toString(),b.value)),x=(0,u.Z)(()=>o(e.yGap.toString(),b.value)),k=e=>{s.value=e.contentRect.width},S=e=>{(0,l.J)(k,e)},$=(0,n.iH)(!1),B=(0,n.Fl)(()=>{if("self"===e.responsive)return S}),C=(0,n.iH)(!1),Z=(0,n.iH)();return(0,n.bv)(()=>{let{value:e}=Z;e&&e.hasAttribute(w)&&(e.removeAttribute(w),C.value=!0)}),(0,n.JJ)(m.r,{layoutShiftDisabledRef:(0,n.Vh)(e,"layoutShiftDisabled"),isSsrRef:C,itemStyleRef:(0,n.Vh)(e,"itemStyle"),xGapRef:y,overflowRef:$}),{isSsr:!v.j,contentEl:Z,mergedClsPrefix:r,style:(0,n.Fl)(()=>e.layoutShiftDisabled?{width:"100%",display:"grid",gridTemplateColumns:`repeat(${e.cols}, minmax(0, 1fr))`,columnGap:(0,i.BL)(e.xGap),rowGap:(0,i.BL)(e.yGap)}:{width:"100%",display:"grid",gridTemplateColumns:`repeat(${f.value}, minmax(0, 1fr))`,columnGap:(0,i.BL)(y.value),rowGap:(0,i.BL)(x.value)}),isResponsive:h,responsiveQuery:b,responsiveCols:f,handleResize:B,overflow:$}},render(){if(this.layoutShiftDisabled)return(0,n.h)("div",(0,n.dG)({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style},this.$attrs),this.$slots);let e=()=>{var e,r,t,l,i,a,s;this.overflow=!1;let d=(0,b.x)((0,f.z)(this)),c=[],{collapsed:u,collapsedRows:h,responsiveCols:p,responsiveQuery:v}=this;d.forEach(e=>{var r,t,l,i,a;if((null==(r=null==e?void 0:e.type)?void 0:r.__GRID_ITEM__)!==!0)return;if(function(e){var r;let t=null==(r=e.dirs)?void 0:r.find(({dir:e})=>e===n.F8);return!!(t&&!1===t.value)}(e)){let r=(0,n.Ho)(e);r.props?r.props.privateShow=!1:r.props={privateShow:!1},c.push({child:r,rawChildSpan:0});return}e.dirs=(null==(t=e.dirs)?void 0:t.filter(({dir:e})=>e!==n.F8))||null,(null==(l=e.dirs)?void 0:l.length)===0&&(e.dirs=null);let s=(0,n.Ho)(e),d=Number(null!=(a=o(null==(i=s.props)?void 0:i.span,v))?a:m.L);0!==d&&c.push({child:s,rawChildSpan:d})});let g=0,y=null==(e=c[c.length-1])?void 0:e.child;if(null==y?void 0:y.props){let e=null==(r=y.props)?void 0:r.suffix;void 0!==e&&!1!==e&&(g=Number(null!=(l=o(null==(t=y.props)?void 0:t.span,v))?l:m.L),y.props.privateSpan=g,y.props.privateColStart=p+1-g,y.props.privateShow=null==(i=y.props.privateShow)||i)}let x=0,k=!1;for(let{child:e,rawChildSpan:r}of c){if(k&&(this.overflow=!0),!k){let t=Number(null!=(s=o(null==(a=e.props)?void 0:a.offset,v))?s:0),l=Math.min(r+t,p);if(e.props?(e.props.privateSpan=l,e.props.privateOffset=t):e.props={privateSpan:l,privateOffset:t},u){let e=x%p;l+e>p&&(x+=p-e),l+x+g>h*p?k=!0:x+=l}}k&&(e.props?!0!==e.props.privateShow&&(e.props.privateShow=!1):e.props={privateShow:!1})}return(0,n.h)("div",(0,n.dG)({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style,[w]:this.isSsr||void 0},this.$attrs),c.map(({child:e})=>e))};return this.isResponsive&&"self"===this.responsive?(0,n.h)(h.Z,{onResize:this.handleResize},{default:e}):e()}})},58410:function(e,r,t){t.d(r,{ZP:()=>d,gk:()=>a,xB:()=>s});var o=t(65083),l=t(58786),i=t(27987),n=t(37507);let a={span:{type:[Number,String],default:1},offset:{type:[Number,String],default:0},suffix:Boolean,privateOffset:Number,privateSpan:Number,privateColStart:Number,privateShow:{type:Boolean,default:!0}},s=(0,i.u)(a),d=(0,l.aZ)({__GRID_ITEM__:!0,name:"GridItem",alias:["Gi"],props:a,setup(){let{isSsrRef:e,xGapRef:r,itemStyleRef:t,overflowRef:i,layoutShiftDisabledRef:a}=(0,l.f3)(n.r),s=(0,l.FN)();return{overflow:i,itemStyle:t,layoutShiftDisabled:a,mergedXGap:(0,l.Fl)(()=>(0,o.BL)(r.value||0)),deriveStyle:()=>{e.value;let{privateSpan:t=1,privateShow:l=!0,privateColStart:i,privateOffset:n=0}=s.vnode.props,{value:a}=r,d=(0,o.BL)(a||0);return{display:l?"":"none",gridColumn:`${null!=i?i:`span ${t}`} / span ${t}`,marginLeft:n?`calc((100% - (${t} - 1) * ${d}) / ${t} * ${n} + ${d} * ${n})`:""}}}},render(){var e,r;if(this.layoutShiftDisabled){let{span:e,offset:r,mergedXGap:t}=this;return(0,l.h)("div",{style:{gridColumn:`span ${e} / span ${e}`,marginLeft:r?`calc((100% - (${e} - 1) * ${t}) / ${e} * ${r} + ${t} * ${r})`:""}},this.$slots)}return(0,l.h)("div",{style:[this.itemStyle,this.deriveStyle()]},null==(r=(e=this.$slots).default)?void 0:r.call(e,{overflow:this.overflow}))}})},37507:function(e,r,t){t.d(r,{L:()=>l,r:()=>i});var o=t(19050);let l=1,i=(0,o.U)("n-grid")},86599:function(e,r,t){t.d(r,{Z:()=>v});var o=t(65083),l=t(17102),i=t(58786),n=t(56946),a=t(54470),s=t(68574);let d=!1;var c=t(71309);let u={name:"Skeleton",common:t(9798).Z,self:function(e){let{heightSmall:r,heightMedium:t,heightLarge:o,borderRadius:l}=e;return{color:"#eee",colorEnd:"#ddd",borderRadius:l,heightSmall:r,heightMedium:t,heightLarge:o}}},h=(0,c.c)([(0,c.cB)("skeleton",`
height: 1em;
width: 100%;
transition:
--n-color-start .3s var(--n-bezier),
--n-color-end .3s var(--n-bezier),
background-color .3s var(--n-bezier);
animation: 2s skeleton-loading infinite cubic-bezier(0.36, 0, 0.64, 1);
background-color: var(--n-color-start);
`),(0,c.c)("@keyframes skeleton-loading",`
0% {
background: var(--n-color-start);
}
40% {
background: var(--n-color-end);
}
80% {
background: var(--n-color-start);
}
100% {
background: var(--n-color-start);
}
`)]),p=Object.assign(Object.assign({},n.Z.props),{text:Boolean,round:Boolean,circle:Boolean,height:[String,Number],width:[String,Number],size:String,repeat:{type:Number,default:1},animated:{type:Boolean,default:!0},sharp:{type:Boolean,default:!0}}),v=(0,i.aZ)({name:"Skeleton",inheritAttrs:!1,props:p,setup(e){if(s.j&&window.CSS&&!d&&(d=!0,"registerProperty"in(null==window?void 0:window.CSS)))try{CSS.registerProperty({name:"--n-color-start",syntax:"<color>",inherits:!1,initialValue:"#0000"}),CSS.registerProperty({name:"--n-color-end",syntax:"<color>",inherits:!1,initialValue:"#0000"})}catch(e){}let{mergedClsPrefixRef:r}=(0,a.ZP)(e),t=(0,n.Z)("Skeleton","-skeleton",h,u,e,r);return{mergedClsPrefix:r,style:(0,i.Fl)(()=>{var r,l;let i,n=t.value,{common:{cubicBezierEaseInOut:a}}=n,s=n.self,{color:d,colorEnd:u,borderRadius:h}=s,{circle:p,sharp:v,round:b,width:f,height:g,size:m,text:w,animated:y}=e;void 0!==m&&(i=s[(0,c.Tl)("height",m)]);let x=p?null!=(r=null!=f?f:g)?r:i:f,k=null!=(l=p&&null!=f?f:g)?l:i;return{display:w?"inline-block":"",verticalAlign:w?"-0.125em":"",borderRadius:p?"50%":b?"4096px":v?"":h,width:"number"==typeof x?(0,o.BL)(x):x,height:"number"==typeof k?(0,o.BL)(k):k,animation:y?"":"none","--n-bezier":a,"--n-color-start":d,"--n-color-end":u}})}},render(){let{repeat:e,style:r,mergedClsPrefix:t,$attrs:o}=this,n=(0,i.h)("div",(0,i.dG)({class:`${t}-skeleton`,style:r},o));return e>1?(0,i.h)(i.HY,null,(0,l.rx)(e,null).map(e=>[n,"\n"])):n}})},29875:function(e,r,t){let o;t.d(r,{Z:()=>S});var l=t(65083),i=t(20013),n=t(58786),a=t(76128),s=t(62594),d=t(56946),c=t(54470),u=t(32196),h=t(53198),p=t(44267),v=t(71309),b=t(93950),f=t(19595),g=t(9798),m=t(30951);let w={name:"Switch",common:g.Z,self:function(e){let{primaryColor:r,opacityDisabled:t,borderRadius:o,textColor3:l}=e;return Object.assign(Object.assign({},m.Z),{iconColor:l,textColor:"white",loadingColor:r,opacityDisabled:t,railColor:"rgba(0, 0, 0, .14)",railColorActive:r,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:o,railBorderRadiusMedium:o,railBorderRadiusLarge:o,buttonBorderRadiusSmall:o,buttonBorderRadiusMedium:o,buttonBorderRadiusLarge:o,boxShadowFocus:`0 0 0 2px ${(0,f.zX)(r,{alpha:.2})}`})}};var y=t(28632);let x=(0,v.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,v.cE)("children-placeholder",`
height: var(--n-rail-height);
display: flex;
flex-direction: column;
overflow: hidden;
pointer-events: none;
visibility: hidden;
`),(0,v.cE)("rail-placeholder",`
display: flex;
flex-wrap: none;
`),(0,v.cE)("button-placeholder",`
width: calc(1.75 * var(--n-rail-height));
height: var(--n-rail-height);
`),(0,v.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,v.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,v.cE)("checked",`
right: 0;
padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset));
`),(0,v.cE)("unchecked",`
left: 0;
justify-content: flex-end;
padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset));
`),(0,v.c)("&:focus",[(0,v.cE)("rail",`
box-shadow: var(--n-box-shadow-focus);
`)]),(0,v.cM)("round",[(0,v.cE)("rail","border-radius: calc(var(--n-rail-height) / 2);",[(0,v.cE)("button","border-radius: calc(var(--n-button-height) / 2);")])]),(0,v.u4)("disabled",[(0,v.u4)("icon",[(0,v.cM)("rubber-band",[(0,v.cM)("pressed",[(0,v.cE)("rail",[(0,v.cE)("button","max-width: var(--n-button-width-pressed);")])]),(0,v.cE)("rail",[(0,v.c)("&:active",[(0,v.cE)("button","max-width: var(--n-button-width-pressed);")])]),(0,v.cM)("active",[(0,v.cM)("pressed",[(0,v.cE)("rail",[(0,v.cE)("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),(0,v.cE)("rail",[(0,v.c)("&:active",[(0,v.cE)("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),(0,v.cM)("active",[(0,v.cE)("rail",[(0,v.cE)("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),(0,v.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,v.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,v.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,v.cM)("active",[(0,v.cE)("rail","background-color: var(--n-rail-color-active);")]),(0,v.cM)("loading",[(0,v.cE)("rail",`
cursor: wait;
`)]),(0,v.cM)("disabled",[(0,v.cE)("rail",`
cursor: not-allowed;
opacity: .5;
`)])]),k=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]}),S=(0,n.aZ)({name:"Switch",props:k,slots:Object,setup(e){void 0===o&&(o="undefined"==typeof CSS||void 0!==CSS.supports&&CSS.supports("width","max(1px)"));let{mergedClsPrefixRef:r,inlineThemeDisabled:t}=(0,c.ZP)(e),a=(0,d.Z)("Switch","-switch",x,w,e,r),s=(0,u.Z)(e),{mergedSizeRef:b,mergedDisabledRef:f}=s,g=(0,n.iH)(e.defaultValue),m=(0,n.Vh)(e,"value"),y=(0,i.Z)(m,g),k=(0,n.Fl)(()=>y.value===e.checkedValue),S=(0,n.iH)(!1),$=(0,n.iH)(!1),B=(0,n.Fl)(()=>{let{railStyle:r}=e;if(r)return r({focused:$.value,checked:k.value})});function C(r){let{"onUpdate:value":t,onChange:o,onUpdateValue:l}=e,{nTriggerFormInput:i,nTriggerFormChange:n}=s;t&&(0,p.R)(t,r),l&&(0,p.R)(l,r),o&&(0,p.R)(o,r),g.value=r,i(),n()}let Z=(0,n.Fl)(()=>{let e,r,t,{value:i}=b,{self:{opacityDisabled:n,railColor:s,railColorActive:d,buttonBoxShadow:c,buttonColor:u,boxShadowFocus:h,loadingColor:p,textColor:f,iconColor:g,[(0,v.Tl)("buttonHeight",i)]:m,[(0,v.Tl)("buttonWidth",i)]:w,[(0,v.Tl)("buttonWidthPressed",i)]:y,[(0,v.Tl)("railHeight",i)]:x,[(0,v.Tl)("railWidth",i)]:k,[(0,v.Tl)("railBorderRadius",i)]:S,[(0,v.Tl)("buttonBorderRadius",i)]:$},common:{cubicBezierEaseInOut:B}}=a.value;return o?(e=`calc((${x} - ${m}) / 2)`,r=`max(${x}, ${m})`,t=`max(${k}, calc(${k} + ${m} - ${x}))`):(e=(0,l.BL)(((0,l.fQ)(x)-(0,l.fQ)(m))/2),r=(0,l.BL)(Math.max((0,l.fQ)(x),(0,l.fQ)(m))),t=(0,l.fQ)(x)>(0,l.fQ)(m)?k:(0,l.BL)((0,l.fQ)(k)+(0,l.fQ)(m)-(0,l.fQ)(x))),{"--n-bezier":B,"--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":m,"--n-height":r,"--n-offset":e,"--n-opacity-disabled":n,"--n-rail-border-radius":S,"--n-rail-color":s,"--n-rail-color-active":d,"--n-rail-height":x,"--n-rail-width":k,"--n-width":t,"--n-box-shadow-focus":h,"--n-loading-color":p,"--n-text-color":f,"--n-icon-color":g}}),E=t?(0,h.F)("switch",(0,n.Fl)(()=>b.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}=s;e(),S.value=!1},handleFocus:function(){$.value=!0;let{nTriggerFormFocus:e}=s;e()},handleKeyup:function(r){e.loading||f.value||" "===r.key&&(y.value!==e.checkedValue?C(e.checkedValue):C(e.uncheckedValue),S.value=!1)},handleKeydown:function(r){e.loading||f.value||" "===r.key&&(r.preventDefault(),S.value=!0)},mergedRailStyle:B,pressed:S,mergedClsPrefix:r,mergedValue:y,checked:k,mergedDisabled:f,cssVars:t?void 0:Z,themeClass:null==E?void 0:E.themeClass,onRender:null==E?void 0:E.onRender}},render(){let{mergedClsPrefix:e,mergedDisabled:r,checked:t,mergedRailStyle:o,onRender:l,$slots:i}=this;null==l||l();let{checked:d,unchecked:c,icon:u,"checked-icon":h,"unchecked-icon":p}=i,v=!((0,b.aD)(u)&&(0,b.aD)(h)&&(0,b.aD)(p));return(0,n.h)("div",{role:"switch","aria-checked":t,class:[`${e}-switch`,this.themeClass,v&&`${e}-switch--icon`,t&&`${e}-switch--active`,r&&`${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,n.h)("div",{class:`${e}-switch__rail`,"aria-hidden":"true",style:o},(0,b.K9)(d,r=>(0,b.K9)(c,t=>r||t?(0,n.h)("div",{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},(0,n.h)("div",{class:`${e}-switch__rail-placeholder`},(0,n.h)("div",{class:`${e}-switch__button-placeholder`}),r),(0,n.h)("div",{class:`${e}-switch__rail-placeholder`},(0,n.h)("div",{class:`${e}-switch__button-placeholder`}),t)):null)),(0,n.h)("div",{class:`${e}-switch__button`},(0,b.K9)(u,r=>(0,b.K9)(h,t=>(0,b.K9)(p,o=>(0,n.h)(a.Z,null,{default:()=>this.loading?(0,n.h)(s.Z,{key:"loading",clsPrefix:e,strokeWidth:20}):this.checked&&(t||r)?(0,n.h)("div",{class:`${e}-switch__button-icon`,key:t?"checked-icon":"icon"},t||r):!this.checked&&(o||r)?(0,n.h)("div",{class:`${e}-switch__button-icon`,key:o?"unchecked-icon":"icon"},o||r):null})))),(0,b.K9)(d,r=>r&&(0,n.h)("div",{key:"checked",class:`${e}-switch__checked`},r)),(0,b.K9)(c,r=>r&&(0,n.h)("div",{key:"unchecked",class:`${e}-switch__unchecked`},r)))))}})},50039:function(e,r,t){t.d(r,{Z:()=>h});var o=t(58786),l=t(56946),i=t(54470),n=t(53198),a=t(51048),s=t(71309),d=t(91078);let c=(0,s.c)([(0,s.cB)("table",`
font-size: var(--n-font-size);
font-variant-numeric: tabular-nums;
line-height: var(--n-line-height);
width: 100%;
border-radius: var(--n-border-radius) var(--n-border-radius) 0 0;
text-align: left;
border-collapse: separate;
border-spacing: 0;
overflow: hidden;
background-color: var(--n-td-color);
border-color: var(--n-merged-border-color);
transition:
background-color .3s var(--n-bezier),
border-color .3s var(--n-bezier),
color .3s var(--n-bezier);
--n-merged-border-color: var(--n-border-color);
`,[(0,s.c)("th",`
white-space: nowrap;
transition:
background-color .3s var(--n-bezier),
border-color .3s var(--n-bezier),
color .3s var(--n-bezier);
text-align: inherit;
padding: var(--n-th-padding);
vertical-align: inherit;
text-transform: none;
border: 0px solid var(--n-merged-border-color);
font-weight: var(--n-th-font-weight);
color: var(--n-th-text-color);
background-color: var(--n-th-color);
border-bottom: 1px solid var(--n-merged-border-color);
border-right: 1px solid var(--n-merged-border-color);
`,[(0,s.c)("&:last-child",`
border-right: 0px solid var(--n-merged-border-color);
`)]),(0,s.c)("td",`
transition:
background-color .3s var(--n-bezier),
border-color .3s var(--n-bezier),
color .3s var(--n-bezier);
padding: var(--n-td-padding);
color: var(--n-td-text-color);
background-color: var(--n-td-color);
border: 0px solid var(--n-merged-border-color);
border-right: 1px solid var(--n-merged-border-color);
border-bottom: 1px solid var(--n-merged-border-color);
`,[(0,s.c)("&:last-child",`
border-right: 0px solid var(--n-merged-border-color);
`)]),(0,s.cM)("bordered",`
border: 1px solid var(--n-merged-border-color);
border-radius: var(--n-border-radius);
`,[(0,s.c)("tr",[(0,s.c)("&:last-child",[(0,s.c)("td",`
border-bottom: 0 solid var(--n-merged-border-color);
`)])])]),(0,s.cM)("single-line",[(0,s.c)("th",`
border-right: 0px solid var(--n-merged-border-color);
`),(0,s.c)("td",`
border-right: 0px solid var(--n-merged-border-color);
`)]),(0,s.cM)("single-column",[(0,s.c)("tr",[(0,s.c)("&:not(:last-child)",[(0,s.c)("td",`
border-bottom: 0px solid var(--n-merged-border-color);
`)])])]),(0,s.cM)("striped",[(0,s.c)("tr:nth-of-type(even)",[(0,s.c)("td","background-color: var(--n-td-color-striped)")])]),(0,s.u4)("bottom-bordered",[(0,s.c)("tr",[(0,s.c)("&:last-child",[(0,s.c)("td",`
border-bottom: 0px solid var(--n-merged-border-color);
`)])])])]),(0,s.ko)((0,s.cB)("table",`
background-color: var(--n-td-color-modal);
--n-merged-border-color: var(--n-border-color-modal);
`,[(0,s.c)("th",`
background-color: var(--n-th-color-modal);
`),(0,s.c)("td",`
background-color: var(--n-td-color-modal);
`)])),(0,s.WW)((0,s.cB)("table",`
background-color: var(--n-td-color-popover);
--n-merged-border-color: var(--n-border-color-popover);
`,[(0,s.c)("th",`
background-color: var(--n-th-color-popover);
`),(0,s.c)("td",`
background-color: var(--n-td-color-popover);
`)]))]),u=Object.assign(Object.assign({},l.Z.props),{bordered:{type:Boolean,default:!0},bottomBordered:{type:Boolean,default:!0},singleLine:{type:Boolean,default:!0},striped:Boolean,singleColumn:Boolean,size:{type:String,default:"medium"}}),h=(0,o.aZ)({name:"Table",props:u,setup(e){let{mergedClsPrefixRef:r,inlineThemeDisabled:t,mergedRtlRef:u}=(0,i.ZP)(e),h=(0,l.Z)("Table","-table",c,d.Z,e,r),p=(0,a.V)("Table",u,r),v=(0,o.Fl)(()=>{let{size:r}=e,{self:{borderColor:t,tdColor:o,tdColorModal:l,tdColorPopover:i,thColor:n,thColorModal:a,thColorPopover:d,thTextColor:c,tdTextColor:u,borderRadius:p,thFontWeight:v,lineHeight:b,borderColorModal:f,borderColorPopover:g,tdColorStriped:m,tdColorStripedModal:w,tdColorStripedPopover:y,[(0,s.Tl)("fontSize",r)]:x,[(0,s.Tl)("tdPadding",r)]:k,[(0,s.Tl)("thPadding",r)]:S},common:{cubicBezierEaseInOut:$}}=h.value;return{"--n-bezier":$,"--n-td-color":o,"--n-td-color-modal":l,"--n-td-color-popover":i,"--n-td-text-color":u,"--n-border-color":t,"--n-border-color-modal":f,"--n-border-color-popover":g,"--n-border-radius":p,"--n-font-size":x,"--n-th-color":n,"--n-th-color-modal":a,"--n-th-color-popover":d,"--n-th-font-weight":v,"--n-th-text-color":c,"--n-line-height":b,"--n-td-padding":k,"--n-th-padding":S,"--n-td-color-striped":m,"--n-td-color-striped-modal":w,"--n-td-color-striped-popover":y}}),b=t?(0,n.F)("table",(0,o.Fl)(()=>e.size[0]),v,e):void 0;return{rtlEnabled:p,mergedClsPrefix:r,cssVars:t?void 0:v,themeClass:null==b?void 0:b.themeClass,onRender:null==b?void 0:b.onRender}},render(){var e;let{mergedClsPrefix:r}=this;return null==(e=this.onRender)||e.call(this),(0,o.h)("table",{class:[`${r}-table`,this.themeClass,{[`${r}-table--rtl`]:this.rtlEnabled,[`${r}-table--bottom-bordered`]:this.bottomBordered,[`${r}-table--bordered`]:this.bordered,[`${r}-table--single-line`]:this.singleLine,[`${r}-table--single-column`]:this.singleColumn,[`${r}-table--striped`]:this.striped}],style:this.cssVars},this.$slots)}})}}]);