import{u as B,r,m as L,o as s,g as i,w as v,d as y,F as U,h as u,j as c,am as l,L as e}from"./index-C2Qpvv7g.js";import"./Header.vue_vue_type_style_index_0_scoped_2e420fdc_lang-CQj6SpTn.js";import{u as C}from"./use-current-user-DHQ8T4-w.js";/* empty css */import R from"./ContentContainer-DHI7_xrJ.js";import"./login-DgY8OFh-.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const q={__name:"Xiaoshu",props:{},setup(p){const d=B(),{bus:_}=l,m=p,t=r(!1),n=r([]),f=e("XIAOSHU_URL"),h=e("WEBSOCKET_BASE_URL"),x=e("API_BASE_URL"),b=e("ASSETS_BASE_URL"),S={padding:0};return L(()=>{const o=C(),a=o.token,g={userName:o.username,token:a},k=JSON.stringify(g),A=` window.WEBSOCKET_BASE_URL = '${h}'; window.API_BASE_URL = '${x}'; window.ASSETS_BASE_URL = '${b}'; localStorage.setItem('xintongxiaoshu', '${k}'); `,E=` 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"); }); } `,w=` .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; } .xiaoshu-aside-left-menus-pop-container {} .xiaoshu-aside-left-menus-actions-container{ display: none; } .user-popover.xiaoshu-aside-left-menus-pop-container>div.item{ display: none; } .user-popover.xiaoshu-aside-left-menus-pop-container>header{ padding-bottom: 0; border-bottom: none; } `;_.$on("xiaoshuAsideBack",function(){d.push("/chat/qa")}),n.value=[{jsBeforeLoaders:[{content:A}]},{jsAfterLoaders:[{content:E}]},{cssAfterLoaders:[{content:w}]}],t.value=!0}),(o,a)=>(s(),i(R,{containerStyle:S},{default:v(()=>[t.value?u("",!0):(s(),y(U,{key:0},[],64)),t.value?(s(),i(c(l),{key:1,width:"100%",height:"100%",name:"xiaoshu",url:c(f),sync:!1,props:m,plugins:n.value},null,8,["url","props","plugins"])):u("",!0)]),_:1}))}};export{q as default};