var w=(a,h,r)=>new Promise((p,s)=>{var e=o=>{try{i(r.next(o))}catch(u){s(u)}},t=o=>{try{i(r.throw(o))}catch(u){s(u)}},i=o=>o.done?p(o.value):Promise.resolve(o.value).then(e,t);i((r=r.apply(a,h)).next())});import{C as k,M as c,J as E,__tla as J}from"./index-d8d113fc.js";import{P as j,__tla as A}from"./index-3705f1a8.js";import{d as D,$ as g,bg as M,r as x,u as O,ab as y,h as G,_ as N,y as m,o as U,c as V,w as l,e as n,b as _,__tla as F}from"./index-b5895273.js";import{__tla as H}from"./useWindowSizeFn-a59bee15.js";import{__tla as I}from"./onMountedOrActivated-6125a24a.js";import{__tla as T}from"./useContentViewHeight-cd147d02.js";let b,q=Promise.all([(()=>{try{return J}catch(a){}})(),(()=>{try{return A}catch(a){}})(),(()=>{try{return F}catch(a){}})(),(()=>{try{return H}catch(a){}})(),(()=>{try{return I}catch(a){}})(),(()=>{try{return T}catch(a){}})()]).then(()=>w(void 0,null,function*(){const a='{"name":"BeJson","url":"http://www.xxx.com","page":88,"isNonProfit":true,"address":{"street":"\u79D1\u6280\u56ED\u8DEF.","city":"\u6C5F\u82CF\u82CF\u5DDE","country":"\u4E2D\u56FD"},"links":[{"name":"Google","url":"http://www.xxx.com"},{"name":"Baidu","url":"http://www.xxx.com"},{"name":"SoSo","url":"http://www.xxx.com"}]}',h=`
(() => {
var htmlRoot = document.getElementById('htmlRoot');
var theme = window.localStorage.getItem('__APP__DARK__MODE__');
if (htmlRoot && theme) {
htmlRoot.setAttribute('data-theme', theme);
theme = htmlRoot = null;
}
})();
`,r=`
<%= title %>
`,p=D({components:{CodeEditor:k,PageWrapper:j,RadioButton:g.Button,RadioGroup:g.Group,ASpace:M},setup(){const e=x(c.JSON),t=x(a);function i(u){const d=u.target.value;if(d===c.JSON){t.value=a;return}if(d===c.HTML){t.value=r;return}if(d===c.JS){t.value=h;return}}function o(){O(e)==="application/json"?y.info({title:"\u7F16\u8F91\u5668\u5F53\u524D\u503C",content:G(E,{data:JSON.parse(t.value)})}):y.info({title:"\u7F16\u8F91\u5668\u5F53\u524D\u503C",content:t.value})}return{value:t,modeValue:e,handleModeChange:i,showData:o}}});function s(e,t,i,o,u,d){const C=m("a-button"),v=m("RadioButton"),R=m("RadioGroup"),P=m("a-space"),S=m("CodeEditor"),B=m("PageWrapper");return U(),V(B,{title:"\u4EE3\u7801\u7F16\u8F91\u5668\u7EC4\u4EF6\u793A\u4F8B",contentFullHeight:"",fixedHeight:"",contentBackground:""},{extra:l(()=>[n(P,{size:"middle"},{default:l(()=>[n(C,{onClick:e.showData,type:"primary"},{default:l(()=>[_("\u83B7\u53D6\u6570\u636E")]),_:1},8,["onClick"]),n(R,{"button-style":"solid",value:e.modeValue,"onUpdate:value":t[0]||(t[0]=f=>e.modeValue=f),onChange:e.handleModeChange},{default:l(()=>[n(v,{value:"application/json"},{default:l(()=>[_(" json\u6570\u636E ")]),_:1}),n(v,{value:"htmlmixed"},{default:l(()=>[_(" html\u4EE3\u7801 ")]),_:1}),n(v,{value:"javascript"},{default:l(()=>[_(" javascript\u4EE3\u7801 ")]),_:1})]),_:1},8,["value","onChange"])]),_:1})]),default:l(()=>[n(S,{value:e.value,"onUpdate:value":t[1]||(t[1]=f=>e.value=f),mode:e.modeValue},null,8,["value","mode"])]),_:1})}b=N(p,[["render",s]])}));export{q as __tla,b as default};