1 line
18 KiB
JavaScript
1 line
18 KiB
JavaScript
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6964],{24019:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(1413),a=n(67294),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},i=n(42135),o=function(e,t){return a.createElement(i.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:s}))};o.displayName="ClockCircleOutlined";var l=a.forwardRef(o)},75401:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(24262),a=n(19013),s=n(13882);function i(e){(0,s.Z)(1,arguments);var t=(0,a.Z)(e);return t.setHours(0,0,0,0),t}var o=864e5;function l(e,t){(0,s.Z)(2,arguments);var n=i(e),a=i(t),l=n.getTime()-(0,r.Z)(n),c=a.getTime()-(0,r.Z)(a);return Math.round((l-c)/o)}},64830:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin",function(){return n(67578)}])},824:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(85893),a=(n(67294),n(84485)),s=n(20550),i=n(10355),o=n(53731),l=n(58091),c=a.Z.Title;function d(e,t){var n="black";return"warning"===t.level?n="orange":"error"===t.level&&(n="red"),(0,r.jsx)(s.Z,{color:n,children:e})}function u(e){return(0,r.jsx)(o.Z,{children:e})}function h(e){var t=e.logs,n=e.pageSize;if(!(null===t||void 0===t?void 0:t.length))return null;var a=[{title:"Level",dataIndex:"level",key:"level",filters:[{text:"Info",value:"info"},{text:"Warning",value:"warning"},{text:"Error",value:"Error"}],onFilter:function(e,t){return 0===t.level.indexOf(e)},render:d},{title:"Timestamp",dataIndex:"time",key:"time",render:function(e){var t=new Date(e);return(0,l.Z)(t,"pp P")},sorter:function(e,t){return new Date(e.time).getTime()-new Date(t.time).getTime()},sortDirections:["descend","ascend"],defaultSortOrder:"descend"},{title:"Message",dataIndex:"message",key:"message",render:u}];return(0,r.jsxs)("div",{className:"logs-section",children:[(0,r.jsx)(c,{children:"Logs"}),(0,r.jsx)(i.Z,{size:"middle",dataSource:t,columns:a,rowKey:function(e){return e.time},pagination:{pageSize:n||20}})]})}},14880:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(85893),a=n(8751),s=n(11475),i=n(25968),o=n(6226),l=n(74763),c=n(84485),d=n(14670),u=n(71577),h=n(41664),v=n.n(h),m=n(67294),f=n(35159);function x(e){var t=e.showTroubleshootButton,n=(0,m.useContext)(f.aC).health;if(!n)return null;var h=n.healthy,x=n.healthPercentage,p=n.message,g=n.representation,j="#3f8600",w="info";return x<80?(j="#cf000f",w="error"):x<30&&(j="#f0ad4e",w="error"),(0,r.jsxs)("div",{children:[(0,r.jsxs)(i.Z,{gutter:8,children:[(0,r.jsx)(o.Z,{span:12,children:(0,r.jsx)(l.Z,{title:"Healthy Stream",value:h?"Yes":"No",valueStyle:{color:j},prefix:h?(0,r.jsx)(a.Z,{}):(0,r.jsx)(s.Z,{})})}),(0,r.jsx)(o.Z,{span:12,children:(0,r.jsx)(l.Z,{title:"Playback Health",value:x,valueStyle:{color:j},suffix:"%"})})]}),(0,r.jsx)(i.Z,{style:{display:g<100&&0!==g?"grid":"none"},children:(0,r.jsxs)(c.Z.Text,{type:"secondary",style:{textAlign:"center",fontSize:"0.7em",opacity:"0.3"},children:["Stream health represents ",g,"% of all known players. Other player status is unknown."]})}),(0,r.jsx)(i.Z,{gutter:16,style:{width:"100%",display:p?"grid":"none",marginTop:"10px"},children:(0,r.jsx)(o.Z,{span:24,children:(0,r.jsx)(d.Z,{message:p,type:w,showIcon:!0,action:t&&(0,r.jsx)(v(),{passHref:!0,href:"/stream-health",children:(0,r.jsx)(u.Z,{size:"small",type:"text",style:{color:"black"},children:"TROUBLESHOOT"})})})})})]})}x.defaultProps={showTroubleshootButton:!0}},67578:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return ce}});var r=n(47568),a=n(34051),s=n.n(a),i=n(85893),o=n(67294),l=n(26303),c=n(74763),d=n(59652),u=n(25968),h=n(6226),v=n(24019),m=n(87547),f=n(84314),x=n(75401),p=n(58091),g=n(86559),j=n(92234),w=n(19013),Z=n(24262),y=n(13882),b=n(83946);function k(e,t,n){var r,a,s,i,o,l,c,d,u,h;(0,y.Z)(2,arguments);var v=(0,w.Z)(e),m=(0,w.Z)(t),k=(0,f.j)(),z=null!==(r=null!==(a=null===n||void 0===n?void 0:n.locale)&&void 0!==a?a:k.locale)&&void 0!==r?r:g.Z,N=(0,b.Z)(null!==(s=null!==(i=null!==(o=null!==(l=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==l?l:null===n||void 0===n||null===(c=n.locale)||void 0===c||null===(d=c.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==o?o:k.weekStartsOn)&&void 0!==i?i:null===(u=k.locale)||void 0===u||null===(h=u.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==s?s:0);if(!z.localize)throw new RangeError("locale must contain localize property");if(!z.formatLong)throw new RangeError("locale must contain formatLong property");if(!z.formatRelative)throw new RangeError("locale must contain formatRelative property");var S,T=(0,x.Z)(v,m);if(isNaN(T))throw new RangeError("Invalid time value");S=T<-6?"other":T<-1?"lastWeek":T<0?"yesterday":T<1?"today":T<2?"tomorrow":T<7?"nextWeek":"other";var C=(0,j.Z)(v,(0,Z.Z)(v)),M=(0,j.Z)(m,(0,Z.Z)(m)),E=z.formatRelative(S,C,M,{locale:z,weekStartsOn:N});return(0,p.Z)(v,E,{locale:z,weekStartsOn:N})}var z=n(45938),N=n(35159),S=n(824),T=n(1413),C={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zM232 888V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0022.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752H232z",fill:e}},{tag:"path",attrs:{d:"M668 345.9V136h-96v211.4l49.5-35.4z",fill:t}},{tag:"path",attrs:{d:"M727.9 136v296.5c0 8.8-7.2 16-16 16-3.4 0-6.7-1.1-9.4-3.1L621.1 386l-83.8 59.9a15.9 15.9 0 01-22.3-3.7c-2-2.7-3-6-3-9.3V136H232v752h559.9V136h-64z",fill:t}}]}},name:"book",theme:"twotone"},M=n(42135),E=function(e,t){return o.createElement(M.Z,(0,T.Z)((0,T.Z)({},e),{},{ref:t,icon:C}))};E.displayName="BookTwoTone";var H=o.forwardRef(E),O={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z",fill:e}},{tag:"path",attrs:{d:"M184 840h656V184H184v656zm240-484.7c0-9.4 10.9-14.7 18.3-8.8l199.4 156.7a11.2 11.2 0 010 17.6L442.3 677.6c-7.4 5.8-18.3.6-18.3-8.8V355.3z",fill:t}},{tag:"path",attrs:{d:"M442.3 677.6l199.4-156.8a11.2 11.2 0 000-17.6L442.3 346.5c-7.4-5.9-18.3-.6-18.3 8.8v313.5c0 9.4 10.9 14.6 18.3 8.8z",fill:e}}]}},name:"play-square",theme:"twotone"},V=function(e,t){return o.createElement(M.Z,(0,T.Z)((0,T.Z)({},e),{},{ref:t,icon:O}))};V.displayName="PlaySquareTwoTone";var _=o.forwardRef(V),B={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M775.3 248.9a369.62 369.62 0 00-119-80A370.2 370.2 0 00512.1 140h-1.7c-99.7.4-193 39.4-262.8 109.9-69.9 70.5-108 164.1-107.6 263.8.3 60.3 15.3 120.2 43.5 173.1l4.5 8.4V836h140.8l8.4 4.5c52.9 28.2 112.8 43.2 173.1 43.5h1.7c99 0 192-38.2 262.1-107.6 70.4-69.8 109.5-163.1 110.1-262.7.2-50.6-9.5-99.6-28.9-145.8a370.15 370.15 0 00-80-119zM312 560a48.01 48.01 0 010-96 48.01 48.01 0 010 96zm200 0a48.01 48.01 0 010-96 48.01 48.01 0 010 96zm200 0a48.01 48.01 0 010-96 48.01 48.01 0 010 96z",fill:t}},{tag:"path",attrs:{d:"M664 512a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0z",fill:e}},{tag:"path",attrs:{d:"M925.2 338.4c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z",fill:e}},{tag:"path",attrs:{d:"M464 512a48 48 0 1096 0 48 48 0 10-96 0z",fill:e}}]}},name:"message",theme:"twotone"},L=function(e,t){return o.createElement(M.Z,(0,T.Z)((0,T.Z)({},e),{},{ref:t,icon:B}))};L.displayName="MessageTwoTone";var P=o.forwardRef(L),D={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z",fill:e}},{tag:"path",attrs:{d:"M184 840h656V184H184v656zm300-496c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H492c-4.4 0-8-3.6-8-8v-48zm0 144c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H492c-4.4 0-8-3.6-8-8v-48zm0 144c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H492c-4.4 0-8-3.6-8-8v-48zM380 328c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm0 144c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm0 144c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40z",fill:t}},{tag:"path",attrs:{d:"M340 656a40 40 0 1080 0 40 40 0 10-80 0zm0-144a40 40 0 1080 0 40 40 0 10-80 0zm0-144a40 40 0 1080 0 40 40 0 10-80 0zm152 320h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0-144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0-144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z",fill:e}}]}},name:"profile",theme:"twotone"},R=function(e,t){return o.createElement(M.Z,(0,T.Z)((0,T.Z)({},e),{},{ref:t,icon:D}))};R.displayName="ProfileTwoTone";var I=o.forwardRef(R),U=n(84485),A=n(41664),F=n.n(A),Q=n(92932),W=n(26042),K=n(69396),q=n(54907),X=n(58827),Y=q.Z.Panel,G=U.Z.Title,J=U.Z.Link;function $(e){var t=e.title,n=e.url,r=e.content_html,a=e.date_published,s=new Date(a),o=(0,p.Z)(s,"MMM dd, yyyy, HH:mm");return(0,i.jsx)("article",{children:(0,i.jsx)(q.Z,{children:(0,i.jsxs)(Y,{header:t,children:[(0,i.jsxs)("p",{className:"timestamp",children:[o," (",(0,i.jsx)(J,{href:"".concat("https://owncast.online").concat(n),target:"_blank",rel:"noopener noreferrer",children:"Link"}),")"]}),(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:r}})]},n)})})}function ee(){var e=(0,o.useState)([]),t=e[0],n=e[1],a=(0,o.useState)(!0),c=a[0],d=a[1],u=function(){var e=(0,r.Z)(s().mark((function e(){var t;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return d(!1),e.prev=1,e.next=4,(0,X.kg)("https://owncast.online/news/index.json");case 4:(null===(t=e.sent)||void 0===t?void 0:t.items.length)>0&&n(t.items),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),console.log("==== error",e.t0);case 11:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(){return e.apply(this,arguments)}}();(0,o.useEffect)((function(){u()}),[]);var h=c?(0,i.jsx)(l.Z,{loading:!0,active:!0}):null,v=c||0!==t.length?null:(0,i.jsx)("div",{children:"No news."});return(0,i.jsxs)("section",{className:"news-feed form-module",children:[(0,i.jsx)(G,{level:2,children:"News & Updates from Owncast"}),h,t.map((function(e){return(0,o.createElement)($,(0,K.Z)((0,W.Z)({},e),{key:e.url}))})),v]})}var te=U.Z.Paragraph,ne=U.Z.Text,re=U.Z.Title,ae=d.Z.Meta;function se(e){var t,r,a,s,l=e.logs,c=void 0===l?[]:l,v=e.config,m=((0,o.useContext)(N.aC)||{}).serverConfig,f=m.streamKey,x=m.rtmpServerPort,p=(null===(t=n.g.window)||void 0===t?void 0:t.location.hostname)||"";p&&x&&(s=function(e,t){return"rtmp://".concat(e.replace(/(^\w+:|^)\/\//,""),":").concat(t,"/live")}(p,x));var g=[{icon:(0,i.jsx)(H,{twoToneColor:"#6f42c1"}),title:"Use your broadcasting software",content:(0,i.jsxs)("div",{children:[(0,i.jsx)("a",{href:"https://owncast.online/docs/broadcasting/?source=admin",target:"_blank",rel:"noopener noreferrer",children:"Learn how to point your existing software to your new server and start streaming your content."}),(0,i.jsxs)("div",{className:"stream-info-container",children:[(0,i.jsx)(ne,{strong:!0,className:"stream-info-label",children:"Streaming URL:"}),s&&(0,i.jsx)(te,{className:"stream-info-box",copyable:!0,children:s}),(0,i.jsx)(ne,{strong:!0,className:"stream-info-label",children:"Stream Key:"}),(0,i.jsx)(te,{className:"stream-info-box",copyable:{text:f},children:"*********************"})]})]})},{icon:(0,i.jsx)(_,{twoToneColor:"#f9826c"}),title:"Embed your video onto other sites",content:(0,i.jsx)("div",{children:(0,i.jsx)("a",{href:"https://owncast.online/docs/embed?source=admin",target:"_blank",rel:"noopener noreferrer",children:"Learn how you can add your Owncast stream to other sites you control."})})}];return(null===v||void 0===v?void 0:v.chatDisabled)||g.push({icon:(0,i.jsx)(P,{twoToneColor:"#0366d6"}),title:"Chat is disabled",content:(0,i.jsx)("span",{children:"Chat will continue to be disabled until you begin a live stream."})}),(null===v||void 0===v||null===(r=v.yp)||void 0===r?void 0:r.enabled)||g.push({icon:(0,i.jsx)(I,{twoToneColor:"#D18BFE"}),title:"Find an audience on the Owncast Directory",content:(0,i.jsxs)("div",{children:["List yourself in the Owncast Directory and show off your stream. Enable it in"," ",(0,i.jsx)(F(),{href:"/config-public-details",children:"settings."})]})}),(null===v||void 0===v||null===(a=v.federation)||void 0===a?void 0:a.enabled)||g.push({icon:(0,i.jsx)("img",{alt:"fediverse",width:"20px",src:"fediverse-white.png"}),title:"Add your Owncast instance to the Fediverse",content:(0,i.jsxs)("div",{children:[(0,i.jsx)(F(),{href:"/config-federation",children:"Enable Owncast social"})," features to have your instance join the Fediverse, allowing people to follow, share and engage with your live stream."]})}),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u.Z,{children:(0,i.jsx)(h.Z,{span:12,offset:6,children:(0,i.jsxs)("div",{className:"offline-intro",children:[(0,i.jsx)("span",{className:"logo",children:(0,i.jsx)(Q.Z,{variant:"simple"})}),(0,i.jsxs)("div",{children:[(0,i.jsx)(re,{level:2,children:"No stream is active"}),(0,i.jsx)("p",{children:"You should start one."})]})]})})}),(0,i.jsxs)(u.Z,{gutter:[16,16],className:"offline-content",children:[(0,i.jsx)(h.Z,{span:12,xs:24,sm:24,md:24,lg:12,className:"list-section",children:g.map((function(e){return(0,i.jsx)(d.Z,{size:"small",bordered:!1,children:(0,i.jsx)(ae,{avatar:e.icon,title:e.title,description:e.content})},e.title)}))}),(0,i.jsx)(h.Z,{span:12,xs:24,sm:24,md:24,lg:12,children:(0,i.jsx)(ee,{})})]}),(0,i.jsx)(S.Z,{logs:c,pageSize:5})]})}var ie=n(14880),oe=n(2766);function le(e){return(0,i.jsxs)("ul",{className:"statistics-list",children:[(0,i.jsxs)("li",{children:[e.videoCodec||"Unknown"," @ ",e.videoBitrate||"Unknown"," kbps"]}),(0,i.jsxs)("li",{children:[e.framerate||"Unknown"," fps"]}),(0,i.jsxs)("li",{children:[e.width," x ",e.height]})]})}function ce(){var e,t,n=(0,o.useContext)(N.aC),a=n||{},f=a.broadcaster,x=a.serverConfig,p=f||{},g=p.remoteAddr,j=p.streamDetails,w=(null===j||void 0===j?void 0:j.encoder)||"Unknown encoder",Z=(0,o.useState)([]),y=Z[0],b=Z[1],T=function(){var e=(0,r.Z)(s().mark((function e(){var t;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,X.rQ)(X.WQ);case 3:t=e.sent,b(t),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.log("==== error",e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}(),C=function(){T()};if((0,o.useEffect)((function(){C();var e;return e=setInterval(C,X.NE),function(){clearInterval(e)}}),[]),(0,oe.Qr)(x)||(0,oe.Qr)(n))return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.Z,{active:!0}),(0,i.jsx)(l.Z,{active:!0}),(0,i.jsx)(l.Z,{active:!0})]});if(!f)return(0,i.jsx)(se,{logs:y,config:x});var M=null===n||void 0===n||null===(e=n.currentBroadcast)||void 0===e||null===(t=e.outputSettings)||void 0===t?void 0:t.map((function(e){var t=e.audioPassthrough,n=e.videoPassthrough,r=e.audioBitrate,a=e.videoBitrate,s=e.framerate,o=t?"".concat(j.audioCodec||"Unknown",", ").concat(j.audioBitrate," kbps"):"".concat(r||"Unknown"," kbps"),l=n?"".concat(j.videoBitrate||"Unknown"," kbps, ").concat(j.framerate," fps ").concat(j.width," x ").concat(j.height):"".concat(a||"Unknown"," kbps, ").concat(s," fps");return(0,i.jsxs)("div",{className:"stream-details-item-container",children:[(0,i.jsx)(c.Z,{className:"stream-details-item",title:"Outbound Video Stream",value:l}),(0,i.jsx)(c.Z,{className:"stream-details-item",title:"Outbound Audio Stream",value:o})]})})),E=n.viewerCount,H=n.sessionPeakViewerCount,O="".concat(j.audioCodec,", ").concat(j.audioBitrate||"Unknown"," kbps"),V=new Date(f.time);return(0,i.jsxs)("div",{className:"home-container",children:[(0,i.jsxs)("div",{className:"sections-container",children:[(0,i.jsx)("div",{className:"online-status-section",children:(0,i.jsxs)(d.Z,{size:"small",type:"inner",className:"online-details-card",children:[(0,i.jsxs)(u.Z,{gutter:[16,16],align:"middle",children:[(0,i.jsx)(h.Z,{span:8,sm:24,md:8,children:(0,i.jsx)(c.Z,{title:"Stream started ".concat(k(V,Date.now())),value:(0,z.Z)(V),prefix:(0,i.jsx)(v.Z,{})})}),(0,i.jsx)(h.Z,{span:8,sm:24,md:8,children:(0,i.jsx)(c.Z,{title:"Viewers",value:E,prefix:(0,i.jsx)(m.Z,{})})}),(0,i.jsx)(h.Z,{span:8,sm:24,md:8,children:(0,i.jsx)(c.Z,{title:"Peak viewer count",value:H,prefix:(0,i.jsx)(m.Z,{})})})]}),(0,i.jsx)(ie.Z,{})]})}),(0,i.jsxs)(u.Z,{gutter:[16,16],className:"section stream-details-section",children:[(0,i.jsxs)(h.Z,{className:"stream-details",span:12,sm:24,md:24,lg:12,children:[(0,i.jsx)(d.Z,{size:"small",title:"Outbound Stream Details",type:"inner",className:"outbound-details",children:M}),(0,i.jsxs)(d.Z,{size:"small",title:"Inbound Stream Details",type:"inner",children:[(0,i.jsx)(c.Z,{className:"stream-details-item",title:"Input",value:"".concat(w," ").concat((0,oe.t5)(g))}),(0,i.jsx)(c.Z,{className:"stream-details-item",title:"Inbound Video Stream",value:j,formatter:le}),(0,i.jsx)(c.Z,{className:"stream-details-item",title:"Inbound Audio Stream",value:O})]})]}),(0,i.jsx)(h.Z,{span:12,xs:24,sm:24,md:24,lg:12,children:(0,i.jsx)(ee,{})})]})]}),(0,i.jsx)("br",{}),(0,i.jsx)(S.Z,{logs:y,pageSize:5})]})}}},function(e){e.O(0,[384,355,8091,5938,5315,4763,2429,9774,2888,179],(function(){return t=64830,e(e.s=t);var t}));var t=e.O();_N_E=t}]); |