owncast/static/web/_next/static/chunks/9614.868f79d598846ddd.js
2023-04-24 18:02:42 +00:00

1 line
No EOL
9.9 KiB
JavaScript
Vendored

(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9614],{26303:function(e,t,a){"use strict";a.d(t,{Z:function(){return y}});var n=a(4942),l=a(87462),c=a(71002),r=a(94184),s=a.n(r),i=a(67294),o=a(53124),m=a(98423),d=function(e){var t,a,c=e.prefixCls,r=e.className,o=e.style,m=e.size,d=e.shape,u=s()((t={},(0,n.Z)(t,"".concat(c,"-lg"),"large"===m),(0,n.Z)(t,"".concat(c,"-sm"),"small"===m),t)),f=s()((a={},(0,n.Z)(a,"".concat(c,"-circle"),"circle"===d),(0,n.Z)(a,"".concat(c,"-square"),"square"===d),(0,n.Z)(a,"".concat(c,"-round"),"round"===d),a)),v=i.useMemo(function(){return"number"==typeof m?{width:m,height:m,lineHeight:"".concat(m,"px")}:{}},[m]);return i.createElement("span",{className:s()(c,u,f,r),style:(0,l.Z)((0,l.Z)({},v),o)})},u=a(1413),f={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},v=a(42135),p=function(e,t){return i.createElement(v.Z,(0,u.Z)((0,u.Z)({},e),{},{ref:t,icon:f}))};p.displayName="DotChartOutlined";var h=i.forwardRef(p),x=a(74902),Z=function(e){var t=function(t){var a=e.width,n=e.rows;return Array.isArray(a)?a[t]:(void 0===n?2:n)-1===t?a:void 0},a=e.prefixCls,n=e.className,l=e.style,c=e.rows,r=(0,x.Z)(Array(c)).map(function(e,a){return i.createElement("li",{key:a,style:{width:t(a)}})});return i.createElement("ul",{className:s()(a,n),style:l},r)},N=function(e){var t=e.prefixCls,a=e.className,n=e.width,c=e.style;return i.createElement("h3",{className:s()(t,a),style:(0,l.Z)({width:n},c)})};function g(e){return e&&"object"===(0,c.Z)(e)?e:{}}var C=function(e){var t=e.prefixCls,a=e.loading,c=e.className,r=e.style,m=e.children,u=e.avatar,f=void 0!==u&&u,v=e.title,p=void 0===v||v,h=e.paragraph,x=void 0===h||h,C=e.active,y=e.round,E=i.useContext(o.E_),w=E.getPrefixCls,b=E.direction,z=w("skeleton",t);if(a||!("loading"in e)){var k=!!f,_=!!p,j=!!x;if(k){var O=(0,l.Z)((0,l.Z)({prefixCls:"".concat(z,"-avatar")},_&&!j?{size:"large",shape:"square"}:{size:"large",shape:"circle"}),g(f));q=i.createElement("div",{className:"".concat(z,"-header")},i.createElement(d,(0,l.Z)({},O)))}if(_||j){if(_){var P,q,M,S,A,I=(0,l.Z)((0,l.Z)({prefixCls:"".concat(z,"-title")},!k&&j?{width:"38%"}:k&&j?{width:"50%"}:{}),g(p));S=i.createElement(N,(0,l.Z)({},I))}if(j){var B,H=(0,l.Z)((0,l.Z)({prefixCls:"".concat(z,"-paragraph")},(B={},k&&_||(B.width="61%"),!k&&_?B.rows=3:B.rows=2,B)),g(x));A=i.createElement(Z,(0,l.Z)({},H))}M=i.createElement("div",{className:"".concat(z,"-content")},S,A)}var T=s()(z,(P={},(0,n.Z)(P,"".concat(z,"-with-avatar"),k),(0,n.Z)(P,"".concat(z,"-active"),C),(0,n.Z)(P,"".concat(z,"-rtl"),"rtl"===b),(0,n.Z)(P,"".concat(z,"-round"),y),P),c);return i.createElement("div",{className:T,style:r},q,M)}return void 0!==m?m:null};C.Button=function(e){var t,a=e.prefixCls,c=e.className,r=e.active,u=e.block,f=e.size,v=(0,i.useContext(o.E_).getPrefixCls)("skeleton",a),p=(0,m.Z)(e,["prefixCls"]),h=s()(v,"".concat(v,"-element"),(t={},(0,n.Z)(t,"".concat(v,"-active"),r),(0,n.Z)(t,"".concat(v,"-block"),void 0!==u&&u),t),c);return i.createElement("div",{className:h},i.createElement(d,(0,l.Z)({prefixCls:"".concat(v,"-button"),size:void 0===f?"default":f},p)))},C.Avatar=function(e){var t=e.prefixCls,a=e.className,c=e.active,r=e.shape,u=e.size,f=(0,i.useContext(o.E_).getPrefixCls)("skeleton",t),v=(0,m.Z)(e,["prefixCls","className"]),p=s()(f,"".concat(f,"-element"),(0,n.Z)({},"".concat(f,"-active"),c),a);return i.createElement("div",{className:p},i.createElement(d,(0,l.Z)({prefixCls:"".concat(f,"-avatar"),shape:void 0===r?"circle":r,size:void 0===u?"default":u},v)))},C.Input=function(e){var t,a=e.prefixCls,c=e.className,r=e.active,u=e.block,f=e.size,v=(0,i.useContext(o.E_).getPrefixCls)("skeleton",a),p=(0,m.Z)(e,["prefixCls"]),h=s()(v,"".concat(v,"-element"),(t={},(0,n.Z)(t,"".concat(v,"-active"),r),(0,n.Z)(t,"".concat(v,"-block"),u),t),c);return i.createElement("div",{className:h},i.createElement(d,(0,l.Z)({prefixCls:"".concat(v,"-input"),size:void 0===f?"default":f},p)))},C.Image=function(e){var t=e.prefixCls,a=e.className,l=e.style,c=e.active,r=(0,i.useContext(o.E_).getPrefixCls)("skeleton",t),m=s()(r,"".concat(r,"-element"),(0,n.Z)({},"".concat(r,"-active"),c),a);return i.createElement("div",{className:m},i.createElement("div",{className:s()("".concat(r,"-image"),a),style:l},i.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(r,"-image-svg")},i.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:"".concat(r,"-image-path")}))))},C.Node=function(e){var t=e.prefixCls,a=e.className,l=e.style,c=e.active,r=e.children,m=(0,i.useContext(o.E_).getPrefixCls)("skeleton",t),d=s()(m,"".concat(m,"-element"),(0,n.Z)({},"".concat(m,"-active"),c),a),u=null!=r?r:i.createElement(h,null);return i.createElement("div",{className:d},i.createElement("div",{className:s()("".concat(m,"-image"),a),style:l},u))};var y=C},11382:function(e,t,a){"use strict";var n=a(87462),l=a(4942),c=a(97685),r=a(94184),s=a.n(r),i=a(23279),o=a.n(i),m=a(98423),d=a(67294),u=a(53124),f=a(96159),v=a(93355),p=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(a[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,n=Object.getOwnPropertySymbols(e);l<n.length;l++)0>t.indexOf(n[l])&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(a[n[l]]=e[n[l]]);return a};(0,v.b)("small","default","large");var h=null,x=function(e){var t=e.spinPrefixCls,a=e.spinning,r=void 0===a||a,i=e.delay,v=e.className,x=e.size,Z=void 0===x?"default":x,N=e.tip,g=e.wrapperClassName,C=e.style,y=e.children,E=p(e,["spinPrefixCls","spinning","delay","className","size","tip","wrapperClassName","style","children"]),w=d.useState(function(){return r&&(!r||!i||!!isNaN(Number(i)))}),b=(0,c.Z)(w,2),z=b[0],k=b[1];return d.useEffect(function(){var e=o()(function(){k(r)},i);return e(),function(){var t;null===(t=null==e?void 0:e.cancel)||void 0===t||t.call(e)}},[i,r]),d.createElement(u.C,null,function(a){var c,r,i,o=a.direction,u=s()(t,(i={},(0,l.Z)(i,"".concat(t,"-sm"),"small"===Z),(0,l.Z)(i,"".concat(t,"-lg"),"large"===Z),(0,l.Z)(i,"".concat(t,"-spinning"),z),(0,l.Z)(i,"".concat(t,"-show-text"),!!N),(0,l.Z)(i,"".concat(t,"-rtl"),"rtl"===o),i),v),p=(0,m.Z)(E,["indicator","prefixCls"]),x=d.createElement("div",(0,n.Z)({},p,{style:C,className:u,"aria-live":"polite","aria-busy":z}),(c=e.indicator,r="".concat(t,"-dot"),null===c?null:(0,f.l$)(c)?(0,f.Tm)(c,{className:s()(c.props.className,r)}):(0,f.l$)(h)?(0,f.Tm)(h,{className:s()(h.props.className,r)}):d.createElement("span",{className:s()(r,"".concat(t,"-dot-spin"))},d.createElement("i",{className:"".concat(t,"-dot-item")}),d.createElement("i",{className:"".concat(t,"-dot-item")}),d.createElement("i",{className:"".concat(t,"-dot-item")}),d.createElement("i",{className:"".concat(t,"-dot-item")}))),N?d.createElement("div",{className:"".concat(t,"-text")},N):null);if(void 0!==y){var w=s()("".concat(t,"-container"),(0,l.Z)({},"".concat(t,"-blur"),z));return d.createElement("div",(0,n.Z)({},p,{className:s()("".concat(t,"-nested-loading"),g)}),z&&d.createElement("div",{key:"loading"},x),d.createElement("div",{className:w,key:"container"},y))}return x})},Z=function(e){var t=e.prefixCls,a=(0,d.useContext(u.E_).getPrefixCls)("spin",t),l=(0,n.Z)((0,n.Z)({},e),{spinPrefixCls:a});return d.createElement(x,(0,n.Z)({},l))};Z.setDefaultIndicator=function(e){h=e},t.Z=Z},29614:function(e,t,a){"use strict";a.r(t),a.d(t,{Modal:function(){return u}});var n=a(85893),l=a(85402),c=a(26303),r=a(11382),s=a(67294),i=a(37068),o=a(69183),m=a(70051),d=a.n(m);let u=e=>{let{title:t,url:a,open:m,handleOk:u,handleCancel:f,afterClose:v,height:p,width:h,children:x}=e,[Z,N]=(0,s.useState)(!!a),g="100%",C="520px";a&&(g="70vh",C="900px");let y={padding:"0px",minHeight:p,height:null!=p?p:g},E=a&&(0,n.jsx)("iframe",{title:t,src:a,width:"100%",height:"100%",sandbox:"allow-same-origin allow-scripts allow-popups allow-forms",frameBorder:"0",allowFullScreen:!0,style:{display:"block"},onLoad:()=>N(!1)});return(0,n.jsx)(l.Z,{title:t,open:m,onOk:u,onCancel:f,afterClose:v,bodyStyle:y,width:null!=h?h:C,zIndex:999,footer:null,centered:!0,destroyOnClose:!0,className:d().modal,children:(0,n.jsx)(i.SV,{fallbackRender:e=>{let{error:t,resetErrorBoundary:a}=e;return(0,n.jsx)(o.A,{componentName:"Modal",message:t.message,retryFunction:a})},children:(0,n.jsxs)("div",{id:"modal-container",style:{height:"100%"},children:[Z&&(0,n.jsx)(c.Z,{active:Z,style:{padding:"10px"},paragraph:{rows:10}}),E&&(0,n.jsx)("div",{style:{display:Z?"none":"inline"},children:E}),x&&(0,n.jsx)("div",{className:d().content,children:x}),Z&&(0,n.jsx)(r.Z,{className:d().spinner,spinning:Z,size:"large"})]})})})};t.default=u,u.defaultProps={url:void 0,children:void 0,handleOk:void 0,handleCancel:void 0,afterClose:void 0}},70051:function(e){e.exports={spinner:"Modal_spinner__GiSS0",content:"Modal_content__h9my9",modal:"Modal_modal__i0TOf"}}}]);