"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../../_util/cssinjs/Keyframes.js");require("../../_util/cssinjs/StyleContext.js");require("vue");require("../../_util/cssinjs/transformers/legacyLogicalProperties.js");const n=require("../../style/index.js");require("../../theme/internal.js");const t=require("../../theme/util/genComponentStyleHook.js"),s=require("../../theme/util/statistic.js"),l=new o.default("antProgressActive",{"0%":{transform:"translateX(-100%) scaleX(0)",opacity:.1},"20%":{transform:"translateX(-100%) scaleX(0)",opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}}),c=r=>{const{componentCls:i,iconCls:e}=r;return{[i]:{...n.resetComponent(r),display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:r.fontSize,marginInlineEnd:r.marginXS,marginBottom:r.marginXS},[`${i}-outer`]:{display:"inline-block",width:"100%"},[`&${i}-show-info`]:{[`${i}-outer`]:{marginInlineEnd:`calc(-2em - ${r.marginXS}px)`,paddingInlineEnd:`calc(2em + ${r.paddingXS}px)`}},[`${i}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:r.progressRemainingColor,borderRadius:r.progressLineRadius},[`${i}-inner:not(${i}-circle-gradient)`]:{[`${i}-circle-path`]:{stroke:r.colorInfo}},[`${i}-success-bg, ${i}-bg`]:{position:"relative",backgroundColor:r.colorInfo,borderRadius:r.progressLineRadius,transition:`all ${r.motionDurationSlow} ${r.motionEaseInOutCirc}`},[`${i}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:r.colorSuccess},[`${i}-text`]:{display:"inline-block",width:"2em",marginInlineStart:r.marginXS,color:r.progressInfoTextColor,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[e]:{fontSize:r.fontSize}},[`&${i}-status-active`]:{[`${i}-bg::before`]:{position:"absolute",inset:0,backgroundColor:r.colorBgContainer,borderRadius:r.progressLineRadius,opacity:0,animationName:l,animationDuration:r.progressActiveMotionDuration,animationTimingFunction:r.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${i}-status-exception`]:{[`${i}-bg`]:{backgroundColor:r.colorError},[`${i}-text`]:{color:r.colorError}},[`&${i}-status-exception ${i}-inner:not(${i}-circle-gradient)`]:{[`${i}-circle-path`]:{stroke:r.colorError}},[`&${i}-status-success`]:{[`${i}-bg`]:{backgroundColor:r.colorSuccess},[`${i}-text`]:{color:r.colorSuccess}},[`&${i}-status-success ${i}-inner:not(${i}-circle-gradient)`]:{[`${i}-circle-path`]:{stroke:r.colorSuccess}}}}},a=r=>{const{componentCls:i,iconCls:e}=r;return{[i]:{[`${i}-circle-trail`]:{stroke:r.progressRemainingColor},[`&${i}-circle ${i}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${i}-circle ${i}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:r.colorText,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[e]:{fontSize:`${r.fontSize/r.fontSizeSM}em`}},[`${i}-circle&-status-exception`]:{[`${i}-text`]:{color:r.colorError}},[`${i}-circle&-status-success`]:{[`${i}-text`]:{color:r.colorSuccess}}},[`${i}-inline-circle`]:{lineHeight:1,[`${i}-inner`]:{verticalAlign:"bottom"}}}},g=r=>{const{componentCls:i}=r;return{[i]:{[`${i}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:r.progressStepMinWidth,marginInlineEnd:r.progressStepMarginInlineEnd,backgroundColor:r.progressRemainingColor,transition:`all ${r.motionDurationSlow}`,"&-active":{backgroundColor:r.colorInfo}}}}}},u=r=>{const{componentCls:i,iconCls:e}=r;return{[i]:{[`${i}-small&-line, ${i}-small&-line ${i}-text ${e}`]:{fontSize:r.fontSizeSM}}}},p=t.default("Progress",r=>{const i=r.marginXXS/2,e=s.merge(r,{progressLineRadius:100,progressInfoTextColor:r.colorText,progressDefaultColor:r.colorInfo,progressRemainingColor:r.colorFillSecondary,progressStepMarginInlineEnd:i,progressStepMinWidth:i,progressActiveMotionDuration:"2.4s"});return[c(e),a(e),g(e),u(e)]});exports.default=p;
