"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("../../_util/cssinjs/Keyframes.js");require("../../_util/cssinjs/StyleContext.js");require("vue");require("../../_util/cssinjs/transformers/legacyLogicalProperties.js");const y=require("../../style/index.js");require("../../theme/internal.js");const M=require("../../theme/util/genComponentStyleHook.js"),h=require("../../theme/util/statistic.js"),b=n=>{const{componentCls:e,iconCls:o,boxShadowSecondary:d,colorBgElevated:l,colorSuccess:c,colorError:u,colorWarning:p,colorInfo:m,fontSizeLG:g,motionEaseInOutCirc:a,motionDurationSlow:i,marginXS:r,paddingXS:t,borderRadiusLG:v,zIndexPopup:$,messageNoticeContentPadding:S}=n,f=new s.default("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:t,transform:"translateY(0)",opacity:1}}),x=new s.default("MessageMoveOut",{"0%":{maxHeight:n.height,padding:t,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}});return[{[e]:{...y.resetComponent(n),position:"fixed",top:r,left:"50%",transform:"translateX(-50%)",width:"100%",pointerEvents:"none",zIndex:$,[`${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:g},[`${e}-notice-content`]:{display:"inline-block",padding:S,background:l,borderRadius:v,boxShadow:d,pointerEvents:"all"},[`${e}-success ${o}`]:{color:c},[`${e}-error ${o}`]:{color:u},[`${e}-warning ${o}`]:{color:p},[`
        ${e}-info ${o},
        ${e}-loading ${o}`]:{color:m}}},{[`${e}-notice-pure-panel`]:{padding:0,textAlign:"start"}}]},P=M.default("Message",n=>{const e=h.merge(n,{messageNoticeContentPadding:`${(n.controlHeightLG-n.fontSize*n.lineHeight)/2}px ${n.paddingSM}px`});return[b(e)]},n=>({height:150,zIndexPopup:n.zIndexPopupBase+10}));exports.default=P;
