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