import{a as x,g as i,r as h,L as j,T as a,S as r}from"./layout-873dda68.js";import{j as e,r as l,T as g,e as m,f as t}from"./vendor-a008fcfc.js";function p(){const[s,c]=l.useState(i("result")),[u,d]=l.useState("response");return l.useEffect(()=>h.registerCallback(n=>c(n),"result"),[]),e.jsx(j,{children:e.jsxs(g,{value:u,children:[e.jsxs(m,{onChange:(n,o)=>d(o),className:"border-solid border-0 border-b",children:[e.jsx(a,{label:"响应结果",value:"response"}),e.jsx(a,{label:"响应头",value:"headers"}),e.jsx(a,{label:"真实请求",value:"cmd"})]}),e.jsx(t,{value:"response",className:"!px-0",children:e.jsx(r,{language:"json",children:s.response})}),e.jsx(t,{value:"headers",className:"!px-0",children:e.jsx(r,{language:"yaml",children:s.headers})}),e.jsx(t,{value:"cmd",className:"!px-0",children:e.jsx(r,{language:"shell",children:s.cmd})})]})})}x({children:e.jsx(p,{})});
