const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chunks/index.es.min.CZjstcJ6.js","assets/chunks/framework.Cre9sSJa.js","assets/chunks/index.BYYR_MCp.js","assets/chunks/index.Dyt75KH8.js"])))=>i.map(i=>d[i]);
import{C as E,o as a,c as h,j as n,a as r,E as d,w as g,k as t,b as y,H as F,a4 as o,U as c,V as C}from"./chunks/framework.Cre9sSJa.js";/* empty css                     */import{g as u}from"./chunks/runtime-globals.HgLeO6Lj.js";const B={key:0,style:{width:"100%",height:"500px",border:"1px solid var(--vp-c-divider)","border-radius":"8px",overflow:"hidden","margin-bottom":"24px"}},A={key:1,class:"custom-block tip"},f=JSON.parse('{"title":"ChatBot 页面嵌入","description":"","frontmatter":{},"headers":[],"relativePath":"demos/basic-usage.md","filePath":"demos/basic-usage.md"}'),D={name:"demos/basic-usage.md"},_=Object.assign(D,{setup(m){const l=u("BK_AIDEV_API_URL"),k=l?c({loader:()=>C(()=>import("./chunks/index.es.min.CZjstcJ6.js").then(s=>s.i),__vite__mapDeps([0,1,2,3])).then(s=>s.ChatBot)}):null,p=s=>{s!=null&&s.session&&s.session.createSession({sessionCode:`demo_${Date.now()}`,sessionName:"新会话"})};return(s,i)=>{const e=E("ClientOnly");return a(),h("div",null,[i[1]||(i[1]=n("h1",{id:"chatbot-页面嵌入",tabindex:"-1"},[r("ChatBot 页面嵌入 "),n("a",{class:"header-anchor",href:"#chatbot-页面嵌入","aria-label":'Permalink to "ChatBot 页面嵌入"'},"​")],-1)),i[2]||(i[2]=n("p",null,"ChatBot 是一个可独立使用的轻量聊天组件，无需额外面板即可快速嵌入到任何页面中。",-1)),d(e,null,{default:g(()=>[t(k)?(a(),h("div",B,[(a(),y(F(t(k)),{url:t(l),"hello-text":"你好，我是 AI 小鲸",placeholder:"输入你的问题...",onAgentInfoLoaded:p},null,40,["url"]))])):(a(),h("div",A,[...i[0]||(i[0]=[n("p",null,"在线演示需要后端环境支持。请参考下方代码示例进行集成。",-1)])]))]),_:1}),i[3]||(i[3]=o("",15))])}}});export{f as __pageData,_ as default};
