PageSourceSearch

https://www.yingyueai.com/assets/index-CXousb6n.js

js yingyueai.com collected 2026-09-25 18:37:25 UTC 18,462 bytes, 1 lines download raw bytes

1import{z as ne,ak as le,w as de,j as ce,E as R,v as p,x as oe,i as pe,d as ue,c as n,p as t,s as f,K as c,u as a,m as _,B as ge,N as fe,O as q,t as I,q as A,F as G,r as J,bA as ae,ag as ve,o as i,Q as me,D as Z,A as xe,J as be,M as he,aa as _e,_ as we}from"./index-0Fb4piQ9.js";import{_ as ye,a as ke,b as je,c as Ie,d as Se,e as Ce,f as Le,g as Ue,h as De,i as Oe,j as Pe,k as $e,l as Fe,m as Ae,n as ze}from"./逼真3D渲染-CpCqxvY4.js";import{c as Me,b as Ne}from"./project-D1tD9sao.js";import{u as Re}from"./agent-Be2jBj3H.js";import{g as Te}from"./url-CV_E09l6.js";import{_ as Ee}from"./index-TqxMpqYA.js";import{S as Be,a as He}from"./index-B5RZePPV.js";import{b as Ve}from"./index-CUpSfqP1.js";import"./firstNotUndefined-DmhG1Pvv.js";import"./slide-B8D2aLUj.js";import"./List-CyuRN_cM.js";import"./useMergedState-DUAa6tjF.js";import"./move-b6cEKdN1.js";const W=20,Ke=Object.entries(Object.assign({"/src/assets/images/styles/写实摄影.png":ze,"/src/assets/images/styles/写实漫画.png":Ae,"/src/assets/images/styles/北条司.png":Fe,"/src/assets/images/styles/卡通3D渲染.png":$e,"/src/assets/images/styles/吉卜力风格.png":Pe,"/src/assets/images/styles/国风动漫.png":Oe,"/src/assets/images/styles/少女漫画.png":De,"/src/assets/images/styles/日式少年动漫.png":Ue,"/src/assets/images/styles/水墨武侠.png":Le,"/src/assets/images/styles/电影写实.png":Ce,"/src/assets/images/styles/科幻写实.png":Se,"/src/assets/images/styles/科幻漫画.png":Ie,"/src/assets/images/styles/简笔画.png":je,"/src/assets/images/styles/美式超级英雄.png":ke,"/src/assets/images/styles/逼真3D渲染.png":ye})).map(([w])=>{var v;return((v=w.split("/").pop())==null?void 0:v.replace(".png",""))??""}).filter(w=>!w.includes("写实"));function Qe(){const w=Re(),v=pe(),u=ne(),{initQuery:S,style:T,project_type:E,episodeCount:B,scriptFiles:m,mediaFiles:x}=le(w),l=p([]),H=p(!1),g=p(null),C=p(null),h=p(!1),L=p(""),b=p(!1),y=p(!0),U=p(0),k=async(o=!1)=>{if(o){if(b.value||!y.value)return;b.value=!0}else h.value=!0,U.value=0,y.value=!0,l.value.length=0;try{const e=U.value*W,r=await Me({skip:e,limit:W,name:L.value||void 0});if(!r.data){o||(l.value=[]);return}const d=Array.isArray(r.data)?r.data:r.data.list;o?l.value=[...l.value,...d]:l.value=d,y.value=d.length>=W,d.length>0&&U.value++}catch(e){console.error("[HomePage] Failed to fetch project list:",e)}finally{h.value=!1,b.value=!1}},j=()=>{k(!1)},z=()=>{k(!0)};de(L,(o,e)=>{o!==e&&e!==""&&k(!1)}),ce(()=>{k()});const V=o=>{v.push({name:"AgentMode-Project-Assets",params:{projectId:o.id,scriptId:"pending",episodeId:"pe
1nding"}})},M=()=>{var o;return(o=g.value)==null?void 0:o.click()},D=()=>{var o;return(o=C.value)==null?void 0:o.click()},O=o=>{var d;const e=o.target.files;if(!(e!=null&&e.length))return;const r=e[0];if(r){const F=((d=r.name.split(".").pop())==null?void 0:d.toLowerCase())||"";if(!["txt","doc","docx"].includes(F)){R.error("仅支持 .txt, .doc, .docx 格式");return}const Y=`${Date.now()}-script-file`;m.value.push({uid:Y,name:r.name,url:URL.createObjectURL(r),originFileObj:r})}},N=o=>{const e=o.target.files;e&&Array.from(e).forEach((r,d)=>{const F=`${Date.now()}-${d}`;x.value.push({uid:F,name:r.name,url:URL.createObjectURL(r),originFileObj:r})})},P=o=>{x.value=x.value.filter(r=>r.uid!==o);const e=x.value.findIndex(r=>r.uid===o);e>=0&&x.value.splice(e,1)},K=()=>{m.value=[]},Q=async()=>{if(!(!S.value.trim()&&m.value.length===0)){h.value=!0;try{v.push({name:"AgentMode-Project-Assets",params:{projectId:"pending",scriptId:"pending",episodeId:"pending"}})}finally{h.value=!1}}},$=oe(()=>S.value.trim().length>0||m.value.length>0);return{STYLE_OPTIONS:Ke,router:v,fileInputImages:C,fileInputScript:g,formatDate:o=>{if(!o)return"-";const e=new Date(o);return isNaN(e.getTime())?"-":e.toLocaleDateString("zh-CN",{year:"numeric",month:"long",day:"numeric"})},handleImagesUpload:N,handleLoadHistory:V,handleScriptUpload:O,handleSearch:j,isFocused:H,isLoadingMore:b,isReady:$,loading:h,initQuery:S,loadMore:z,onStart:Q,projectList:l,project_type:E,episodeCount:B,hasMore:y,removeImage:P,removeScript:K,scriptFiles:m,searchKeyword:L,mediaFiles:x,style:T,triggerImagesUpload:D,triggerScriptUpload:M,handleDeleteProject:async o=>{try{if(u.userInfo||await u.getUserInfo(),!u.userInfo){R.warning("请先登录");return}await Ne(o,{userId:u.getOperatorId(),tenantId:u.tenantId||"default",operatorId:u.getOperatorId(),operatorAccount:u.userInfo.username??""}),l.value=l.value.filter(e=>e.id!==o),R.success("已删除")}catch(e){R.error(e instanceof Error?e.message:"删除失败")}}}}const Ye={class:"max-w-6xl mx-auto pt-40 px-6 pb-20 flex flex-col animate-in fade-in slide-in-from-bottom-12 duration-1000"},qe={class:"mb-8 flex flex-col items-center text-center animate-in fade-in slide-in-from-top-8 duration-1000"},Ge={class:"relative mb-3"},Je=["src"],Ze={class:"space-y-4"},We={key:0,class:"flex flex-wrap gap-4 pt-4 border-t border-white/[0.08]"},Xe={key:0,class:"flex items-center gap-3 px-3 py-1.5 bg-gradient-to-r from-[#246cfe]/15 to-transparent border border-[#246cfe]/35 rounded-lg group/file transition-all duration-300 hover:border-[#246cfe]/55"},et={class:"text-[11px] text-white/75 font-medium tracking-wide"},tt=["src"],st={class:"absolute inset-0 bg-black/60 opacity-0 group-hover/img:opacity-100 transition-opacity duration-300 flex items-center justify-center backdrop-blur-sm"},at=["onClick"],ot={class:"flex flex-col md:flex-row items-center justify-between gap-4 pt-4 border-t border-white/[0.08]"},rt={class:"flex items-center gap-2"},it={class:"flex items-center gap-6"},nt={class:"flex items-center gap-1 p-1 bg-white/8 rounded-xl border border-white/8"},lt={class:"flex items-center justify-between mb-6 px-2"},dt={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6"},ct=["onClick"],pt=["onClick"],ut={class:"aspect-[16/10] relative overflow-hidden bg-white/[0.02]"},gt=["src"],ft={key:1,class:"w-full h-full flex flex-col items-center justify-center gap-3 relative overflow-hidden"},vt={class:"p-4 flex flex-col gap-2 relative"},mt={class:"text-[14px] font-black text-white group-hover:text-white transition-colors truncate"},xt={class:"flex items-center justify-between"},bt={class:"flex items-center gap-2"},ht={class:"text-[9px] font-bold text-white/50 uppercase tracking-widest"},_t={key:0,class:"flex items-center justify-center py-8"},wt={key:1,class:"flex items-center justify-center py-8"},yt=ue({__name:"index",setup(w){const v=oe(()=>_e()),{STYLE_OPTIONS:u,router:S,fileInputImages:T,fileInputScript:E,formatDate:B,handleImagesUpload:m,handleLoadHistory:x,handleScriptUpload:l,handleSearch:H,isFocused:g,isLoadingMore:C,isReady:h,loading:L,initQuery:b,loadMore:y,onStart:U,projectList:k,project_type:j,hasMore:z,removeImage:V,removeScript:M,scriptFiles:D,searchKeyword:O,mediaFiles:N,style:P,triggerScriptUpload:K,handleDeleteProject:Q}=Qe(),$=p(null),X=()=>
1{if(!$.value)return;const{scrollTop:o,scrollHeight:e,clientHeight:r}=$.value;e-o-r<200&&z.value&&!C.value&&y()},ee=o=>{he.confirm({title:"确认删除",content:`确定要删除项目「${o.name}」吗?此操作将删除项目内所有数据且不可撤销。`,okType:"danger",onOk(){Q(o.id)}})};return(o,e)=>{var te;const r=ve,d=Ee,F=He,Y=Be,re=Ve;return i(),n("div",{class:"w-full h-full overflow-auto custom-scrollbar",onScroll:X},[t("div",Ye,[f(r,{type:"text",class:"!absolute !top-6 !left-6 !rounded-full !bg-white/5 !border-white/10 hover:!bg-white/10 !flex !items-center !justify-center !transition-all !duration-300 !z-50 group/back gap-2 cursor-pointer",onClick:e[0]||(e[0]=s=>a(S).push("/"))},{icon:c(()=>[...e[11]||(e[11]=[t("i",{class:"ri-home-line text-white/60 group-hover/back:text-white transition-colors"},null,-1)])]),default:c(()=>[t("span",null,I(o.$t("header.backHome")),1)]),_:1}),t("div",qe,[t("div",Ge,[t("img",{src:v.value,alt:"Logo",class:"h-20 md:h-16 w-auto object-contain relative z-10 animate-float"},null,8,Je),e[12]||(e[12]=t("div",{class:"absolute inset-0 blur-3xl opacity-30 bg-gradient-to-r from-[#246cfe] via-[#60a5fa] to-[#246cfe] animate-gradient-x"},null,-1))]),e[13]||(e[13]=t("div",{class:"flex items-center gap-3"},[t("div",{class:"h-[1px] w-12 bg-gradient-to-r from-transparent via-[#246cfe]/70 to-transparent animate-pulse"}),t("h2",{class:"text-[11px] font-bold text-white/80 uppercase tracking-[0.4em] whitespace-nowrap"}," 智能视觉策划与创作全流程 "),t("div",{class:"h-[1px] w-12 bg-gradient-to-l from-transparent via-[#246cfe]/70 to-transparent animate-pulse"})],-1))]),t("div",{class:_(["relative group transition-all duration-700",[a(g)?"scale-[1.02]":"scale-100"]])},[t("div",{class:_(["absolute -inset-1 bg-gradient-to-r from-[#246cfe]/20 via-[#60a5fa]/20 to-[#246cfe]/20 rounded-[32px] blur-xl transition-opacity duration-700",[a(g)?"opacity-100":"opacity-0"]])},null,2),t("div",{class:_(["relative bg-[#0a0c10]/90 backdrop-blur-3xl border border-white/[0.15] rounded-[28px] px-6 py-5 shadow-[0_32px_64px_-16px_rgba(0,0,0,0.6)] overflow-hidden transition-all duration-500",[a(g)?"border-[#246cfe]/40 shadow-[0_0_40px_rgba(36,108,254,0.15)]":""]])},[e[23]||(e[23]=t("div",{class:"absolute top-0 left-0 w-full h-[1px] bg-gradient-to-r from-transparent via-[#246cfe]/50 to-transparent"},null,-1)),t("div",{class:_(["absolute inset-0 bg-gradient-to-b from-[#246cfe]/5 to-transparent opacity-0 transition-opacity duration-500 pointer-events-none",[a(g)?"opacity-100":""]])},null,2),t("div",Ze,[ge(t("textarea",{"onUpdate:modelValue":e[1]||(e[1]=s=>q(b)?b.value=s:null),onFocus:e[2]||(e[2]=s=>g.value=!0),onBlur:e[3]||(e[3]=s=>g.value=!1),placeholder:"开启您的视觉策划之旅...",class:"w-full bg-transparent border-none outline-none text-white text-lg font-light placeholder:text-white/40 resize-none min-h-[100px] leading-relaxed tracking-tight hide-scrollbar transition-all"},null,544),[[fe,a(b)]]),a(D).length>0||a(N).length>0?(i(),n("div",We,[a(D).length>0?(i(),n("div",Xe,[e[15]||(e[15]=t("i",{class:"ri-file-text-line text-[#246cfe]"},null,-1)),t("span",et,I((te=a(D)[0])==null?void 0:te.name),1),t("button",{onClick:e[4]||(e[4]=(...s)=>a(M)&&a(M)(...s)),class:"opacity-0 group-hover/file:opacity-100 transition-opacity duration-300 cursor-pointer"},[...e[14]||(e[14]=[t("i",{class:"ri-close-line text-white/60 hover:text-white transition-colors"},null,-1)])])])):A("",!0),(i(!0),n(G,null,J(a(N),s=>(i(),n("div",{key:s.uid,class:"relative w-14 h-14 rounded-lg overflow-hidden border border-white/15 group/img shadow-lg transition-all duration-300 hover:border-[#246cfe]/40"},[t("img",{src:s.url,class:"w-full h-full object-cover grayscale-[0.3] group-hover/img:grayscale-0 transition-all duration-500"},null,8,tt),t("div",st,[t("button",{onClick:se=>a(V)(s.uid),class:"cursor-pointer"},[...e[16]||(e[16]=[t("i",{class:"ri-delete-bin-line text-white text-xs"},null,-1)])],8,at)])]))),128))])):A("",!0),t("div",ot,[t("div",rt,[f(r,{type:"text",class:"!h-8 !px-3 !flex !items-center !gap-2 !bg-white/8 !border-none !rounded-xl !text-white/55 !transition-all duration-300 group/btn !bg-[#246cfe]/10 !text-[#246cfe]",onClick:a(K)},{default:c(()=>[...e[17]||(e[17]=[t("i",{class:"ri-attachment-line text-sm"},null,-1),t("span",{class:"text-[10px] font-bold"},"上传剧本",-1)])]),_:1},8,["onClick"]),t("input",{ref_key:"fileInputScript",ref:E,type:"file",accept:".txt,.doc,.docx",class:"hidden",onChange:e[5]||(e[5]=(...s)=>a(l)&&a(l)(...s))},null,544),f(d,{title:"正在研发中"},{default:c(()=>[f(r,{type:"text",disabled:"",class:"!h-8 !px-3 !flex !items-center !gap-2 !bg-white/8 !border-none 
1!rounded-xl !text-white/55 !transition-all duration-300 group/btn"},{default:c(()=>[...e[18]||(e[18]=[t("i",{class:"ri-gallery-line text-sm"},null,-1),t("span",{class:"text-[10px] font-bold"},"视觉参考",-1)])]),_:1})]),_:1}),t("input",{ref_key:"fileInputImages",ref:T,type:"file",accept:"image/*",multiple:"",class:"hidden",onChange:e[6]||(e[6]=(...s)=>a(m)&&a(m)(...s))},null,544),f(Y,{value:a(P),"onUpdate:value":e[7]||(e[7]=s=>q(P)?P.value=s:null),class:"style-select !h-8 !bg-white/8 !rounded-xl !border-none !text-white/60 hover:!bg-white/12 !transition-all duration-300 group/select cursor-pointer",bordered:!1,"popup-class-name":"style-dropdown"},{suffixIcon:c(()=>[...e[19]||(e[19]=[t("i",{class:"ri-arrow-down-s-line text-white/40 group-hover/select:text-white/60 transition-colors duration-300"},null,-1)])]),default:c(()=>[(i(!0),n(G,null,J(a(u),s=>(i(),me(F,{key:s,value:s},{default:c(()=>[Z(I(s),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"])]),t("div",it,[t("div",nt,[f(r,{type:"text",size:"small",class:_(["!rounded-lg !px-4 !h-7 !text-[11px] !font-medium !transition-all duration-300 cursor-pointer",a(j)==="1"?"!bg-white/10 !text-white":"!text-white/50 hover:!text-white/70 hover:!bg-white/8"]),onClick:e[8]||(e[8]=s=>j.value="1")},{default:c(()=>[...e[20]||(e[20]=[Z(" 单集 ",-1)])]),_:1},8,["class"]),f(r,{type:"text",size:"small",class:_(["!rounded-lg !px-4 !h-7 !text-[11px] !font-medium !transition-all duration-300 cursor-pointer",a(j)==="0"?"!bg-[#246cfe] !text-white shadow-[0_0_20px_rgba(36,108,254,0.4)]":"!text-white/50 hover:!text-white/70 hover:!bg-white/8"]),onClick:e[9]||(e[9]=s=>j.value="0")},{default:c(()=>[...e[21]||(e[21]=[Z(" 多集 ",-1)])]),_:1},8,["class"])]),f(r,{type:"primary",shape:"round",class:"!h-10 !px-8 !bg-gradient-to-r !from-[#246cfe] !to-[#60a5fa] !text-white !border-none !font-semibold !transition-all duration-300 hover:!shadow-[0_0_30px_rgba(36,108,254,0.5)] active:scale-[0.98] disabled:opacity-40 flex items-center gap-2 group/start cursor-pointer",disabled:!a(h),onClick:a(U)},{default:c(()=>[...e[22]||(e[22]=[t("span",null,"立即开始",-1),t("i",{class:"ri-arrow-right-line text-lg group-hover/start:translate-x-1 transition-transform duration-300"},null,-1)])]),_:1},8,["disabled","onClick"])])])])],2)],2),t("div",{ref_key:"projectListRef",ref:$,class:"w-full mt-16 animate-in fade-in slide-in-from-bottom-8 duration-1000 delay-300"},[t("div",lt,[e[24]||(e[24]=ae('<div class="flex items-center gap-4" data-v-d0562137><div class="w-2 h-8 bg-[#246cfe] rounded-full shadow-[0_0_20px_rgba(36,108,254,0.6)]" data-v-d0562137></div><div class="flex flex-col" data-v-d0562137><h3 class="text-xs font-black text-white/95 uppercase tracking-[0.3em]" data-v-d0562137>项目列表</h3><span class="text-[9px] text-white/50 font-bold uppercase tracking-widest mt-0.5" data-v-d0562137>继续您的创作</span></div></div>',1)),f(re,{value:a(O),"onUpdate:value":e[10]||(e[10]=s=>q(O)?O.value=s:null),"allow-clear":"",placeholder:"搜索项目...",class:"w-52!",onSearch:a(H)},null,8,["value","onSearch"])]),t("div",dt,[(i(!0),n(G,null,J(a(k),(s,se)=>(i(),n("div",{key:s.id,class:"group relative bg-gradient-to-b from-white/[0.08] to-transparent border border-white/[0.12] rounded-[24px] overflow-hidden cursor-pointer transition-all duration-500 hover:border-[#246cfe]/40 hover:-translate-y-3 hover:shadow-[0_25px_50px_-12px_rgba(36,108,254,0.25)]",style:xe({animationDelay:`${se*100}ms`}),onClick:ie=>a(x)(s)},[e[30]||(e[30]=t("div",{class:"absolute inset-0 bg-gradient-to-b from-[#246cfe]/5 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-500 pointer-events-none"},null,-1)),t("button",{class:"absolute top-3 right-3 z-20 w-8 h-8 rounded-full bg-black/50 backdrop-blur-sm border border-white/10 flex items-center justify-center opacity-0 group-hover:opacity-100 transition-all duration-300 hover:bg-red-500/80 hover:border-red-500/50 cursor-pointer",onClick:be(ie=>ee(s),["stop"])},[...e[25]||(e[25]=[t("i",{class:"ri-delete-bin-line text-white/80 text-sm"},null,-1)])],8,pt),t("div",ut,[s.cover_image||s.coverImage?(i(),n("img",{key:0,src:a(Te)(s.cover_image||s.coverImage),class:"w-full h-full object-cover transition-all duration-700 group-hover:scale-110 opacity-60 group-hover:opacity-100 group-hover:brightness-110"},null,8,gt)):(i(),n("div",ft,[...e[26]||(e[26]=[ae('<div class="absolute inset-0 bg-gradient-to-br from-[#246cfe]/3 via-trans
1parent to-[#60a5fa]/3" data-v-d0562137></div><div class="relative z-10 flex flex-col items-center gap-3" data-v-d0562137><div class="relative" data-v-d0562137><i class="ri-movie-2-line text-5xl text-[#60a5fa]/60" data-v-d0562137></i><div class="absolute inset-0 blur-xl bg-gradient-to-br from-[#246cfe]/20 to-[#60a5fa]/20" data-v-d0562137></div></div><span class="text-[10px] font-black uppercase tracking-widest bg-gradient-to-r from-[#246cfe]/60 via-[#60a5fa]/60 to-[#246cfe]/60 bg-clip-text text-transparent" data-v-d0562137>暂无封面</span></div>',2)])])),e[27]||(e[27]=t("div",{class:"absolute inset-0 bg-gradient-to-t from-[#0a0c10] via-transparent to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-500"},null,-1))]),t("div",vt,[e[29]||(e[29]=t("div",{class:"absolute top-0 left-5 right-5 h-[1px] bg-gradient-to-r from-transparent via-white/[0.15] to-transparent"},null,-1)),t("h4",mt,I(s.name),1),t("div",xt,[t("div",bt,[t("span",ht,I(a(B)(s.created_at)),1),s.project_type!==void 0&&s.project_type!==null?(i(),n("span",{key:0,class:_(["text-[9px] font-bold px-1.5 py-0.5 rounded",s.project_type==="1"?"bg-emerald-500/20 text-emerald-400 border border-emerald-500/30":"bg-[#246cfe]/20 text-[#60a5fa] border border-[#246cfe]/30"])},I(s.project_type==="1"?"单集":"多集"),3)):A("",!0)]),e[28]||(e[28]=t("div",{class:"flex items-center gap-1.5 opacity-0 group-hover:opacity-100 transition-all duration-300 transform translate-x-2 group-hover:translate-x-0"},[t("span",{class:"text-[9px] font-black text-[#246cfe] uppercase"},"继续编辑"),t("i",{class:"ri-arrow-right-s-line text-[#246cfe] text-sm"})],-1))])])],12,ct))),128))]),a(L)||a(C)?(i(),n("div",_t,[...e[31]||(e[31]=[t("div",{class:"flex items-center gap-3"},[t("div",{class:"relative"},[t("div",{class:"w-5 h-5 border-2 border-white/25 border-t-[#246cfe] rounded-full animate-spin"})]),t("span",{class:"text-[10px] font-bold text-white/70 uppercase tracking-widest"},"加载中...")],-1)])])):A("",!0),a(z)?A("",!0):(i(),n("div",wt,[...e[32]||(e[32]=[t("div",{class:"flex items-center gap-3"},[t("div",{class:"h-[1px] w-12 bg-gradient-to-r from-transparent to-white/25"}),t("span",{class:"text-[10px] font-bold text-white/50 uppercase tracking-widest"},"已加载全部项目"),t("div",{class:"h-[1px] w-12 bg-gradient-to-l from-transparent to-white/25"})],-1)])]))],512)])],32)}}}),zt=we(yt,[["__scopeId","data-v-d0562137"]]);export{zt 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.