var w=(o,_,r)=>new Promise((p,d)=>{var e=a=>{try{i(r.next(a))}catch(u){d(u)}},t=a=>{try{i(r.throw(a))}catch(u){d(u)}},i=a=>a.done?p(a.value):Promise.resolve(a.value).then(e,t);i((r=r.apply(o,_)).next())});import{C as B,M as c,J as E,__tla as J}from"./index-0280fd00.js";import{P as j,__tla as A}from"./index-e26b3a3c.js";import{af as g,a8 as D,I as x}from"./antd-057b41b1.js";import{d as M,k as y,u as O,n as G,a7 as m,_ as H,a8 as I,a9 as l,f as n,E as h}from"./vue-1631514e.js";import{_ as N,__tla as U}from"./index-f0df2f76.js";import{__tla as V}from"./useWindowSizeFn-53b82e7c.js";import{__tla as F}from"./useContentViewHeight-c315421e.js";import"./onMountedOrActivated-5690e97c.js";let C,T=Promise.all([(()=>{try{return J}catch(o){}})(),(()=>{try{return A}catch(o){}})(),(()=>{try{return U}catch(o){}})(),(()=>{try{return V}catch(o){}})(),(()=>{try{return F}catch(o){}})()]).then(()=>w(void 0,null,function*(){const o='{"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"}]}',_=`
(() => {
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=M({components:{CodeEditor:B,PageWrapper:j,RadioButton:g.Button,RadioGroup:g.Group,ASpace:D},setup(){const e=y(c.JSON),t=y(o);function i(u){const s=u.target.value;if(s===c.JSON){t.value=o;return}if(s===c.HTML){t.value=r;return}if(s===c.JS){t.value=_;return}}function a(){O(e)==="application/json"?x.info({title:"\u7F16\u8F91\u5668\u5F53\u524D\u503C",content:G(E,{data:JSON.parse(t.value)})}):x.info({title:"\u7F16\u8F91\u5668\u5F53\u524D\u503C",content:t.value})}return{value:t,modeValue:e,handleModeChange:i,showData:a}}});function d(e,t,i,a,u,s){const R=m("a-button"),f=m("RadioButton"),b=m("RadioGroup"),P=m("a-space"),S=m("CodeEditor"),k=m("PageWrapper");return H(),I(k,{title:"\u4EE3\u7801\u7F16\u8F91\u5668\u7EC4\u4EF6\u793A\u4F8B",contentFullHeight:"",fixedHeight:"",contentBackground:""},{extra:l(()=>[n(P,{size:"middle"},{default:l(()=>[n(R,{onClick:e.showData,type:"primary"},{default:l(()=>[h("\u83B7\u53D6\u6570\u636E")]),_:1},8,["onClick"]),n(b,{"button-style":"solid",value:e.modeValue,"onUpdate:value":t[0]||(t[0]=v=>e.modeValue=v),onChange:e.handleModeChange},{default:l(()=>[n(f,{value:"application/json"},{default:l(()=>[h(" json\u6570\u636E ")]),_:1}),n(f,{value:"htmlmixed"},{default:l(()=>[h(" html\u4EE3\u7801 ")]),_:1}),n(f,{value:"javascript"},{default:l(()=>[h(" javascript\u4EE3\u7801 ")]),_:1})]),_:1},8,["value","onChange"])]),_:1})]),default:l(()=>[n(S,{value:e.value,"onUpdate:value":t[1]||(t[1]=v=>e.value=v),mode:e.modeValue},null,8,["value","mode"])]),_:1})}C=N(p,[["render",d]])}));export{T as __tla,C as default};