Files
weiyu/deploy/server/admin/4183.7ffd113e.async.js
2025-07-03 10:41:41 +08:00

1 line
17 KiB
JavaScript

"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[4183],{89011:function(e,t,r){r.d(t,{Z:function(){return ne}});var n=r(44194),o=r(87471),i=r(58644),s=r(97413),a=r(92520),c=r(14377),l=r(51865),u=r.n(l),d=r(34573),p=r(6661),g=r(73743),f=r(7657),m=r(75101),h={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},y=function(){var e=(0,n.useRef)([]),t=(0,n.useRef)(null);return(0,n.useEffect)((function(){var r=Date.now(),n=!1;e.current.forEach((function(e){if(e){n=!0;var o=e.style;o.transitionDuration=".3s, .3s, .3s, .06s",t.current&&r-t.current<100&&(o.transitionDuration="0s, 0s")}})),n&&(t.current=Date.now())})),e.current};var b=r(51996),v=r(69578),$=r(88340),k=0,C=(0,$.Z)();var x=function(e){var t=n.useState(),r=(0,v.Z)(t,2),o=r[0],i=r[1];return n.useEffect((function(){var e;i("rc_progress_".concat((C?(e=k,k+=1):e="TEST_OR_SSR",e)))}),[]),e||o},S=function(e){var t=e.bg,r=e.children;return n.createElement("div",{style:{width:"100%",height:"100%",background:t}},r)};function w(e,t){return Object.keys(e).map((function(r){var n=parseFloat(r),o="".concat(Math.floor(n*t),"%");return"".concat(e[r]," ").concat(o)}))}var E=n.forwardRef((function(e,t){var r=e.prefixCls,o=e.color,i=e.gradientId,s=e.radius,a=e.style,c=e.ptg,l=e.strokeLinecap,u=e.strokeWidth,d=e.size,p=e.gapDegree,g=o&&"object"===(0,b.Z)(o),f=g?"#FFF":void 0,m=d/2,h=n.createElement("circle",{className:"".concat(r,"-circle-path"),r:s,cx:m,cy:m,stroke:f,strokeLinecap:l,strokeWidth:u,opacity:0===c?0:1,style:a,ref:t});if(!g)return h;var y="".concat(i,"-conic"),v=p?"".concat(180+p/2,"deg"):"0deg",$=w(o,(360-p)/360),k=w(o,1),C="conic-gradient(from ".concat(v,", ").concat($.join(", "),")"),x="linear-gradient(to ".concat(p?"bottom":"top",", ").concat(k.join(", "),")");return n.createElement(n.Fragment,null,n.createElement("mask",{id:y},h),n.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(y,")")},n.createElement(S,{bg:x},n.createElement(S,{bg:C}))))})),j=100,O=function(e,t,r,n,o,i,s,a,c,l){var u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,d=r/100*360*((360-i)/360),p=0===i?0:{bottom:0,top:180,left:90,right:-90}[s],g=(100-n)/100*t;"round"===c&&100!==n&&(g+=l/2)>=t&&(g=t-.01);var f=50;return{stroke:"string"==typeof a?a:void 0,strokeDasharray:"".concat(t,"px ").concat(e),strokeDashoffset:g+u,transform:"rotate(".concat(o+d+p,"deg)"),transformOrigin:"".concat(f,"px ").concat(f,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},I=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function W(e){var t=null!=e?e:[];return Array.isArray(t)?t:[t]}var A=function(e){var t,r,o,i=(0,f.Z)((0,f.Z)({},h),e),s=i.id,a=i.prefixCls,c=i.steps,l=i.strokeWidth,d=i.trailWidth,p=i.gapDegree,v=void 0===p?0:p,$=i.gapPosition,k=i.trailColor,C=i.strokeLinecap,S=i.style,w=i.className,A=i.strokeColor,N=i.percent,z=(0,m.Z)(i,I),P=x(s),D="".concat(P,"-gradient"),Z=50-l/2,M=2*Math.PI*Z,R=v>0?90+v/2:-90,X=M*((360-v)/360),L="object"===(0,b.Z)(c)?c:{count:c,gap:2},T=L.count,F=L.gap,B=W(N),_=W(A),H=_.find((function(e){return e&&"object"===(0,b.Z)(e)})),q=H&&"object"===(0,b.Z)(H)?"butt":C,Q=O(M,X,0,100,R,v,$,k,q,l),Y=y();return n.createElement("svg",(0,g.Z)({className:u()("".concat(a,"-circle"),w),viewBox:"0 0 ".concat(j," ").concat(j),style:S,id:s,role:"presentation"},z),!T&&n.createElement("circle",{className:"".concat(a,"-circle-trail"),r:Z,cx:50,cy:50,stroke:k,strokeLinecap:q,strokeWidth:d||l,style:Q}),T?(t=Math.round(T*(B[0]/100)),r=100/T,o=0,new Array(T).fill(null).map((function(e,i){var s=i<=t-1?_[0]:k,c=s&&"object"===(0,b.Z)(s)?"url(#".concat(D,")"):void 0,u=O(M,X,o,r,R,v,$,s,"butt",l,F);return o+=100*(X-u.strokeDashoffset+F)/X,n.createElement("circle",{key:i,className:"".concat(a,"-circle-path"),r:Z,cx:50,cy:50,stroke:c,strokeWidth:l,opacity:1,style:u,ref:function(e){Y[i]=e}})}))):function(){var e=0;return B.map((function(t,r){var o=_[r]||_[_.length-1],i=O(M,X,e,t,R,v,$,o,q,l);return e+=t,n.createElement(E,{key:r,color:o,ptg:t,radius:Z,prefixCls:a,gradientId:D,style:i,strokeLinecap:q,strokeWidth:l,gapDegree:v,ref:function(e){Y[r]=e},size:j})})).reverse()}())},N=r(17966),z=r(64970);function P(e){return!e||e<0?0:e>100?100:e}function D({success:e,successPercent:t}){let r=t;return e&&"progress"in e&&(r=e.progress),e&&"percent"in e&&(r=e.percent),r}const Z=(e,t,r)=>{var n,o,i,s;let a=-1,c=-1;if("step"===t){const t=r.steps,n=r.strokeWidth;"string"==typeof e||void 0===e?(a="small"===e?2:14,c=null!=n?n:8):"number"==typeof e?[a,c]=[e,e]:[a=14,c=8]=Array.isArray(e)?e:[e.width,e.height],a*=t}else if("line"===t){const t=null==r?void 0:r.strokeWidth;"string"==typeof e||void 0===e?c=t||("small"===e?6:8):"number"==typeof e?[a,c]=[e,e]:[a=-1,c=8]=Array.isArray(e)?e:[e.width,e.height]}else"circle"!==t&&"dashboard"!==t||("string"==typeof e||void 0===e?[a,c]="small"===e?[60,60]:[120,120]:"number"==typeof e?[a,c]=[e,e]:Array.isArray(e)&&(a=null!==(o=null!==(n=e[0])&&void 0!==n?n:e[1])&&void 0!==o?o:120,c=null!==(s=null!==(i=e[0])&&void 0!==i?i:e[1])&&void 0!==s?s:120));return[a,c]};var M=e=>{const{prefixCls:t,trailColor:r=null,strokeLinecap:o="round",gapPosition:i,gapDegree:s,width:a=120,type:c,children:l,success:d,size:p=a,steps:g}=e,[f,m]=Z(p,"circle");let{strokeWidth:h}=e;void 0===h&&(h=Math.max((e=>3/e*100)(f),6));const y={width:f,height:m,fontSize:.15*f+6},b=n.useMemo((()=>s||0===s?s:"dashboard"===c?75:void 0),[s,c]),v=(({percent:e,success:t,successPercent:r})=>{const n=P(D({success:t,successPercent:r}));return[n,P(P(e)-n)]})(e),$=i||"dashboard"===c&&"bottom"||void 0,k="[object Object]"===Object.prototype.toString.call(e.strokeColor),C=(({success:e={},strokeColor:t})=>{const{strokeColor:r}=e;return[r||z.ez.green,t||null]})({success:d,strokeColor:e.strokeColor}),x=u()(`${t}-inner`,{[`${t}-circle-gradient`]:k}),S=n.createElement(A,{steps:g,percent:g?v[1]:v,strokeWidth:h,trailWidth:h,strokeColor:g?C[1]:C,strokeLinecap:o,trailColor:r,prefixCls:t,gapDegree:b,gapPosition:$}),w=f<=20,E=n.createElement("div",{className:x,style:y},S,!w&&l);return w?n.createElement(N.Z,{title:l},E):E},R=r(2345),X=r(68397),L=r(99741),T=r(77167);const F="--progress-line-stroke-color",B="--progress-percent",_=e=>{const t=e?"100%":"-100%";return new R.E4(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},H=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},(0,X.Wf)(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${F})`]},height:"100%",width:`calc(1 / var(${B}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[r]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,R.bf)(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:_(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:_(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},q=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[r]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},Q=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},Y=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${r}`]:{fontSize:e.fontSizeSM}}}};var G=(0,L.I$)("Progress",(e=>{const t=e.calc(e.marginXXS).div(2).equal(),r=(0,T.IX)(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[H(r),q(r),Q(r),Y(r)]}),(e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:e.fontSize/e.fontSizeSM+"em"}))),J=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};const K=(e,t)=>{const{from:r=z.ez.blue,to:n=z.ez.blue,direction:o=("rtl"===t?"to left":"to right")}=e,i=J(e,["from","to","direction"]);if(0!==Object.keys(i).length){const e=`linear-gradient(${o}, ${(e=>{let t=[];return Object.keys(e).forEach((r=>{const n=parseFloat(r.replace(/%/g,""));Number.isNaN(n)||t.push({key:n,value:e[r]})})),t=t.sort(((e,t)=>e.key-t.key)),t.map((({key:e,value:t})=>`${t} ${e}%`)).join(", ")})(i)})`;return{background:e,[F]:e}}const s=`linear-gradient(${o}, ${r}, ${n})`;return{background:s,[F]:s}};var U=e=>{const{prefixCls:t,direction:r,percent:o,size:i,strokeWidth:s,strokeColor:a,strokeLinecap:c="round",children:l,trailColor:d=null,percentPosition:p,success:g}=e,{align:f,type:m}=p,h=a&&"string"!=typeof a?K(a,r):{[F]:a,background:a},y="square"===c||"butt"===c?0:void 0,b=null!=i?i:[-1,s||("small"===i?6:8)],[v,$]=Z(b,"line",{strokeWidth:s});const k={backgroundColor:d||void 0,borderRadius:y},C=Object.assign(Object.assign({width:`${P(o)}%`,height:$,borderRadius:y},h),{[B]:P(o)/100}),x=D(e),S={width:`${P(x)}%`,height:$,borderRadius:y,backgroundColor:null==g?void 0:g.strokeColor},w={width:v<0?"100%":v},E=n.createElement("div",{className:`${t}-inner`,style:k},n.createElement("div",{className:u()(`${t}-bg`,`${t}-bg-${m}`),style:C},"inner"===m&&l),void 0!==x&&n.createElement("div",{className:`${t}-success-bg`,style:S})),j="outer"===m&&"start"===f,O="outer"===m&&"end"===f;return"outer"===m&&"center"===f?n.createElement("div",{className:`${t}-layout-bottom`},E,l):n.createElement("div",{className:`${t}-outer`,style:w},j&&l,E,O&&l)};var V=e=>{const{size:t,steps:r,rounding:o=Math.round,percent:i=0,strokeWidth:s=8,strokeColor:a,trailColor:c=null,prefixCls:l,children:d}=e,p=o(r*(i/100)),g=null!=t?t:["small"===t?2:14,s],[f,m]=Z(g,"step",{steps:r,strokeWidth:s}),h=f/r,y=Array.from({length:r});for(let e=0;e<r;e++){const t=Array.isArray(a)?a[e]:a;y[e]=n.createElement("div",{key:e,className:u()(`${l}-steps-item`,{[`${l}-steps-item-active`]:e<=p-1}),style:{backgroundColor:e<=p-1?t:c,width:h,height:m}})}return n.createElement("div",{className:`${l}-steps-outer`},y,d)},ee=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};const te=["normal","exception","active","success"],re=n.forwardRef(((e,t)=>{const{prefixCls:r,className:l,rootClassName:g,steps:f,strokeColor:m,percent:h=0,size:y="default",showInfo:b=!0,type:v="line",status:$,format:k,style:C,percentPosition:x={}}=e,S=ee(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:w="end",type:E="outer"}=x,j=Array.isArray(m)?m[0]:m,O="string"==typeof m||Array.isArray(m)?m:void 0,I=n.useMemo((()=>{if(j){const e="string"==typeof j?j:Object.values(j)[0];return new o.t(e).isLight()}return!1}),[m]),W=n.useMemo((()=>{var t,r;const n=D(e);return parseInt(void 0!==n?null===(t=null!=n?n:0)||void 0===t?void 0:t.toString():null===(r=null!=h?h:0)||void 0===r?void 0:r.toString(),10)}),[h,e.success,e.successPercent]),A=n.useMemo((()=>!te.includes($)&&W>=100?"success":$||"normal"),[$,W]),{getPrefixCls:N,direction:z,progress:R}=n.useContext(p.E_),X=N("progress",r),[L,T,F]=G(X),B="line"===v,_=B&&!f,H=n.useMemo((()=>{if(!b)return null;const t=D(e);let r;const o=B&&I&&"inner"===E;return"inner"===E||k||"exception"!==A&&"success"!==A?r=(k||(e=>`${e}%`))(P(h),P(t)):"exception"===A?r=B?n.createElement(a.Z,null):n.createElement(c.Z,null):"success"===A&&(r=B?n.createElement(i.Z,null):n.createElement(s.Z,null)),n.createElement("span",{className:u()(`${X}-text`,{[`${X}-text-bright`]:o,[`${X}-text-${w}`]:_,[`${X}-text-${E}`]:_}),title:"string"==typeof r?r:void 0},r)}),[b,h,W,A,v,X,k]);let q;"line"===v?q=f?n.createElement(V,Object.assign({},e,{strokeColor:O,prefixCls:X,steps:"object"==typeof f?f.count:f}),H):n.createElement(U,Object.assign({},e,{strokeColor:j,prefixCls:X,direction:z,percentPosition:{align:w,type:E}}),H):"circle"!==v&&"dashboard"!==v||(q=n.createElement(M,Object.assign({},e,{strokeColor:j,prefixCls:X,progressStatus:A}),H));const Q=u()(X,`${X}-status-${A}`,{[`${X}-${"dashboard"===v?"circle":v}`]:"line"!==v,[`${X}-inline-circle`]:"circle"===v&&Z(y,"circle")[0]<=20,[`${X}-line`]:_,[`${X}-line-align-${w}`]:_,[`${X}-line-position-${E}`]:_,[`${X}-steps`]:f,[`${X}-show-info`]:b,[`${X}-${y}`]:"string"==typeof y,[`${X}-rtl`]:"rtl"===z},null==R?void 0:R.className,l,g,T,F);return L(n.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},null==R?void 0:R.style),C),className:Q,role:"progressbar","aria-valuenow":W,"aria-valuemin":0,"aria-valuemax":100},(0,d.Z)(S,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),q))}));var ne=re},50162:function(e,t,r){r.d(t,{Z:function(){return o}});var n=r(2977);function o(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=(0,n.Z)(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){c=!0,s=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw s}}}}}}]);