Files
weiyu/deploy/server/admin/3628.8a4d535c.async.js

1 line
16 KiB
JavaScript
Raw Normal View History

2025-08-16 21:59:18 +08:00
"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[3628],{63628:function(e,t,r){r.d(t,{Z:function(){return oe}});var o=r(44194),n=r(87471),i=r(58644),s=r(30082),a=r(92520),c=r(14377),l=r(51865),u=r.n(l),d=r(34573),p=r(35779),g=r(77260),m=r(39328),f=r(17323),h={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},b=function(){var e=(0,o.useRef)([]),t=(0,o.useRef)(null);return(0,o.useEffect)((function(){var r=Date.now(),o=!1;e.current.forEach((function(e){if(e){o=!0;var n=e.style;n.transitionDuration=".3s, .3s, .3s, .06s",t.current&&r-t.current<100&&(n.transitionDuration="0s, 0s")}})),o&&(t.current=Date.now())})),e.current};var y=r(12952),$=r(76285),v=r(88340),k=0,C=(0,v.Z)();var x=function(e){var t=o.useState(),r=(0,$.Z)(t,2),n=r[0],i=r[1];return o.useEffect((function(){var e;i("rc_progress_".concat((C?(e=k,k+=1):e="TEST_OR_SSR",e)))}),[]),e||n},S=function(e){var t=e.bg,r=e.children;return o.createElement("div",{style:{width:"100%",height:"100%",background:t}},r)};function w(e,t){return Object.keys(e).map((function(r){var o=parseFloat(r),n="".concat(Math.floor(o*t),"%");return"".concat(e[r]," ").concat(n)}))}var E=o.forwardRef((function(e,t){var r=e.prefixCls,n=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=n&&"object"===(0,y.Z)(n),m=g?"#FFF":void 0,f=d/2,h=o.createElement("circle",{className:"".concat(r,"-circle-path"),r:s,cx:f,cy:f,stroke:m,strokeLinecap:l,strokeWidth:u,opacity:0===c?0:1,style:a,ref:t});if(!g)return h;var b="".concat(i,"-conic"),$=p?"".concat(180+p/2,"deg"):"0deg",v=w(n,(360-p)/360),k=w(n,1),C="conic-gradient(from ".concat($,", ").concat(v.join(", "),")"),x="linear-gradient(to ".concat(p?"bottom":"top",", ").concat(k.join(", "),")");return o.createElement(o.Fragment,null,o.createElement("mask",{id:b},h),o.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(b,")")},o.createElement(S,{bg:x},o.createElement(S,{bg:C}))))})),O=100,j=function(e,t,r,o,n,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-o)/100*t;"round"===c&&100!==o&&(g+=l/2)>=t&&(g=t-.01);var m=50;return{stroke:"string"==typeof a?a:void 0,strokeDasharray:"".concat(t,"px ").concat(e),strokeDashoffset:g+u,transform:"rotate(".concat(n+d+p,"deg)"),transformOrigin:"".concat(m,"px ").concat(m,"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 N=function(e){var t,r,n,i=(0,m.Z)((0,m.Z)({},h),e),s=i.id,a=i.prefixCls,c=i.steps,l=i.strokeWidth,d=i.trailWidth,p=i.gapDegree,$=void 0===p?0:p,v=i.gapPosition,k=i.trailColor,C=i.strokeLinecap,S=i.style,w=i.className,N=i.strokeColor,z=i.percent,P=(0,f.Z)(i,I),A=x(s),D="".concat(A,"-gradient"),M=50-l/2,R=2*Math.PI*M,Z=$>0?90+$/2:-90,X=R*((360-$)/360),L="object"===(0,y.Z)(c)?c:{count:c,gap:2},F=L.count,T=L.gap,B=W(z),_=W(N),H=_.find((function(e){return e&&"object"===(0,y.Z)(e)})),q=H&&"object"===(0,y.Z)(H)?"butt":C,Q=j(R,X,0,100,Z,$,v,k,q,l),Y=b();return o.createElement("svg",(0,g.Z)({className:u()("".concat(a,"-circle"),w),viewBox:"0 0 ".concat(O," ").concat(O),style:S,id:s,role:"presentation"},P),!F&&o.createElement("circle",{className:"".concat(a,"-circle-trail"),r:M,cx:50,cy:50,stroke:k,strokeLinecap:q,strokeWidth:d||l,style:Q}),F?(t=Math.round(F*(B[0]/100)),r=100/F,n=0,new Array(F).fill(null).map((function(e,i){var s=i<=t-1?_[0]:k,c=s&&"object"===(0,y.Z)(s)?"url(#".concat(D,")"):void 0,u=j(R,X,n,r,Z,$,v,s,"butt",l,T);return n+=100*(X-u.strokeDashoffset+T)/X,o.createElement("circle",{key:i,className:"".concat(a,"-circle-path"),r:M,cx:50,cy:50,stroke:c,strokeWidth:l,opacity:1,styl