import{i as ce,m as pe,bt as ue,aF as me,l as ge,n as oe,k as S,bu as be,bv as ve,r,h as re,aH as $e,b8 as fe,x as we,c as B,u as Ce,bb as ye,bw as he,aI as Se,z as xe,bx as Pe,bn as Oe,by as Ie,bz as Re,S as ze,O as ne}from"./main-fine-mails-rush.js";import{a as Ee,R as Ne}from"./LeftOutlined-3l8Lt2m6.js";import{D as De}from"./Dropdown-4_vtvAKA.js";import{M as je,O as Te}from"./index-ZMheZKQZ.js";import{i as te}from"./move-DlKUsITS.js";import{s as He,a as Be,b as Me,c as Ae,i as ie,R as Le}from"./EllipsisOutlined-Bu1rzp5h.js";const _e=e=>typeof e!="object"&&typeof e!="function"||e===null,Xe=e=>{const{componentCls:t,menuCls:o,colorError:i,colorTextLightSolid:l}=e,s=`${o}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${o} ${s}`]:{[`&${s}-danger:not(${s}-disabled)`]:{color:i,"&:hover":{color:l,backgroundColor:i}}}}}},Ve=e=>{const{componentCls:t,menuCls:o,zIndexPopup:i,dropdownArrowDistance:l,sizePopupArrow:s,antCls:n,iconCls:c,motionDurationMid:v,paddingBlock:C,fontSize:y,dropdownEdgeChildPadding:x,colorTextDisabled:f,fontSizeIcon:u,controlPaddingHorizontal:b,colorBgElevated:d}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:i,display:"block","&::before":{position:"absolute",insetBlock:e.calc(s).div(2).sub(l).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${n}-btn`]:{[`& > ${c}-down, & > ${n}-btn-icon > ${c}-down`]:{fontSize:u}},[`${t}-wrap`]:{position:"relative",[`${n}-btn > ${c}-down`]:{fontSize:u},[`${c}-down::before`]:{transition:`transform ${v}`}},[`${t}-wrap-open`]:{[`${c}-down::before`]:{transform:"rotate(180deg)"}},"\n        &-hidden,\n        &-menu-hidden,\n        &-menu-submenu-hidden\n      ":{display:"none"},[`&${n}-slide-down-enter${n}-slide-down-enter-active${t}-placement-bottomLeft,
          &${n}-slide-down-appear${n}-slide-down-appear-active${t}-placement-bottomLeft,
          &${n}-slide-down-enter${n}-slide-down-enter-active${t}-placement-bottom,
          &${n}-slide-down-appear${n}-slide-down-appear-active${t}-placement-bottom,
          &${n}-slide-down-enter${n}-slide-down-enter-active${t}-placement-bottomRight,
          &${n}-slide-down-appear${n}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Ae},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-placement-topLeft,
          &${n}-slide-up-appear${n}-slide-up-appear-active${t}-placement-topLeft,
          &${n}-slide-up-enter${n}-slide-up-enter-active${t}-placement-top,
          &${n}-slide-up-appear${n}-slide-up-appear-active${t}-placement-top,
          &${n}-slide-up-enter${n}-slide-up-enter-active${t}-placement-topRight,
          &${n}-slide-up-appear${n}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Me},[`&${n}-slide-down-leave${n}-slide-down-leave-active${t}-placement-bottomLeft,
          &${n}-slide-down-leave${n}-slide-down-leave-active${t}-placement-bottom,
          &${n}-slide-down-leave${n}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Be},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-placement-topLeft,
          &${n}-slide-up-leave${n}-slide-up-leave-active${t}-placement-top,
          &${n}-slide-up-leave${n}-slide-up-leave-active${t}-placement-topRight`]:{animationName:He}}},ue(e,d,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${o}`]:{position:"relative",margin:0},[`${o}-submenu-popup`]:{position:"absolute",zIndex:i,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},ge(e)),{[o]:Object.assign(Object.assign({padding:x,listStyleType:"none",backgroundColor:d,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},oe(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${o}-item-group-title`]:{padding:`${S(C)} ${S(b)}`,color:e.colorTextDescription,transition:`all ${v}`},[`${o}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${o}-item-icon`]:{minWidth:y,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${o}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${v}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${o}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${o}-item, ${o}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${S(C)} ${S(b)}`,color:e.colorText,fontWeight:"normal",fontSize:y,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${v}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},oe(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:"not-allowed","&:hover":{color:f,backgroundColor:d,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${S(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:u,fontStyle:"normal"}}}),[`${o}-item-group-list`]:{margin:`0 ${S(e.marginXS)}`,padding:0,listStyle:"none"},[`${o}-submenu-title`]:{paddingInlineEnd:e.calc(b).add(e.fontSizeSM).equal()},[`${o}-submenu-vertical`]:{position:"relative"},[`${o}-submenu${o}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:d,cursor:"not-allowed"}},[`${o}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[ie(e,"slide-up"),ie(e,"slide-down"),te(e,"move-up"),te(e,"move-down"),me(e,"zoom-big")]]},We=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},be({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),ve(e)),Fe=ce("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:o,paddingXXS:i,componentCls:l}=e,s=pe(e,{menuCls:`${l}-menu`,dropdownArrowDistance:e.calc(o).div(2).add(t).equal(),dropdownEdgeChildPadding:i});return[Ve(s),Xe(s)]},We,{resetStyle:!1}),M=e=>{var t;const{menu:o,arrow:i,prefixCls:l,children:s,trigger:n,disabled:c,dropdownRender:v,popupRender:C,getPopupContainer:y,overlayClassName:x,rootClassName:f,overlayStyle:u,open:b,onOpenChange:d,visible:A,onVisibleChange:P,mouseEnterDelay:L=.15,mouseLeaveDelay:_=.1,autoAdjustOverflow:X=!0,placement:m="",overlay:O,transitionName:I,destroyOnHidden:R,destroyPopupOnHide:V}=e,{getPopupContainer:W,getPrefixCls:z,direction:w,dropdown:$}=r.useContext(re),N=C||v;Oe();const F=r.useMemo(()=>{const a=z();return I!==void 0?I:m.includes("top")?`${a}-slide-down`:`${a}-slide-up`},[z,m,I]),U=r.useMemo(()=>m?m.includes("Center")?m.slice(0,m.indexOf("Center")):m:w==="rtl"?"bottomRight":"bottomLeft",[m,w]),p=z("dropdown",l),E=$e(p),[q,D,j]=Fe(p,E),[,T]=fe(),g=r.Children.only(_e(s)?r.createElement("span",null,s):s),Z=we(g,{className:B(`${p}-trigger`,{[`${p}-rtl`]:w==="rtl"},g.props.className),disabled:(t=g.props.disabled)!==null&&t!==void 0?t:c}),h=c?[]:n,G=!!(h!=null&&h.includes("contextMenu")),[Y,H]=Ce(!1,{value:b??A}),J=ye(a=>{d==null||d(a,{source:"trigger"}),P==null||P(a),H(a)}),K=B(x,f,D,j,E,$==null?void 0:$.className,{[`${p}-rtl`]:w==="rtl"}),Q=he({arrowPointAtCenter:typeof i=="object"&&i.pointAtCenter,autoAdjustOverflow:X,offset:T.marginXXS,arrowWidth:i?T.sizePopupArrow:0,borderRadius:T.borderRadius}),le=r.useCallback(()=>{o!=null&&o.selectable&&(o!=null&&o.multiple)||(d==null||d(!1,{source:"menu"}),H(!1))},[o==null?void 0:o.selectable,o==null?void 0:o.multiple]),se=()=>{let a;return o!=null&&o.items?a=r.createElement(je,Object.assign({},o)):typeof O=="function"?a=O():a=O,N&&(a=N(a)),a=r.Children.only(typeof a=="string"?r.createElement("span",null,a):a),r.createElement(Te,{prefixCls:`${p}-menu`,rootClassName:B(j,E),expandIcon:r.createElement("span",{className:`${p}-menu-submenu-arrow`},w==="rtl"?r.createElement(Ee,{className:`${p}-menu-submenu-arrow-icon`}):r.createElement(Ne,{className:`${p}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:le,validator:({mode:Ye})=>{}},a)},[ee,de]=Se("Dropdown",u==null?void 0:u.zIndex);let k=r.createElement(De,Object.assign({alignPoint:G},xe(e,["rootClassName"]),{mouseEnterDelay:L,mouseLeaveDelay:_,visible:Y,builtinPlacements:Q,arrow:!!i,overlayClassName:K,prefixCls:p,getPopupContainer:y||W,transitionName:F,trigger:h,overlay:se,placement:U,onVisibleChange:J,overlayStyle:Object.assign(Object.assign(Object.assign({},$==null?void 0:$.style),u),{zIndex:ee}),autoDestroy:R??V}),Z);return ee&&(k=r.createElement(Pe.Provider,{value:de},k)),q(k)},Ue=Ie(M,"align",void 0,"dropdown",e=>e),qe=e=>r.createElement(Ue,Object.assign({},e),r.createElement("span",null));M._InternalPanelDoNotUseOrYouWillBeFired=qe;var Ze=function(e,t){var o={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,i=Object.getOwnPropertySymbols(e);l<i.length;l++)t.indexOf(i[l])<0&&Object.prototype.propertyIsEnumerable.call(e,i[l])&&(o[i[l]]=e[i[l]]);return o};const ae=e=>{const{getPopupContainer:t,getPrefixCls:o,direction:i}=r.useContext(re),{prefixCls:l,type:s="default",danger:n,disabled:c,loading:v,onClick:C,htmlType:y,children:x,className:f,menu:u,arrow:b,autoFocus:d,overlay:A,trigger:P,align:L,open:_,onOpenChange:X,placement:m,getPopupContainer:O,href:I,icon:R=r.createElement(Le,null),title:V,buttonsRender:W=Q=>Q,mouseEnterDelay:z,mouseLeaveDelay:w,overlayClassName:$,overlayStyle:N,destroyOnHidden:F,destroyPopupOnHide:U,dropdownRender:p,popupRender:E}=e,q=Ze(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyOnHidden","destroyPopupOnHide","dropdownRender","popupRender"]),D=o("dropdown",l),j=`${D}-button`,g={menu:u,arrow:b,autoFocus:d,align:L,disabled:c,trigger:c?[]:P,onOpenChange:X,getPopupContainer:O||t,mouseEnterDelay:z,mouseLeaveDelay:w,overlayClassName:$,overlayStyle:N,destroyOnHidden:F,popupRender:E||p},{compactSize:Z,compactItemClassnames:h}=Re(D,i),G=B(j,h,f);"destroyPopupOnHide"in e&&(g.destroyPopupOnHide=U),"overlay"in e&&(g.overlay=A),"open"in e&&(g.open=_),"placement"in e?g.placement=m:g.placement=i==="rtl"?"bottomLeft":"bottomRight";const Y=r.createElement(ne,{type:s,danger:n,disabled:c,loading:v,onClick:C,htmlType:y,href:I,title:V},x),H=r.createElement(ne,{type:s,danger:n,icon:R}),[J,K]=W([Y,H]);return r.createElement(ze.Compact,Object.assign({className:G,size:Z,block:!0},q),J,r.createElement(M,Object.assign({},g),K))};ae.__ANT_BUTTON=!0;const Ge=M;Ge.Button=ae;export{Ge as D};
