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([["2137"],{27062:function(e,o,n){n.d(o,{Z:()=>l});var t=n(58786),r=n(82518),i=n(86223);function l(e={},o){let n=(0,t.qj)({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:d,keyup:a}=e,s=e=>{switch(e.key){case"Control":n.ctrl=!0;break;case"Meta":n.command=!0,n.win=!0;break;case"Shift":n.shift=!0;break;case"Tab":n.tab=!0}void 0!==d&&Object.keys(d).forEach(o=>{if(o!==e.key)return;let n=d[o];if("function"==typeof n)n(e);else{let{stop:o=!1,prevent:t=!1}=n;o&&e.stopPropagation(),t&&e.preventDefault(),n.handler(e)}})},u=e=>{switch(e.key){case"Control":n.ctrl=!1;break;case"Meta":n.command=!1,n.win=!1;break;case"Shift":n.shift=!1;break;case"Tab":n.tab=!1}void 0!==a&&Object.keys(a).forEach(o=>{if(o!==e.key)return;let n=a[o];if("function"==typeof n)n(e);else{let{stop:o=!1,prevent:t=!1}=n;o&&e.stopPropagation(),t&&e.preventDefault(),n.handler(e)}})},p=()=>{(void 0===o||o.value)&&((0,r.on)("keydown",document,s),(0,r.on)("keyup",document,u)),void 0!==o&&(0,t.YP)(o,e=>{e?((0,r.on)("keydown",document,s),(0,r.on)("keyup",document,u)):((0,r.S)("keydown",document,s),(0,r.S)("keyup",document,u))})};return(0,i.N)()?((0,t.wF)(p),(0,t.Jd)(()=>{(void 0===o||o.value)&&((0,r.S)("keydown",document,s),(0,r.S)("keyup",document,u))})):p(),(0,t.OT)(n)}},17351:function(e,o,n){n.d(o,{Z:()=>r});var t=n(58786);let r=(0,t.aZ)({name:"ChevronRight",render:()=>(0,t.h)("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.h)("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))})},88143:function(e,o,n){n.d(o,{S:()=>t});function t(e){return o=>{o?e.value=o.$el:e.value=null}}},52742:function(e,o,n){n.d(o,{Z:()=>q});var t=n(20772),r=n(20013),i=n(61691),l=n(27062),d=n(58786),a=n(56946),s=n(54470),u=n(53198),p=n(44267),c=n(71309),h=n(88143),v=n(42056),f=n(49942),b=n(13015),w=n(19050);let m=(0,w.U)("n-dropdown-menu"),y=(0,w.U)("n-dropdown"),g=(0,w.U)("n-dropdown-option");var x=n(97756),k=n(83549),S=n(62383),N=n(8608),P=n(65237);let C=(0,d.aZ)({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return(0,d.h)("div",{class:`${this.clsPrefix}-dropdown-divider`})}});var O=n(14501),F=n(96616);let Z=(0,d.aZ)({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){let{showIconRef:e,hasSubmenuRef:o}=(0,d.f3)(m),{renderLabelRef:n,labelFieldRef:t,nodePropsRef:r,renderOptionRef:i}=(0,d.f3)(y);return{labelField:t,showIcon:e,hasSubmenu:o,renderLabel:n,nodeProps:r,renderOption:i}},render(){var e;let{clsPrefix:o,hasSubmenu:n,showIcon:t,nodeProps:r,renderLabel:i,renderOption:l}=this,{rawNode:a}=this.tmNode,s=(0,d.h)("div",Object.assign({class:`${o}-dropdown-option`},null==r?void 0:r(a)),(0,d.h)("div",{class:`${o}-dropdown-option-body ${o}-dropdown-option-body--group`},(0,d.h)("div",{"data-dropdown-option":!0,class:[`${o}-dropdown-option-body__prefix`,t&&`${o}-dropdown-option-body__prefix--show-icon`]},(0,F.s)(a.icon)),(0,d.h)("div",{class:`${o}-dropdown-option-body__label`,"data-dropdown-option":!0},i?i(a):(0,F.s)(null!=(e=a.title)?e:a[this.labelField])),(0,d.h)("div",{class:[`${o}-dropdown-option-body__suffix`,n&&`${o}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})));return l?l({node:s,option:a}):s}});var $=n(85259),T=n(1257),A=n(53242),j=n(67553),z=n(17351),B=n(56357);function R(e,o){return"submenu"===e.type||void 0===e.type&&void 0!==e[o]}function _(e){return"divider"===e.type}let I=(0,d.aZ)({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){let o=(0,d.f3)(y),{hoverKeyRef:n,keyboardKeyRef:t,lastToggledSubmenuKeyRef:r,pendingKeyPathRef:l,activeKeyPathRef:a,animatedRef:s,mergedShowRef:u,renderLabelRef:p,renderIconRef:c,labelFieldRef:h,childrenFieldRef:v,renderOptionRef:f,nodePropsRef:b,menuPropsRef:w}=o,x=(0,d.f3)(g,null),k=(0,d.f3)(m),S=(0,d.f3)(N.c),P=(0,d.Fl)(()=>e.tmNode.rawNode),C=(0,d.Fl)(()=>{let{value:o}=v;return R(e.tmNode.rawNode,o)}),O=(0,d.Fl)(()=>{let{disabled:o}=e.tmNode;return o}),F=function(e,o,n){let t=(0,d.iH)(e.value),r=null;return(0,d.YP)(e,e=>{null!==r&&window.clearTimeout(r),!0===e?n&&!n.value?t.value=!0:r=window.setTimeout(()=>{t.value=!0},300):t.value=!1}),t}((0,d.Fl)(()=>{if(!C.value)return!1;let{key:o,disabled:i}=e.tmNode;if(i)return!1;let{value:d}=n,{value:a}=t,{value:s}=r,{value:u}=l;return null!==d?u.includes(o):null!==a?u.includes(o)&&u[u.length-1]!==o:null!==s&&u.includes(o)}),300,(0,d.Fl)(()=>null===t.value&&!s.value)),Z=(0,d.Fl)(()=>!!(null==x?void 0:x.enteringSubmenuRef.value)),T=(0,d.iH)(!1);function A(){let{parentKey:o,tmNode:i}=e;!i.disabled&&u.value&&(r.value=o,t.value=null,n.value=i.key)}return(0,d.JJ)(g,{enteringSubmenuRef:T}),{labelField:h,renderLabel:p,renderIcon:c,siblingHasIcon:k.showIconRef,siblingHasSubmenu:k.hasSubmenuRef,menuProps:w,popoverBody:S,animated:s,mergedShowSubmenu:(0,d.Fl)(()=>F.value&&!Z.value),rawNode:P,hasSubmenu:C,pending:(0,i.Z)(()=>{let{value:o}=l,{key:n}=e.tmNode;return o.includes(n)}),childActive:(0,i.Z)(()=>{let{value:o}=a,{key:n}=e.tmNode,t=o.findIndex(e=>n===e);return -1!==t&&t<o.length-1}),active:(0,i.Z)(()=>{let{value:o}=a,{key:n}=e.tmNode,t=o.findIndex(e=>n===e);return -1!==t&&t===o.length-1}),mergedDisabled:O,renderOption:f,nodeProps:b,handleClick:function(){let{value:n}=C,{tmNode:t}=e;u.value&&(n||t.disabled||(o.doSelect(t.key,t.rawNode),o.doUpdateShow(!1)))},handleMouseMove:function(){let{tmNode:o}=e;!o.disabled&&u.value&&n.value!==o.key&&A()},handleMouseEnter:A,handleMouseLeave:function(o){if(e.tmNode.disabled||!u.value)return;let{relatedTarget:t}=o;!t||(0,$.B)({target:t},"dropdownOption")||(0,$.B)({target:t},"scrollbarRail")||(n.value=null)},handleSubmenuBeforeEnter:function(){T.value=!0},handleSubmenuAfterEnter:function(){T.value=!1}}},render(){var e,o;let{animated:n,rawNode:t,mergedShowSubmenu:r,clsPrefix:i,siblingHasIcon:l,siblingHasSubmenu:a,renderLabel:s,renderIcon:u,renderOption:p,nodeProps:c,props:h,scrollable:v}=this,f=null;if(r){let o=null==(e=this.menuProps)?void 0:e.call(this,t,t.children);f=(0,d.h)(H,Object.assign({},o,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}let b={class:[`${i}-dropdown-option-body`,this.pending&&`${i}-dropdown-option-body--pending`,this.active&&`${i}-dropdown-option-body--active`,this.childActive&&`${i}-dropdown-option-body--child-active`,this.mergedDisabled&&`${i}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},w=null==c?void 0:c(t),m=(0,d.h)("div",Object.assign({class:[`${i}-dropdown-option`,null==w?void 0:w.class],"data-dropdown-option":!0},w),(0,d.h)("div",(0,d.dG)(b,h),[(0,d.h)("div",{class:[`${i}-dropdown-option-body__prefix`,l&&`${i}-dropdown-option-body__prefix--show-icon`]},[u?u(t):(0,F.s)(t.icon)]),(0,d.h)("div",{"data-dropdown-option":!0,class:`${i}-dropdown-option-body__label`},s?s(t):(0,F.s)(null!=(o=t[this.labelField])?o:t.title)),(0,d.h)("div",{"data-dropdown-option":!0,class:[`${i}-dropdown-option-body__suffix`,a&&`${i}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?(0,d.h)(B.g,null,{default:()=>(0,d.h)(z.Z,null)}):null)]),this.hasSubmenu?(0,d.h)(T.Z,null,{default:()=>[(0,d.h)(A.Z,null,{default:()=>(0,d.h)("div",{class:`${i}-dropdown-offset-container`},(0,d.h)(j.Z,{show:this.mergedShowSubmenu,placement:this.placement,to:v&&this.popoverBody||void 0,teleportDisabled:!v},{default:()=>(0,d.h)("div",{class:`${i}-dropdown-menu-wrapper`},n?(0,d.h)(d.uT,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>f}):f)}))})]}):null);return p?p({node:m,option:t}):m}}),M=(0,d.aZ)({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){let{tmNode:e,parentKey:o,clsPrefix:n}=this,{children:t}=e;return(0,d.h)(d.HY,null,(0,d.h)(Z,{clsPrefix:n,tmNode:e,key:e.key}),null==t?void 0:t.map(e=>{let{rawNode:t}=e;return!1===t.show?null:_(t)?(0,d.h)(C,{clsPrefix:n,key:e.key}):e.isGroup?((0,O.ZK)("dropdown","`group` node is not allowed to be put in `group` node."),null):(0,d.h)(I,{clsPrefix:n,tmNode:e,parentKey:o,key:e.key})}))}}),E=(0,d.aZ)({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){let{rawNode:{render:e,props:o}}=this.tmNode;return(0,d.h)("div",o,[null==e?void 0:e()])}}),H=(0,d.aZ)({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){let{renderIconRef:o,childrenFieldRef:n}=(0,d.f3)(y);(0,d.JJ)(m,{showIconRef:(0,d.Fl)(()=>{let n=o.value;return e.tmNodes.some(e=>{var o;if(e.isGroup)return null==(o=e.children)?void 0:o.some(({rawNode:e})=>n?n(e):e.icon);let{rawNode:t}=e;return n?n(t):t.icon})}),hasSubmenuRef:(0,d.Fl)(()=>{let{value:o}=n;return e.tmNodes.some(e=>{var n;if(e.isGroup)return null==(n=e.children)?void 0:n.some(({rawNode:e})=>R(e,o));let{rawNode:t}=e;return R(t,o)})})});let t=(0,d.iH)(null);return(0,d.JJ)(S.ZJ,null),(0,d.JJ)(k.H,null),(0,d.JJ)(N.c,t),{bodyRef:t}},render(){let{parentKey:e,clsPrefix:o,scrollable:n}=this,t=this.tmNodes.map(t=>{let{rawNode:r}=t;return!1===r.show?null:"render"===r.type?(0,d.h)(E,{tmNode:t,key:t.key}):_(r)?(0,d.h)(C,{clsPrefix:o,key:t.key}):"group"===r.type?(0,d.h)(M,{clsPrefix:o,tmNode:t,parentKey:e,key:t.key}):(0,d.h)(I,{clsPrefix:o,tmNode:t,parentKey:e,key:t.key,props:r.props,scrollable:n})});return(0,d.h)("div",{class:[`${o}-dropdown-menu`,n&&`${o}-dropdown-menu--scrollable`],ref:"bodyRef"},n?(0,d.h)(x.u,{contentClass:`${o}-dropdown-menu__content`},{default:()=>t}):t,this.showArrow?(0,P.qA)({clsPrefix:o,arrowStyle:this.arrowStyle,arrowClass:void 0,arrowWrapperClass:void 0,arrowWrapperStyle:void 0}):null)}});var D=n(74732);let L=(0,c.cB)("dropdown-menu",`
transform-origin: var(--v-transform-origin);
background-color: var(--n-color);
border-radius: var(--n-border-radius);
box-shadow: var(--n-box-shadow);
position: relative;
transition:
background-color .3s var(--n-bezier),
box-shadow .3s var(--n-bezier);
`,[(0,D.h)(),(0,c.cB)("dropdown-option",`
position: relative;
`,[(0,c.c)("a",`
text-decoration: none;
color: inherit;
outline: none;
`,[(0,c.c)("&::before",`
content: "";
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
`)]),(0,c.cB)("dropdown-option-body",`
display: flex;
cursor: pointer;
position: relative;
height: var(--n-option-height);
line-height: var(--n-option-height);
font-size: var(--n-font-size);
color: var(--n-option-text-color);
transition: color .3s var(--n-bezier);
`,[(0,c.c)("&::before",`
content: "";
position: absolute;
top: 0;
bottom: 0;
left: 4px;
right: 4px;
transition: background-color .3s var(--n-bezier);
border-radius: var(--n-border-radius);
`),(0,c.u4)("disabled",[(0,c.cM)("pending",`
color: var(--n-option-text-color-hover);
`,[(0,c.cE)("prefix, suffix",`
color: var(--n-option-text-color-hover);
`),(0,c.c)("&::before","background-color: var(--n-option-color-hover);")]),(0,c.cM)("active",`
color: var(--n-option-text-color-active);
`,[(0,c.cE)("prefix, suffix",`
color: var(--n-option-text-color-active);
`),(0,c.c)("&::before","background-color: var(--n-option-color-active);")]),(0,c.cM)("child-active",`
color: var(--n-option-text-color-child-active);
`,[(0,c.cE)("prefix, suffix",`
color: var(--n-option-text-color-child-active);
`)])]),(0,c.cM)("disabled",`
cursor: not-allowed;
opacity: var(--n-option-opacity-disabled);
`),(0,c.cM)("group",`
font-size: calc(var(--n-font-size) - 1px);
color: var(--n-group-header-text-color);
`,[(0,c.cE)("prefix",`
width: calc(var(--n-option-prefix-width) / 2);
`,[(0,c.cM)("show-icon",`
width: calc(var(--n-option-icon-prefix-width) / 2);
`)])]),(0,c.cE)("prefix",`
width: var(--n-option-prefix-width);
display: flex;
justify-content: center;
align-items: center;
color: var(--n-prefix-color);
transition: color .3s var(--n-bezier);
z-index: 1;
`,[(0,c.cM)("show-icon",`
width: var(--n-option-icon-prefix-width);
`),(0,c.cB)("icon",`
font-size: var(--n-option-icon-size);
`)]),(0,c.cE)("label",`
white-space: nowrap;
flex: 1;
z-index: 1;
`),(0,c.cE)("suffix",`
box-sizing: border-box;
flex-grow: 0;
flex-shrink: 0;
display: flex;
justify-content: flex-end;
align-items: center;
min-width: var(--n-option-suffix-width);
padding: 0 8px;
transition: color .3s var(--n-bezier);
color: var(--n-suffix-color);
z-index: 1;
`,[(0,c.cM)("has-submenu",`
width: var(--n-option-icon-suffix-width);
`),(0,c.cB)("icon",`
font-size: var(--n-option-icon-size);
`)]),(0,c.cB)("dropdown-menu","pointer-events: all;")]),(0,c.cB)("dropdown-offset-container",`
pointer-events: none;
position: absolute;
left: 0;
right: 0;
top: -4px;
bottom: -4px;
`)]),(0,c.cB)("dropdown-divider",`
transition: background-color .3s var(--n-bezier);
background-color: var(--n-divider-color);
height: 1px;
margin: 4px 0;
`),(0,c.cB)("dropdown-menu-wrapper",`
transform-origin: var(--v-transform-origin);
width: fit-content;
`),(0,c.c)(">",[(0,c.cB)("scrollbar",`
height: inherit;
max-height: inherit;
`)]),(0,c.u4)("scrollable",`
padding: var(--n-padding);
`),(0,c.cM)("scrollable",[(0,c.cE)("content",`
padding: var(--n-padding);
`)])]),J=Object.keys(f.Kd),K=Object.assign(Object.assign(Object.assign({},f.Kd),{animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:{type:String,default:"medium"},inverted:Boolean,placement:{type:String,default:"bottom"},onSelect:[Function,Array],options:{type:Array,default:()=>[]},menuProps:Function,showArrow:Boolean,renderLabel:Function,renderIcon:Function,renderOption:Function,nodeProps:Function,labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},value:[String,Number]}),a.Z.props),q=(0,d.aZ)({name:"Dropdown",inheritAttrs:!1,props:K,setup(e){let o=(0,d.iH)(!1),n=(0,r.Z)((0,d.Vh)(e,"show"),o),h=(0,d.Fl)(()=>{let{keyField:o,childrenField:n}=e;return(0,t.J)(e.options,{getKey:e=>e[o],getDisabled:e=>!0===e.disabled,getIgnored:e=>"divider"===e.type||"render"===e.type,getChildren:e=>e[n]})}),v=(0,d.Fl)(()=>h.value.treeNodes),f=(0,d.iH)(null),w=(0,d.iH)(null),m=(0,d.iH)(null),g=(0,d.Fl)(()=>{var e,o,n;return null!=(n=null!=(o=null!=(e=f.value)?e:w.value)?o:m.value)?n:null}),x=(0,d.Fl)(()=>h.value.getPath(g.value).keyPath),k=(0,d.Fl)(()=>h.value.getPath(e.value).keyPath),S=(0,i.Z)(()=>e.keyboard&&n.value);(0,l.Z)({keydown:{ArrowUp:{prevent:!0,handler:function(){T("up")}},ArrowRight:{prevent:!0,handler:function(){T("right")}},ArrowDown:{prevent:!0,handler:function(){T("down")}},ArrowLeft:{prevent:!0,handler:function(){T("left")}},Enter:{prevent:!0,handler:function(){let e=$();(null==e?void 0:e.isLeaf)&&n.value&&(O(e.key,e.rawNode),F(!1))}},Escape:function(){F(!1)}}},S);let{mergedClsPrefixRef:N,inlineThemeDisabled:P}=(0,s.ZP)(e),C=(0,a.Z)("Dropdown","-dropdown",L,b.Z,e,N);function O(o,n){let{onSelect:t}=e;t&&(0,p.R)(t,o,n)}function F(n){let{"onUpdate:show":t,onUpdateShow:r}=e;t&&(0,p.R)(t,n),r&&(0,p.R)(r,n),o.value=n}function Z(){f.value=null,w.value=null,m.value=null}function $(){var e;let{value:o}=h,{value:n}=g;return o&&null!==n&&null!=(e=o.getNode(n))?e:null}function T(e){let{value:o}=g,{value:{getFirstAvailableNode:n}}=h,t=null;if(null===o){let e=n();null!==e&&(t=e.key)}else{let o=$();if(o){let n;switch(e){case"down":n=o.getNext();break;case"up":n=o.getPrev();break;case"right":n=o.getChild();break;case"left":n=o.getParent()}n&&(t=n.key)}}null!==t&&(f.value=null,w.value=t)}(0,d.JJ)(y,{labelFieldRef:(0,d.Vh)(e,"labelField"),childrenFieldRef:(0,d.Vh)(e,"childrenField"),renderLabelRef:(0,d.Vh)(e,"renderLabel"),renderIconRef:(0,d.Vh)(e,"renderIcon"),hoverKeyRef:f,keyboardKeyRef:w,lastToggledSubmenuKeyRef:m,pendingKeyPathRef:x,activeKeyPathRef:k,animatedRef:(0,d.Vh)(e,"animated"),mergedShowRef:n,nodePropsRef:(0,d.Vh)(e,"nodeProps"),renderOptionRef:(0,d.Vh)(e,"renderOption"),menuPropsRef:(0,d.Vh)(e,"menuProps"),doSelect:O,doUpdateShow:F}),(0,d.YP)(n,o=>{e.animated||o||Z()});let A=(0,d.Fl)(()=>{let{size:o,inverted:n}=e,{common:{cubicBezierEaseInOut:t},self:r}=C.value,{padding:i,dividerColor:l,borderRadius:d,optionOpacityDisabled:a,[(0,c.Tl)("optionIconSuffixWidth",o)]:s,[(0,c.Tl)("optionSuffixWidth",o)]:u,[(0,c.Tl)("optionIconPrefixWidth",o)]:p,[(0,c.Tl)("optionPrefixWidth",o)]:h,[(0,c.Tl)("fontSize",o)]:v,[(0,c.Tl)("optionHeight",o)]:f,[(0,c.Tl)("optionIconSize",o)]:b}=r,w={"--n-bezier":t,"--n-font-size":v,"--n-padding":i,"--n-border-radius":d,"--n-option-height":f,"--n-option-prefix-width":h,"--n-option-icon-prefix-width":p,"--n-option-suffix-width":u,"--n-option-icon-suffix-width":s,"--n-option-icon-size":b,"--n-divider-color":l,"--n-option-opacity-disabled":a};return n?(w["--n-color"]=r.colorInverted,w["--n-option-color-hover"]=r.optionColorHoverInverted,w["--n-option-color-active"]=r.optionColorActiveInverted,w["--n-option-text-color"]=r.optionTextColorInverted,w["--n-option-text-color-hover"]=r.optionTextColorHoverInverted,w["--n-option-text-color-active"]=r.optionTextColorActiveInverted,w["--n-option-text-color-child-active"]=r.optionTextColorChildActiveInverted,w["--n-prefix-color"]=r.prefixColorInverted,w["--n-suffix-color"]=r.suffixColorInverted,w["--n-group-header-text-color"]=r.groupHeaderTextColorInverted):(w["--n-color"]=r.color,w["--n-option-color-hover"]=r.optionColorHover,w["--n-option-color-active"]=r.optionColorActive,w["--n-option-text-color"]=r.optionTextColor,w["--n-option-text-color-hover"]=r.optionTextColorHover,w["--n-option-text-color-active"]=r.optionTextColorActive,w["--n-option-text-color-child-active"]=r.optionTextColorChildActive,w["--n-prefix-color"]=r.prefixColor,w["--n-suffix-color"]=r.suffixColor,w["--n-group-header-text-color"]=r.groupHeaderTextColor),w}),j=P?(0,u.F)("dropdown",(0,d.Fl)(()=>`${e.size[0]}${e.inverted?"i":""}`),A,e):void 0;return{mergedClsPrefix:N,mergedTheme:C,tmNodes:v,mergedShow:n,handleAfterLeave:()=>{e.animated&&Z()},doUpdateShow:F,cssVars:P?void 0:A,themeClass:null==j?void 0:j.themeClass,onRender:null==j?void 0:j.onRender}},render(){let{mergedTheme:e}=this,o={show:this.mergedShow,theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:(e,o,n,t,r)=>{var i;let{mergedClsPrefix:l,menuProps:a}=this;null==(i=this.onRender)||i.call(this);let s=(null==a?void 0:a(void 0,this.tmNodes.map(e=>e.rawNode)))||{},u={ref:(0,h.S)(o),class:[e,`${l}-dropdown`,this.themeClass],clsPrefix:l,tmNodes:this.tmNodes,style:[...n,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:t,onMouseleave:r};return(0,d.h)(H,(0,d.dG)(this.$attrs,u,s))},onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return(0,d.h)(f.ZP,Object.assign({},(0,v.C)(this.$props,J),o),{trigger:()=>{var e,o;return null==(o=(e=this.$slots).default)?void 0:o.call(e)}})}})},50144:function(e,o,n){n.d(o,{Z:()=>s});var t=n(58786),r=n(56946),i=n(54470),l=n(49942),d=n(44108);let a=Object.assign(Object.assign({},l.Kd),r.Z.props),s=(0,t.aZ)({name:"Tooltip",props:a,slots:Object,__popover__:!0,setup(e){let{mergedClsPrefixRef:o}=(0,i.ZP)(e),n=(0,r.Z)("Tooltip","-tooltip",void 0,d.Z,e,o),l=(0,t.iH)(null);return Object.assign(Object.assign({},{syncPosition(){l.value.syncPosition()},setShow(e){l.value.setShow(e)}}),{popoverRef:l,mergedTheme:n,popoverThemeOverrides:(0,t.Fl)(()=>n.value.self)})},render(){let{mergedTheme:e,internalExtraClass:o}=this;return(0,t.h)(l.ZP,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:o.concat("tooltip"),ref:"popoverRef"}),this.$slots)}})}}]);