1import{d as B,w as p,C as j,c as E,a as t,u as r,E as U,S as c,b as V,G as f,i as N,y as $,o as _,cg as R,t as x,g as T,aW as Y}from"./index-4KLvpQhX.js";import{u as D,a as G,w as g}from"./useChatStore-CcDVFBO3.js";import{A as M}from"./index-DgvwQzJp.js";import{_ as W}from"./index-B0C1zwh6.js";import"./project-RDJRslh7.js";import"./script-D18jd69j.js";import"./imageUrlList-BNFAdSYP.js";import"./episode-DEhU6W_k.js";import"./constants-D70MNhNP.js";import"./useMaxLevel-D-KNw56m.js";import"./List-CSeyZNUR.js";import"./firstNotUndefined-CQBN84kM.js";import"./eagerComputed-Npnh_pVu.js";import"./collapseMotion-wqOJPGtk.js";import"./index-ZnheKQRh.js";import"./debounce-DWqSdS_y.js";import"./isSymbol-ClaQLOF6.js";import"./index-DcfRwKy6.js";const q={class:"flex h-screen bg-[#0a0a0a]"},z={class:"w-18 shrink-0 bg-[#0A0A0A]/80 backdrop-blur-2xl border-r border-white/10 shadow-[4px_0_24px_rgba(0,0,0,0.5)] flex flex-col"},F={class:"p-3 border-b border-white/5 flex justify-center"},H=["src"],J={class:"w-48 max-h-80 overflow-y-auto"},K={class:"text-xs"},L={class:"mx-2 mt-4 p-1 rounded-xl bg-white/[0.02] border border-white/5 cursor-pointer"},O={class:"text-[10px] text-white/80 font-semibold text-center leading-tight break-all"},P={class:"flex-1 overflow-hidden"},_e=B({__name:"index",setup(Q){const w=R,s=T(),d=$(),a=D(),{projectInfo:n,scripts:b,episodeTree:m,currentEpisode:v,initProjectInfo:k,initScripts:u,initAllEpisode:h,$reset:y}=G(),l=N(!1);p(()=>s.params.projectId,async(e,o)=>{if(e==="pending"){n.value=void 0;return}s.params.id=e,a.conversationId=e,await k(e),o!=="pending"&&(await u(),await h())},{immediate:!0}),p(()=>s.params.scriptId,e=>{e==="init"&&g(()=>n.value,()=>{u()},async()=>{},100,2e3)}),p(()=>s.params.episodeId,async e=>{if(e&&e==="init"){g(()=>b.value.length>0,()=>{h()},async()=>{},100,2e3);return}},{immediate:!0}),j(()=>{y(),a.$reset(),a.$dispose()});function A(){d.back()}function C(e){if(e.length>0){const o=e[e.length-1];d.replace({params:{...s.params,episodeId:o}}),l.value=!1}}return(e,o)=>{const I=Y("router-view");return _(),E("div",q,[t("aside",z,[t("div",F,[t("img",{src:r(w),alt:"YingYue AI",class:"w-full"},null,8,H)]),t("button",{class:"mx-2 mt-4 group flex items-center justify-center w-14 px-1 py-1 rounded-xl bg-white/[0.03] hover:bg-white/[0.06] border border-white/5 hover:border-white/10 transition-all duration-300 cursor-pointer",onClick:A},[...o[1]||(o[1]=[t("i",{class:"ri-arrow-left-line text-lg text-white/40 group-hover:text-white group-hover:-translate-x-1 transition-all"},null,-1)])]),r(m).length>0?(_(),U(r(W),{key:0,open:l.value,"onUpdate:open":o[0]||(o[0]=i=>l.value=i),placement:"right",trigger:"click"},{content:c(()=>{var i;return[t("div",J,[f(r(M),{"tree-data":r(m),"selected-keys":((i=r(n))==null?void 0:i.project_type)==="1"?[r(s).params.episodeId]:[r(s).params.scriptId,r(s).params.episodeId],onSelect:C},{title:c(({title:S})=>[t("span",K,x(S),1)]),_:1},8,["tree-data","selected-keys"])])]}),default:c(()=>{var i;return[t("div",L,[o[2]||(o[2]=t("div",{class:"text-[10px] text-white/80 text-center"},"åæ®µ:",-1)),t("div",O,x(((i=r(v))==null?void 0:i.title)||"æªç¥"),1)])]}),_:1},8,["open"])):V("",!0)]),t("main",P,[f(I)])])}}});export{_e as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.