test de déploiement du build depuis gitlab
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1 lines
8.9 KiB

import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{$t as n,D as r,Dt as i,Et as a,Gt as o,Jt as s,K as c,Kt as l,Nn as u,Pn as d,Qt as f,Vn as p,X as m,Yt as h,ar as g,ir as _}from"./axios-GfLWCH1-.js";import{n as v,t as y}from"./slicedToArray-YLaz90ka.js";import{n as b,t as x}from"./typeof-BUNGcdwP.js";import{i as S,r as C}from"./asyncToGenerator-DHhZBkop.js";import{l as w,u as T}from"./button-DFsG8yVP.js";import{i as E}from"./select-CAEYLMBr.js";S();var D=e(p());w(),s();var O=e(t()),k={percent:0,prefixCls:`rc-progress`,strokeColor:`#2db7f5`,strokeLinecap:`round`,strokeWidth:1,trailColor:`#D9D9D9`,trailWidth:1,gapPosition:`bottom`},A=function(){var e=(0,O.useRef)([]),t=(0,O.useRef)(null);return(0,O.useEffect)(function(){var n=Date.now(),r=!1;e.current.forEach(function(e){if(e){r=!0;var i=e.style;i.transitionDuration=`.3s, .3s, .3s, .06s`,t.current&&n-t.current<100&&(i.transitionDuration=`0s, 0s`)}}),r&&(t.current=Date.now())}),e.current};b(),v(),l();var j=0,M=o();function N(){var e;return M?(e=j,j+=1):e=`TEST_OR_SSR`,e}var P=(function(e){var t=y(O.useState(),2),n=t[0],r=t[1];return O.useEffect(function(){r(`rc_progress_${N()}`)},[]),e||n});g(),d(),n();var F=[`id`,`prefixCls`,`steps`,`strokeWidth`,`trailWidth`,`gapDegree`,`gapPosition`,`trailColor`,`strokeLinecap`,`style`,`className`,`strokeColor`,`percent`];function I(e){return+e.replace(`%`,``)}function L(e){var t=e??[];return Array.isArray(t)?t:[t]}var R=100,z=function(e,t,n,r,i,a,o,s,c,l){var u=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,d=n/100*360*((360-a)/360),f=a===0?0:{bottom:0,top:180,left:90,right:-90}[o],p=(100-r)/100*t;return c===`round`&&r!==100&&(p+=l/2,p>=t&&(p=t-.01)),{stroke:typeof s==`string`?s:void 0,strokeDasharray:`${t}px ${e}`,strokeDashoffset:p+u,transform:`rotate(${i+d+f}deg)`,transformOrigin:`0 0`,transition:`stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s`,fillOpacity:0}},B=function(e){var t=u(u({},k),e),n=t.id,r=t.prefixCls,i=t.steps,a=t.strokeWidth,o=t.trailWidth,s=t.gapDegree,c=s===void 0?0:s,l=t.gapPosition,d=t.trailColor,p=t.strokeLinecap,m=t.style,h=t.className,g=t.strokeColor,v=t.percent,y=f(t,F),b=`${P(n)}-gradient`,S=R/2-a/2,C=Math.PI*2*S,w=c>0?90+c/2:-90,T=C*((360-c)/360),E=x(i)===`object`?i:{count:i,space:2},j=E.count,M=E.space,N=z(C,T,0,100,w,c,l,d,p,a),B=L(v),V=L(g),H=V.find(function(e){return e&&x(e)===`object`}),U=A();return O.createElement(`svg`,_({className:(0,D.default)(`${r}-circle`,h),viewBox:`${-R/2} ${-R/2} ${R} ${R}`,style:m,id:n,role:`presentation`},y),H&&O.createElement(`defs`,null,O.createElement(`linearGradient`,{id:b,x1:`100%`,y1:`0%`,x2:`0%`,y2:`0%`},Object.keys(H).sort(function(e,t){return I(e)-I(t)}).map(function(e,t){return O.createElement(`stop`,{key:t,offset:e,stopColor:H[e]})}))),!j&&O.createElement(`circle`,{className:`${r}-circle-trail`,r:S,cx:0,cy:0,stroke:d,strokeLinecap:p,strokeWidth:o||a,style:N}),j?function(){var e=Math.round(j*(B[0]/100)),t=100/j,n=0;return Array(j).fill(null).map(function(i,o){var s=o<=e-1?V[0]:d,u=s&&x(s)===`object`?`url(#${b})`:void 0,f=z(C,T,n,t,w,c,l,s,`butt`,a,M);return n+=(T-f.strokeDashoffset+M)*100/T,O.createElement(`circle`,{key:o,className:`${r}-circle-path`,r:S,cx:0,cy:0,stroke:u,strokeWidth:a,opacity:1,style:f,ref:function(e){U[o]=e}})})}():function(){var e=0;return B.map(function(t,n){var i=V[n]||V[V.length-1],o=i&&x(i)===`object`?`url(#${b})`:void 0,s=z(C,T,e,t,w,c,l,i,p,a);return e+=t,O.createElement(`circle`,{key:n,className:`${r}-circle-path`,r:S,cx:0,cy:0,stroke:o,strokeLinecap:p,strokeWidth:a,opacity:t===0?0:1,style:s,ref:function(e){U[n]=e}})}).reverse()}())};function V(e){return!e||e<0?0:e>100?100:e}function H(e){var t=e.success,n=e.successPercent;return t&&`progress`in t&&(n=t.progress),t&&`percent`in t&&(n=t.percent),n}function U(e){var t=e.percent,n=e.success,r=e.successPercent,i=V(H({success:n,successPercent:r}));return[i,V(V(t)-i)]}function W(e){var t=e.success,n=t===void 0?{}:t,r=e.strokeColor;return[n.strokeColor||h.green,r||null]}var G=function(e){var t=e.prefixCls,n=e.width,r=e.strokeWidth,i=e.trailColor,a=i===void 0?null:i,o=e.strokeLinecap,s=o===void 0?`round`:o,c=e.gapPosition,l=e.gapDegree,u=e.type,d=e.children,f=e.success,p=n||120,m={width:p,height:p,fontSize:p*.15+6},h=r||6,g=c||u===`dashboard`&&`bottom`||void 0,_=function(){if(l||l===0)return l;if(u===`dashboard`)return 75},v=Object.prototype.toString.call(e.strokeColor)===`[object Object]`,y=W({success:f,strokeColor:e.strokeColor}),b=(0,D.default)(`${t}-inner`,C({},`${t}-circle-gradient`,v));return O.createElement(`div`,{className:b,style:m},O.createElement(B,{percent:U(e),strokeWidth:h,trailWidth:h,strokeColor:y,strokeLinecap:s,trailColor:a,prefixCls:t,gapDegree:_(),gapPosition:g}),d)};g(),s();var K=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},q=function(e){var t=[];return Object.keys(e).forEach(function(n){var r=parseFloat(n.replace(/%/g,``));isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort(function(e,t){return e.key-t.key}),t.map(function(e){var t=e.key;return`${e.value} ${t}%`}).join(`, `)},J=function(e,t){var n=e.from,r=n===void 0?h.blue:n,i=e.to,a=i===void 0?h.blue:i,o=e.direction,s=o===void 0?t===`rtl`?`to left`:`to right`:o,c=K(e,[`from`,`to`,`direction`]);return Object.keys(c).length===0?{backgroundImage:`linear-gradient(${s}, ${r}, ${a})`}:{backgroundImage:`linear-gradient(${s}, ${q(c)})`}},Y=function(e){var t=e.prefixCls,n=e.direction,r=e.percent,i=e.strokeWidth,a=e.size,o=e.strokeColor,s=e.strokeLinecap,c=s===void 0?`round`:s,l=e.children,u=e.trailColor,d=u===void 0?null:u,f=e.success,p=o&&typeof o!=`string`?J(o,n):{background:o},m=c===`square`||c===`butt`?0:void 0,h={backgroundColor:d||void 0,borderRadius:m},g=_({width:`${V(r)}%`,height:i||(a===`small`?6:8),borderRadius:m},p),v=H(e),y={width:`${V(v)}%`,height:i||(a===`small`?6:8),borderRadius:m,backgroundColor:f?.strokeColor},b=v===void 0?null:O.createElement(`div`,{className:`${t}-success-bg`,style:y});return O.createElement(O.Fragment,null,O.createElement(`div`,{className:`${t}-outer`},O.createElement(`div`,{className:`${t}-inner`,style:h},O.createElement(`div`,{className:`${t}-bg`,style:g}),b)),l)};S();var X=function(e){for(var t=e.size,n=e.steps,r=e.percent,i=r===void 0?0:r,a=e.strokeWidth,o=a===void 0?8:a,s=e.strokeColor,c=e.trailColor,l=c===void 0?null:c,u=e.prefixCls,d=e.children,f=Math.round(i/100*n),p=t===`small`?2:14,m=Array(n),h=0;h<n;h++){var g=Array.isArray(s)?s[h]:s;m[h]=O.createElement(`div`,{key:h,className:(0,D.default)(`${u}-steps-item`,C({},`${u}-steps-item-active`,h<=f-1)),style:{backgroundColor:h<=f-1?g:l,width:p,height:o}})}return O.createElement(`div`,{className:`${u}-steps-outer`},m,d)};S(),g();var Z=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};r(`line`,`circle`,`dashboard`);var Q=r(`normal`,`exception`,`active`,`success`),$=function(e){var t=e.prefixCls,n=e.className,r=e.steps,o=e.strokeColor,s=e.percent,l=s===void 0?0:s,u=e.size,d=u===void 0?`default`:u,f=e.showInfo,p=f===void 0?!0:f,h=e.type,g=h===void 0?`line`:h,v=Z(e,[`prefixCls`,`className`,`steps`,`strokeColor`,`percent`,`size`,`showInfo`,`type`]);function y(){var t=H(e);return parseInt(t===void 0?l.toString():t.toString(),10)}function b(){var t=e.status;return!Q.includes(t)&&y()>=100?`success`:t||`normal`}function x(t,n){var r=e.format,o=H(e);if(!p)return null;var s,c=r||function(e){return`${e}%`},u=g===`line`;return r||n!==`exception`&&n!==`success`?s=c(V(l),V(o)):n===`exception`?s=u?O.createElement(a,null):O.createElement(m,null):n===`success`&&(s=u?O.createElement(i,null):O.createElement(E,null)),O.createElement(`span`,{className:`${t}-text`,title:typeof s==`string`?s:void 0},s)}var S=O.useContext(c),w=S.getPrefixCls,k=S.direction,A=w(`progress`,t),j=b(),M=x(A,j),N=Array.isArray(o)?o[0]:o,P=typeof o==`string`||Array.isArray(o)?o:void 0,F;g===`line`?F=r?O.createElement(X,_({},e,{strokeColor:P,prefixCls:A,steps:r}),M):O.createElement(Y,_({},e,{strokeColor:N,prefixCls:A,direction:k}),M):(g===`circle`||g===`dashboard`)&&(F=O.createElement(G,_({},e,{strokeColor:N,prefixCls:A,progressStatus:j}),M));var I=(0,D.default)(A,C(C(C(C(C({},`${A}-${g===`dashboard`&&`circle`||r&&`steps`||g}`,!0),`${A}-status-${j}`,!0),`${A}-show-info`,p),`${A}-${d}`,d),`${A}-rtl`,k===`rtl`),n);return O.createElement(`div`,_({},T(v,[`status`,`format`,`trailColor`,`strokeWidth`,`width`,`gapDegree`,`gapPosition`,`strokeLinecap`,`success`,`successPercent`]),{className:I,role:`progressbar`}),F)};export{$ as t};