import{r as a,x as w,g as r,w as B,u as C,ad as i,o as n,d as y,h as c,j as u,B as l,F as E}from"./index-DSBfL06P.js";import"./Header.vue_vue_type_style_index_0_scoped_269a820a_lang-B0iqE_Sm.js";import{u as v}from"./use-current-user-DWZd9eGr.js";/* empty css */import{C as A}from"./ContentContainer-0J5mcnfB.js";const F={__name:"Xiaoshu",props:{},setup(d){const p=C(),{bus:f}=i,m=d,e=a(!1),s=a([]),_=l("XIAOSHU_URL"),h=l("WEBSOCKET_BASE_URL"),x={padding:0};return w(()=>{const t=v(),o=t.token,b={userName:t.username,token:o},k=JSON.stringify(b),g=` window.WEBSOCKET_BASE_URL = '${h}'; localStorage.setItem('xintongxiaoshu', '${k}'); const box = document.querySelector('.xiaoshu-aside-left-menus-container'); if(box){ const btn = document.createElement('div'); box.appendChild(btn); btn.innerHTML = '返回'; btn.addEventListener('click', () => { window.$wujie?.bus.$emit("xiaoshuAsideBack"); }); } `,S=` .xiaoshu-aside-left-back-btn{ width: 100%; height: 40px; line-height: 40px; text-align: center; background-color: #165dff; color: #fff; display: inline-block; cursor: pointer; } `;f.$on("xiaoshuAsideBack",function(){p.back()}),s.value=[{jsAfterLoaders:[{content:g}]},{cssAfterLoaders:[{content:S}]}],e.value=!0}),(t,o)=>(n(),r(A,{containerStyle:x},{default:B(()=>[e.value?c("",!0):(n(),y(E,{key:0},[],64)),e.value?(n(),r(u(i),{key:1,width:"100%",height:"100%",name:"xiaoshu",url:u(_),sync:!1,props:m,plugins:s.value},null,8,["url","props","plugins"])):c("",!0)]),_:1}))}};export{F as default};