(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[357],{1211:function(t,r,e){Promise.resolve().then(e.bind(e,47424))},97500:function(t,r,e){"use strict";async function a(t,r){let{arg:e}=r,a=localStorage.getItem("auth"),o={"Content-Type":"application/json"};a&&(o.Authorization="Basic ".concat(a));let n=await fetch(""+t,{method:"POST",headers:o,body:JSON.stringify(e)});if(!(n.status>=200&&n.status<300))throw Error(await n.text());let i=await n.json();if(!n.ok)throw Error(i.message);return i}e.d(r,{_i:function(){return o},gz:function(){return c},hw:function(){return i},sj:function(){return n},wG:function(){return a}});let o=async function(){for(var t=arguments.length,r=Array(t),e=0;e<t;e++)r[e]=arguments[e];let a=localStorage.getItem("auth"),o=r[1]||{},n=o.headers||{};if(a){let t={};n instanceof Headers?n.forEach((r,e)=>{t[e]=r}):t=Array.isArray(n)?Object.fromEntries(n):{...n},t.Authorization="Basic ".concat(a);let e=await fetch(""+r[0],{...o,headers:t});if(!e.ok)throw Error(await e.text());return e.json()}let i=await fetch(""+r[0],{...o,headers:n});if(!i.ok)throw Error(await i.text());return i.json()},n=async(t,r)=>{let e=localStorage.getItem("auth"),a=r||{},o=a.headers||{};if(e){let r={};o instanceof Headers?o.forEach((t,e)=>{r[e]=t}):r=Array.isArray(o)?Object.fromEntries(o):{...o},r.Authorization="Basic ".concat(e);let n=await fetch(""+t,{...a,headers:r});if(!n.ok)throw Error(await n.text());return n}let n=await fetch(""+t,{...a,headers:o});if(!n.ok)throw Error(await n.text());return n};async function i(t,r){let{arg:e}=r,a=localStorage.getItem("auth"),o={};a&&(o.Authorization="Basic ".concat(a));let n=await fetch("".concat("").concat(t,"/").concat(e),{method:"DELETE",headers:o});if(!n.ok)throw Error(await n.text());return n}async function c(t,r){let{arg:e}=r,a=localStorage.getItem("auth"),o={"Content-Type":"application/json"};a&&(o.Authorization="Basic ".concat(a));let n=await fetch("".concat("").concat(t),{method:"PUT",headers:o,body:JSON.stringify(e)});if(!n.ok)throw Error(await n.text());return n}},47424:function(t,r,e){"use strict";e.r(r),e.d(r,{default:function(){return h}});var a=e(57437),o=e(76301),n=e(85323),i=e(97500),c=e(42337),s=e(72046),l=e(34595),u=e(61255);function h(){let{Header:t,Footer:r,Sider:e,Content:h}=o.Layout,{data:f,error:d,isLoading:g}=(0,n.ZP)("/v1/status",i._i);return g?(0,a.jsx)(o.yC,{size:"large"}):(0,a.jsx)(l.a,{children:(0,a.jsxs)(u.Z,{children:[(0,a.jsx)(t,{style:{backgroundColor:"var(--semi-color-bg-1)"},children:(0,a.jsxs)("div",{style:{display:"flex",alignItems:"center",padding:"0 20px",height:"60px",backgroundColor:"var(--semi-color-bg-1)",boxShadow:"0 1px 2px 0 rgb(0 0 0 / 0.05)"},children:[(0,a.jsx)("div",{style:{backgroundColor:"rgba(var(--semi-lime-2), 1)",borderRadius:"var(--semi-border-radius-large)",color:"var(--semi-color-bg-0)",display:"flex",padding:"6px"},children:(0,a.jsx)(c.Z,{size:"large"})}),(0,a.jsx)("h4",{style:{marginLeft:"12px",margin:0},children:"任务平台"})]})}),(0,a.jsx)(h,{style:{paddingLeft:12,paddingRight:12,backgroundColor:"var(--semi-color-bg-0)"},children:(0,a.jsx)("main",{children:(0,a.jsx)(s.L,{data:f})})})]})})}}},function(t){t.O(0,[916,737,877,623,290,852,191,147,429,597,326,301,987,323,896,46,789,971,117,744],function(){return t(t.s=1211)}),_N_E=t.O()}]);