owncast/static/web/_next/static/chunks/7900-a9ddaa4c2db8e5fa.js
2022-09-11 04:23:08 +00:00

1 line
No EOL
8.3 KiB
JavaScript

"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7900],{94149:function(e,n,t){t.d(n,{Z:function(){return l}});var a=t(1413),r=t(67294),c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},o=t(42135),i=function(e,n){return r.createElement(o.Z,(0,a.Z)((0,a.Z)({},e),{},{ref:n,icon:c}))};i.displayName="LockOutlined";var l=r.forwardRef(i)},87547:function(e,n,t){t.d(n,{Z:function(){return l}});var a=t(1413),r=t(67294),c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},o=t(42135),i=function(e,n){return r.createElement(o.Z,(0,a.Z)((0,a.Z)({},e),{},{ref:n,icon:c}))};i.displayName="UserOutlined";var l=r.forwardRef(i)},54907:function(e,n,t){t.d(n,{Z:function(){return M}});var a=t(87462),r=t(4942),c=t(18073),o=t(94184),i=t.n(o),l=t(74902),s=t(15671),d=t(43144),u=t(60136),p=t(33643),v=t(71002),f=t(67294),m=t(96774),h=t.n(m),y=t(50344),C=t(62874),Z=t(97685),x=f.forwardRef((function(e,n){var t,a=e.prefixCls,c=e.forceRender,o=e.className,l=e.style,s=e.children,d=e.isActive,u=e.role,p=f.useState(d||c),v=(0,Z.Z)(p,2),m=v[0],h=v[1];return f.useEffect((function(){(c||d)&&h(!0)}),[c,d]),m?f.createElement("div",{ref:n,className:i()("".concat(a,"-content"),(t={},(0,r.Z)(t,"".concat(a,"-content-active"),d),(0,r.Z)(t,"".concat(a,"-content-inactive"),!d),t),o),style:l,role:u},f.createElement("div",{className:"".concat(a,"-content-box")},s)):null}));x.displayName="PanelContent";var b=x,k=function(e){(0,u.Z)(t,e);var n=(0,p.Z)(t);function t(){var e;(0,s.Z)(this,t);for(var a=arguments.length,r=new Array(a),c=0;c<a;c++)r[c]=arguments[c];return(e=n.call.apply(n,[this].concat(r))).onItemClick=function(){var n=e.props,t=n.onItemClick,a=n.panelKey;"function"===typeof t&&t(a)},e.handleKeyPress=function(n){"Enter"!==n.key&&13!==n.keyCode&&13!==n.which||e.onItemClick()},e.renderIcon=function(){var n=e.props,t=n.showArrow,a=n.expandIcon,r=n.prefixCls,c=n.collapsible;if(!t)return null;var o="function"===typeof a?a(e.props):f.createElement("i",{className:"arrow"});return o&&f.createElement("div",{className:"".concat(r,"-expand-icon"),onClick:"header"===c?e.onItemClick:null},o)},e.renderTitle=function(){var n=e.props,t=n.header,a=n.prefixCls,r=n.collapsible;return f.createElement("span",{className:"".concat(a,"-header-text"),onClick:"header"===r?e.onItemClick:null},t)},e}return(0,d.Z)(t,[{key:"shouldComponentUpdate",value:function(e){return!h()(this.props,e)}},{key:"render",value:function(){var e,n,t=this.props,c=t.className,o=t.id,l=t.style,s=t.prefixCls,d=t.headerClass,u=t.children,p=t.isActive,v=t.destroyInactivePanel,m=t.accordion,h=t.forceRender,y=t.openMotion,Z=t.extra,x=t.collapsible,k="disabled"===x,N="header"===x,I=i()((e={},(0,r.Z)(e,"".concat(s,"-item"),!0),(0,r.Z)(e,"".concat(s,"-item-active"),p),(0,r.Z)(e,"".concat(s,"-item-disabled"),k),e),c),g={className:i()("".concat(s,"-header"),(n={},(0,r.Z)(n,d,d),(0,r.Z)(n,"".concat(s,"-header-collapsible-only"),N),n)),"aria-expanded":p,"aria-disabled":k,onKeyPress:this.handleKeyPress};N||(g.onClick=this.onItemClick,g.role=m?"tab":"button",g.tabIndex=k?-1:0);var E=null!==Z&&void 0!==Z&&"boolean"!==typeof Z;return f.createElement("div",{className:I,style:l,id:o},f.createElement("div",g,this.renderIcon(),this.renderTitle(),E&&f.createElement("div",{className:"".concat(s,"-extra")},Z)),f.createElement(C.Z,(0,a.Z)({visible:p,leavedClassName:"".concat(s,"-content-hidden")},y,{forceRender:h,removeOnLeave:v}),(function(e,n){var t=e.className,a=e.style;return f.createElement(b,{ref:n,prefixCls:s,className:t,style:a,isActive:p,forceRender:h,role:m?"tabpanel":null},u)})))}}]),t}(f.Component);k.defaultProps={showArrow:!0,isActive:!1,onItemClick:function(){},headerClass:"",forceRender:!1};var N=k;function I(e){var n=e;if(!Array.isArray(n)){var t=(0,v.Z)(n);n="number"===t||"string"===t?[n]:[]}return n.map((function(e){return String(e)}))}var g=function(e){(0,u.Z)(t,e);var n=(0,p.Z)(t);function t(e){var a;(0,s.Z)(this,t),(a=n.call(this,e)).onClickItem=function(e){var n=a.state.activeKey;if(a.props.accordion)n=n[0]===e?[]:[e];else{var t=(n=(0,l.Z)(n)).indexOf(e);t>-1?n.splice(t,1):n.push(e)}a.setActiveKey(n)},a.getNewChild=function(e,n){if(!e)return null;var t=a.state.activeKey,r=a.props,c=r.prefixCls,o=r.openMotion,i=r.accordion,l=r.destroyInactivePanel,s=r.expandIcon,d=r.collapsible,u=e.key||String(n),p=e.props,v=p.header,m=p.headerClass,h=p.destroyInactivePanel,y=p.collapsible,C=null!==y&&void 0!==y?y:d,Z={key:u,panelKey:u,header:v,headerClass:m,isActive:i?t[0]===u:t.indexOf(u)>-1,prefixCls:c,destroyInactivePanel:null!==h&&void 0!==h?h:l,openMotion:o,accordion:i,children:e.props.children,onItemClick:"disabled"===C?null:a.onClickItem,expandIcon:s,collapsible:C};return"string"===typeof e.type?e:(Object.keys(Z).forEach((function(e){"undefined"===typeof Z[e]&&delete Z[e]})),f.cloneElement(e,Z))},a.getItems=function(){var e=a.props.children;return(0,y.Z)(e).map(a.getNewChild)},a.setActiveKey=function(e){"activeKey"in a.props||a.setState({activeKey:e}),a.props.onChange(a.props.accordion?e[0]:e)};var r=e.activeKey,c=e.defaultActiveKey;return"activeKey"in e&&(c=r),a.state={activeKey:I(c)},a}return(0,d.Z)(t,[{key:"shouldComponentUpdate",value:function(e,n){return!h()(this.props,e)||!h()(this.state,n)}},{key:"render",value:function(){var e,n=this.props,t=n.prefixCls,a=n.className,c=n.style,o=n.accordion,l=i()((e={},(0,r.Z)(e,t,!0),(0,r.Z)(e,a,!!a),e));return f.createElement("div",{className:l,style:c,role:o?"tablist":null},this.getItems())}}],[{key:"getDerivedStateFromProps",value:function(e){var n={};return"activeKey"in e&&(n.activeKey=I(e.activeKey)),n}}]),t}(f.Component);g.defaultProps={prefixCls:"rc-collapse",onChange:function(){},accordion:!1,destroyInactivePanel:!1},g.Panel=N;var E=g,w=(g.Panel,t(98423)),P=t(53124),K=t(33603),A=t(96159),S=function(e){var n,t=f.useContext(P.E_),o=t.getPrefixCls,l=t.direction,s=e.prefixCls,d=e.className,u=void 0===d?"":d,p=e.bordered,v=void 0===p||p,m=e.ghost,h=e.expandIconPosition,C=void 0===h?"start":h,Z=o("collapse",s),x=f.useMemo((function(){return"left"===C?"start":"right"===C?"end":C}),[C]),b=i()("".concat(Z,"-icon-position-").concat(x),(n={},(0,r.Z)(n,"".concat(Z,"-borderless"),!v),(0,r.Z)(n,"".concat(Z,"-rtl"),"rtl"===l),(0,r.Z)(n,"".concat(Z,"-ghost"),!!m),n),u),k=(0,a.Z)((0,a.Z)({},K.ZP),{motionAppear:!1,leavedClassName:"".concat(Z,"-content-hidden")});return f.createElement(E,(0,a.Z)({openMotion:k},e,{expandIcon:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.expandIcon,a=t?t(n):f.createElement(c.Z,{rotate:n.isActive?90:void 0});return(0,A.Tm)(a,(function(){return{className:i()(a.props.className,"".concat(Z,"-arrow"))}}))},prefixCls:Z,className:b}),function(){var n=e.children;return(0,y.Z)(n).map((function(e,n){var t;if(null===(t=e.props)||void 0===t?void 0:t.disabled){var r=e.key||String(n),c=e.props,o=c.disabled,i=c.collapsible,l=(0,a.Z)((0,a.Z)({},(0,w.Z)(e.props,["disabled"])),{key:r,collapsible:null!==i&&void 0!==i?i:o?"disabled":void 0});return(0,A.Tm)(e,l)}return e}))}())};S.Panel=function(e){var n=f.useContext(P.E_).getPrefixCls,t=e.prefixCls,c=e.className,o=void 0===c?"":c,l=e.showArrow,s=void 0===l||l,d=n("collapse",t),u=i()((0,r.Z)({},"".concat(d,"-no-arrow"),!s),o);return f.createElement(E.Panel,(0,a.Z)({},e,{prefixCls:d,className:u}))};var M=S}}]);