Files
owncast/static/web/_next/static/chunks/653-de5273ee0428bcdc.js
2024-02-07 19:05:09 +00:00

1 line
11 KiB
JavaScript
Vendored

"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[653],{72611:function(e,t,r){r.d(t,{Z:function(){return i}});var o=r(1413),n=r(67294),c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},a=r(32206),s=function(e,t){return n.createElement(a.Z,(0,o.Z)((0,o.Z)({},e),{},{ref:t,icon:c}))};s.displayName="DownloadOutlined";var i=n.forwardRef(s)},47066:function(e,t,r){r.d(t,{Z:function(){return N}});var o=r(4942),n=r(87462),c=r(30198),a=r(66192),s=r(46079),i=r(96494),l=r(93967),u=r.n(l),d=r(55548),p=r(67294),f=r(71946),v=r(3957),h=r(4728),k=r(34744);function m(e){return!e||e<0?0:e>100?100:e}function y(e){var t=e.success,r=e.successPercent;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}var g=function(e){var t,r,n,c,a,s=e.prefixCls,i=e.width,l=e.strokeWidth,d=e.trailColor,f=e.strokeLinecap,v=e.gapPosition,g=e.gapDegree,C=e.type,b=e.children,E=e.success,x=i||120,Z=l||6,O="[object Object]"===Object.prototype.toString.call(e.strokeColor),w=(r=(t={success:E,strokeColor:e.strokeColor}).success,n=t.strokeColor,[(void 0===r?{}:r).strokeColor||h.presetPrimaryColors.green,n||null]),N=u()("".concat(s,"-inner"),(0,o.Z)({},"".concat(s,"-circle-gradient"),O));return p.createElement("div",{className:N,style:{width:x,height:x,fontSize:.15*x+6}},p.createElement(k.Circle,{percent:(c=e.percent,[a=m(y({success:e.success,successPercent:e.successPercent})),m(m(c)-a)]),strokeWidth:Z,trailWidth:Z,strokeColor:w,strokeLinecap:void 0===f?"round":f,trailColor:void 0===d?null:d,prefixCls:s,gapDegree:g||0===g?g:"dashboard"===C?75:void 0,gapPosition:v||"dashboard"===C&&"bottom"||void 0}),b)},C=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)0>t.indexOf(o[n])&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r},b=function(e){var t=[];return Object.keys(e).forEach(function(r){var o=parseFloat(r.replace(/%/g,""));isNaN(o)||t.push({key:o,value:e[r]})}),(t=t.sort(function(e,t){return e.key-t.key})).map(function(e){var t=e.key,r=e.value;return"".concat(r," ").concat(t,"%")}).join(", ")},E=function(e,t){var r=e.from,o=void 0===r?h.presetPrimaryColors.blue:r,n=e.to,c=void 0===n?h.presetPrimaryColors.blue:n,a=e.direction,s=void 0===a?"rtl"===t?"to left":"to right":a,i=C(e,["from","to","direction"]);if(0!==Object.keys(i).length){var l=b(i);return{backgroundImage:"linear-gradient(".concat(s,", ").concat(l,")")}}return{backgroundImage:"linear-gradient(".concat(s,", ").concat(o,", ").concat(c,")")}},x=function(e){var t=e.prefixCls,r=e.direction,o=e.percent,c=e.strokeWidth,a=e.size,s=e.strokeColor,i=e.strokeLinecap,l=void 0===i?"round":i,u=e.children,d=e.trailColor,f=e.success,v=s&&"string"!=typeof s?E(s,r):{background:s},h="square"===l||"butt"===l?0:void 0,k=(0,n.Z)({width:"".concat(m(o),"%"),height:c||("small"===a?6:8),borderRadius:h},v),g=y(e),C={width:"".concat(m(g),"%"),height:c||("small"===a?6:8),borderRadius:h,backgroundColor:null==f?void 0:f.strokeColor},b=void 0!==g?p.createElement("div",{className:"".concat(t,"-success-bg"),style:C}):null;return p.createElement(p.Fragment,null,p.createElement("div",{className:"".concat(t,"-outer")},p.createElement("div",{className:"".concat(t,"-inner"),style:{backgroundColor:(void 0===d?null:d)||void 0,borderRadius:h}},p.createElement("div",{className:"".concat(t,"-bg"),style:k}),b)),u)},Z=function(e){for(var t=e.size,r=e.steps,n=e.percent,c=e.strokeWidth,a=void 0===c?8:c,s=e.strokeColor,i=e.trailColor,l=void 0===i?null:i,d=e.prefixCls,f=e.children,v=Math.round((void 0===n?0:n)/100*r),h="small"===t?2:14,k=Array(r),m=0;m<r;m++){var y=Array.isArray(s)?s[m]:s;k[m]=p.createElement("div",{key:m,className:u()("".concat(d,"-steps-item"),(0,o.Z)({},"".concat(d,"-steps-item-active"),m<=v-1)),style:{backgroundColor:m<=v-1?y:l,width:h,height:a}})}return p.createElement("div",{className:"".concat(d,"-steps-outer")},k,f)},O=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)0>t.indexOf(o[n])&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r};(0,v.b)("line","circle","dashboard");var w=(0,v.b)("normal","exception","active","success"),N=function(e){var t,r,l,v=e.prefixCls,h=e.className,k=e.steps,C=e.strokeColor,b=e.percent,E=void 0===b?0:b,N=e.size,P=void 0===N?"default":N,W=e.showInfo,j=void 0===W||W,D=e.type,L=void 0===D?"line":D,A=O(e,["prefixCls","className","steps","strokeColor","percent","size","showInfo","type"]),S=p.useContext(f.E_),R=S.getPrefixCls,_=S.direction,I=R("progress",v),z=(t=e.status,!w.includes(t)&&parseInt(void 0!==(r=y(e))?r.toString():E.toString(),10)>=100?"success":t||"normal"),M=function(t,r){var o,n=e.format,l=y(e);if(!j)return null;var u="line"===L;return n||"exception"!==r&&"success"!==r?o=(n||function(e){return"".concat(e,"%")})(m(E),m(l)):"exception"===r?o=u?p.createElement(s.Z,null):p.createElement(i.Z,null):"success"===r&&(o=u?p.createElement(c.Z,null):p.createElement(a.Z,null)),p.createElement("span",{className:"".concat(t,"-text"),title:"string"==typeof o?o:void 0},o)}(I,z),B=Array.isArray(C)?C[0]:C,V="string"==typeof C||Array.isArray(C)?C:void 0;"line"===L?l=k?p.createElement(Z,(0,n.Z)({},e,{strokeColor:V,prefixCls:I,steps:k}),M):p.createElement(x,(0,n.Z)({},e,{strokeColor:B,prefixCls:I,direction:_}),M):("circle"===L||"dashboard"===L)&&(l=p.createElement(g,(0,n.Z)({},e,{strokeColor:B,prefixCls:I,progressStatus:z}),M));var q=u()(I,(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({},"".concat(I,"-").concat("dashboard"===L&&"circle"||k&&"steps"||L),!0),"".concat(I,"-status-").concat(z),!0),"".concat(I,"-show-info"),j),"".concat(I,"-").concat(P),P),"".concat(I,"-rtl"),"rtl"===_),h);return p.createElement("div",(0,n.Z)({},(0,d.Z)(A,["status","format","trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"]),{className:q,role:"progressbar"}),l)}},34744:function(e,t,r){r.r(t),r.d(t,{Circle:function(){return x},Line:function(){return p},default:function(){return Z}});var o=r(87462),n=r(1413),c=r(45987),a=r(67294),s=r(93967),i=r.n(s),l={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},u=function(){var e=(0,a.useRef)([]),t=(0,a.useRef)(null);return(0,a.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},d=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],p=function(e){var t=(0,n.Z)((0,n.Z)({},l),e),r=t.className,s=t.percent,p=t.prefixCls,f=t.strokeColor,v=t.strokeLinecap,h=t.strokeWidth,k=t.style,m=t.trailColor,y=t.trailWidth,g=t.transition,C=(0,c.Z)(t,d);delete C.gapPosition;var b=Array.isArray(s)?s:[s],E=Array.isArray(f)?f:[f],x=u(),Z=h/2,O=100-h/2,w="M ".concat("round"===v?Z:0,",").concat(Z,"\n L ").concat("round"===v?O:100,",").concat(Z),N="0 0 100 ".concat(h),P=0;return a.createElement("svg",(0,o.Z)({className:i()("".concat(p,"-line"),r),viewBox:N,preserveAspectRatio:"none",style:k},C),a.createElement("path",{className:"".concat(p,"-line-trail"),d:w,strokeLinecap:v,stroke:m,strokeWidth:y||h,fillOpacity:"0"}),b.map(function(e,t){var r=1;switch(v){case"round":r=1-h/100;break;case"square":r=1-h/2/100;break;default:r=1}var o={strokeDasharray:"".concat(e*r,"px, 100px"),strokeDashoffset:"-".concat(P,"px"),transition:g||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},n=E[t]||E[E.length-1];return P+=e,a.createElement("path",{key:t,className:"".concat(p,"-line-path"),d:w,strokeLinecap:v,stroke:n,strokeWidth:h,fillOpacity:"0",ref:function(e){x[t]=e},style:o})}))},f=r(71002),v=r(97685),h=r(49641),k=0,m=(0,h.Z)(),y=function(e){var t=a.useState(),r=(0,v.Z)(t,2),o=r[0],n=r[1];return a.useEffect(function(){var e;n("rc_progress_".concat((m?(e=k,k+=1):e="TEST_OR_SSR",e)))},[]),e||o},g=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function C(e){return+e.replace("%","")}function b(e){var t=null!=e?e:[];return Array.isArray(t)?t:[t]}var E=function(e,t,r,o,n,c,a,s,i,l){var u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,d=(100-o)/100*t;return"round"===i&&100!==o&&(d+=l/2)>=t&&(d=t-.01),{stroke:"string"==typeof s?s:void 0,strokeDasharray:"".concat(t,"px ").concat(e),strokeDashoffset:d+u,transform:"rotate(".concat(n+r/100*360*((360-c)/360)+(0===c?0:({bottom:0,top:180,left:90,right:-90})[a]),"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}},x=function(e){var t,r,s,d,p=(0,n.Z)((0,n.Z)({},l),e),v=p.id,h=p.prefixCls,k=p.steps,m=p.strokeWidth,x=p.trailWidth,Z=p.gapDegree,O=void 0===Z?0:Z,w=p.gapPosition,N=p.trailColor,P=p.strokeLinecap,W=p.style,j=p.className,D=p.strokeColor,L=p.percent,A=(0,c.Z)(p,g),S=y(v),R="".concat(S,"-gradient"),_=50-m/2,I=2*Math.PI*_,z=O>0?90+O/2:-90,M=(360-O)/360*I,B="object"===(0,f.Z)(k)?k:{count:k,space:2},V=B.count,q=B.space,F=E(I,M,0,100,z,O,w,N,P,m),H=b(L),T=b(D),G=T.find(function(e){return e&&"object"===(0,f.Z)(e)}),J=u();return a.createElement("svg",(0,o.Z)({className:i()("".concat(h,"-circle"),j),viewBox:"".concat(-50," ").concat(-50," ").concat(100," ").concat(100),style:W,id:v,role:"presentation"},A),G&&a.createElement("defs",null,a.createElement("linearGradient",{id:R,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(G).sort(function(e,t){return C(e)-C(t)}).map(function(e,t){return a.createElement("stop",{key:t,offset:e,stopColor:G[e]})}))),!V&&a.createElement("circle",{className:"".concat(h,"-circle-trail"),r:_,cx:0,cy:0,stroke:N,strokeLinecap:P,strokeWidth:x||m,style:F}),V?(t=Math.round(H[0]/100*V),r=100/V,s=0,Array(V).fill(null).map(function(e,o){var n=o<=t-1?T[0]:N,c=n&&"object"===(0,f.Z)(n)?"url(#".concat(R,")"):void 0,i=E(I,M,s,r,z,O,w,n,"butt",m,q);return s+=(M-i.strokeDashoffset+q)*100/M,a.createElement("circle",{key:o,className:"".concat(h,"-circle-path"),r:_,cx:0,cy:0,stroke:c,strokeWidth:m,opacity:1,style:i,ref:function(e){J[o]=e}})})):(d=0,H.map(function(e,t){var r=T[t]||T[T.length-1],o=r&&"object"===(0,f.Z)(r)?"url(#".concat(R,")"):void 0,n=E(I,M,d,e,z,O,w,r,P,m);return d+=e,a.createElement("circle",{key:t,className:"".concat(h,"-circle-path"),r:_,cx:0,cy:0,stroke:o,strokeLinecap:P,strokeWidth:m,opacity:0===e?0:1,style:n,ref:function(e){J[t]=e}})}).reverse()))},Z={Line:p,Circle:x}}}]);