import e from"../../_util/cssinjs/Keyframes.mjs";import{resetComponent as t}from"../../style/index.mjs";import n from"../../theme/util/genComponentStyleHook.mjs";import{merge as r}from"../../theme/util/statistic.mjs";var i=n=>{let{componentCls:r,iconCls:i,boxShadowSecondary:a,colorBgElevated:o,colorSuccess:s,colorError:c,colorWarning:l,colorInfo:u,fontSizeLG:d,motionEaseInOutCirc:f,motionDurationSlow:p,marginXS:m,paddingXS:h,borderRadiusLG:g,zIndexPopup:_,messageNoticeContentPadding:v}=n,y=new e(`MessageMoveIn`,{"0%":{padding:0,transform:`translateY(-100%)`,opacity:0},"100%":{padding:h,transform:`translateY(0)`,opacity:1}}),b=new e(`MessageMoveOut`,{"0%":{maxHeight:n.height,padding:h,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}});return[{[r]:{...t(n),position:`fixed`,top:m,left:`50%`,transform:`translateX(-50%)`,width:`100%`,pointerEvents:`none`,zIndex:_,[`${r}-move-up`]:{animationFillMode:`forwards`},[`
        ${r}-move-up-appear,
        ${r}-move-up-enter
      `]:{animationName:y,animationDuration:p,animationPlayState:`paused`,animationTimingFunction:f},[`
        ${r}-move-up-appear${r}-move-up-appear-active,
        ${r}-move-up-enter${r}-move-up-enter-active
      `]:{animationPlayState:`running`},[`${r}-move-up-leave`]:{animationName:b,animationDuration:p,animationPlayState:`paused`,animationTimingFunction:f},[`${r}-move-up-leave${r}-move-up-leave-active`]:{animationPlayState:`running`},"&-rtl":{direction:`rtl`,span:{direction:`rtl`}}}},{[`${r}-notice`]:{padding:h,textAlign:`center`,[i]:{verticalAlign:`text-bottom`,marginInlineEnd:m,fontSize:d},[`${r}-notice-content`]:{display:`inline-block`,padding:v,background:o,borderRadius:g,boxShadow:a,pointerEvents:`all`},[`${r}-success ${i}`]:{color:s},[`${r}-error ${i}`]:{color:c},[`${r}-warning ${i}`]:{color:l},[`
        ${r}-info ${i},
        ${r}-loading ${i}`]:{color:u}}},{[`${r}-notice-pure-panel`]:{padding:0,textAlign:`start`}}]},a=n(`Message`,e=>[i(r(e,{messageNoticeContentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}))],e=>({height:150,zIndexPopup:e.zIndexPopupBase+10}));export{a as default};