(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[392],{77282:function(t,e,n){"use strict";var r=n(2265),i=n(88046);let a=(0,i.A)(function(t){return r.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},t),r.createElement("path",{d:"M6.0824 8.00335C6.5571 5.16399 9.02583 3 12 3C14.9742 3 17.4429 5.16399 17.9176 8.00335C17.4039 8.04525 17 8.47546 17 9V16C17 16.5523 17.4477 17 18 17H18.5322C17.8461 18.3807 16.4717 19.359 14.8579 19.486C14.6831 19.1948 14.3643 19 14 19H10C9.44772 19 9 19.4477 9 20V21C9 21.5523 9.44772 22 10 22H14C14.3744 22 14.7008 21.7942 14.8722 21.4895C17.6318 21.3337 19.9311 19.4565 20.7134 16.9147C22.0259 16.5945 23 15.411 23 14V11C23 9.34315 21.6569 8 20 8H19.9381C19.446 4.05369 16.0796 1 12 1C7.92038 1 4.55399 4.05369 4.06189 8H4C2.34315 8 1 9.34315 1 11V14C1 15.6569 2.34315 17 4 17H6C6.55228 17 7 16.5523 7 16V9C7 8.47546 6.59614 8.04525 6.0824 8.00335Z",fill:"currentColor"}))},"customer_support");e.Z=a},71350:function(t,e,n){Promise.resolve().then(n.bind(n,82665))},82665:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return d}});var r=n(57437),i=n(32081),a=n(30713),o=n(16869),s=n(77282),c=n(66310);function d(){let{Header:t,Footer:e,Sider:n,Content:d}=i.Layout,{data:l,error:u,isLoading:h}=(0,a.ZP)("/v1/streamer-info",o._i);if(h)return(0,r.jsx)(r.Fragment,{children:"Loading"});let{Text}=i.Typography,f=[{title:"标题",dataIndex:"title",render:(t,e,n)=>(0,r.jsx)(Text,{strong:!0,children:t})},{title:"名称",dataIndex:"name"},{title:"链接",dataIndex:"url"},{title:"封面",dataIndex:"live_cover_path"},{title:"更新日期",dataIndex:"date",render:(t,e,n)=>(0,r.jsx)(r.Fragment,{children:(0,c.cE)(t)}),sorter:(t,e)=>t.updateTime-e.updateTime>0?1:-1}];return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t,{style:{backgroundColor:"var(--semi-color-bg-1)"},children:(0,r.jsx)(i.JL,{style:{border:"none"},header:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{style:{backgroundColor:"rgb(250 102 76)",borderRadius:"var(--semi-border-radius-large)",color:"var(--semi-color-bg-0)",display:"flex",padding:"6px"},children:(0,r.jsx)(s.Z,{size:"large"})}),(0,r.jsx)("h4",{style:{marginLeft:"12px"},children:"直播历史"})]}),mode:"horizontal"})}),(0,r.jsx)(d,{style:{paddingLeft:12,paddingRight:12,backgroundColor:"var(--semi-color-bg-0)"},children:(0,r.jsx)("main",{children:(0,r.jsx)(i.iA,{size:"small",rowKey:"id",columns:f,dataSource:l,expandedRowRender:(t,e)=>(0,r.jsxs)(r.Fragment,{children:["文件列表：",t.files.map(t=>(0,r.jsxs)("div",{children:["\xa0\xa0文件名：",t.file]},t.id))]})})})})]})}},16869:function(t,e,n){"use strict";async function r(t,e){let{arg:n}=e;console.log(JSON.stringify(n));let r=await fetch(""+t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!(r.status>=200&&r.status<300))throw Error(await r.text());let i=await r.json();if(!r.ok)throw Error(i.message);return i}n.d(e,{_i:function(){return i},gz:function(){return s},hw:function(){return o},sj:function(){return a},wG:function(){return r}});let i=async function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];let r=await fetch(""+e[0],e[1]);if(!r.ok)throw Error(await r.text());return r.json()},a=async(t,e)=>{let n=await fetch(""+t,e);if(!n.ok)throw Error(await n.text());return n};async function o(t,e){let{arg:n}=e,r=await fetch("".concat("").concat(t,"/").concat(n),{method:"DELETE"});if(!r.ok)throw Error(await r.text());return r}async function s(t,e){let{arg:n}=e,r=await fetch("".concat("").concat(t),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!r.ok)throw Error(await r.text());return r}},66310:function(t,e,n){"use strict";n.d(e,{cE:function(){return a},f:function(){return r},ql:function(){return i}});let r={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},i=(t,e)=>{let{match:n,unmatch:r,callInInit:i=!0}=e;{let e=window.matchMedia(t),a=function(t){t.matches?n&&n(t):r&&r(t)};return(i&&a(e),Object.prototype.hasOwnProperty.call(e,"addEventListener"))?(e.addEventListener("change",a),()=>e.removeEventListener("change",a)):(e.addListener(a),()=>e.removeListener(a))}},a=t=>new Date(1e3*t).toLocaleString("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).replaceAll("/","-")}},function(t){t.O(0,[835,713,971,472,744],function(){return t(t.s=71350)}),_N_E=t.O()}]);