PageSourceSearch

https://vapps-res.media.io/mediaai/_nuxt/index-CzscNRyU.js

js media.io collected 2026-09-24 08:54:39 UTC 4,472 bytes, 1 lines download raw bytes

1import{i as B,R as l,ab as D,aE as _,bP as V,E as H,aB as N,bQ as h,bR as j,bS as F,a as C,ae as O,bD as U,_ as G}from"./BuQWImh-.js";import{d as q,r as f,c as b,w as J,y as g,z as p,A as i,E as c,f as T,D as t,R as d,B as v,J as k,L as u,I}from"./chunk-vue-TRwxe8i9.js";import{T as K}from"./TaskVideoResultItem-B5wQ4nlu.js";import{r as Q}from"./mvAgentScript-BJP3DOnk.js";import"./chunk-pinia-DfnRCC0j.js";import"./chunk-i18n-CEBPY5W3.js";import"./chunk-alioss-Co3x7qJ6.js";import"./chunk-fabric-NyCWrAO1.js";import"./agentRefinePlan-DmLfrv_V.js";import"./agentConfig-DEjPhl-I.js";import"./TaskRefineWithAgentBtn-B_9jQy2N.js";import"./useCwcsUpload-CG_XoZbx.js";const W={class:"mv-agent-step-compose"},X={class:"mv-agent-step-compose-title"},Y={class:"mv-agent-step-compose-desc"},Z={key:0,class:"w-full max-w-[1200px] mx-auto min-h-[340px] flex flex-col items-center justify-center gap-2"},ee={class:"text-[--color-text-dynamic-white-secondary] text-sm font-bold leading-[22px]"},te={key:1,class:"mv-agent-step-compose-result"},ae={class:"w-full flex items-center justify-center gap-4"},se=q({__name:"index",props:{groupId:{},currentStep:{},currentStepLabel:{},currentStepSubtitle:{},previousStep:{},nextStep:{},tasks:{},nextStepTasks:{},previousStepTasks:{},createInputStepExtraParams:{},extraParams:{},previousStepExtraParams:{},nextStepExtraParams:{},pollingStatus:{},pollingResult:{},report:{type:Function},clearStepAfterAllData:{type:Function},clearStepExtraParams:{type:Function}},emits:["start-polling","stop-polling"],setup(R,{emit:E}){const n=R,z=E,y=f(),r=B(),a=f(null),m=f(!1),S=b(()=>a.value?.info?.status===3),A=b(()=>a.value?.info?.status===4);function M(){H({name:N.Assets,query:{media_type:"video"}})}function P(){const e=a.value?.info?.user_data?.num||l.agentMvCompose;h({section:"preview_area",media_type:"video",button:"play"},{miai_unit_code:e}),j({handle_type:"play",handle_status:"trigger",handle_view:"card"},{miai_unit_code:e})}function L(){h({section:"preview_area",media_type:"video",button:"download"},{miai_unit_code:a.value?.info?.user_data?.num||l.agentMvCompose}),y.value?.downloadHandle()}async function $(){const e=a.value;if(!e)return;if(F({creation_stage:n.currentStep,button:"regenerate"},{creation_stage:"compose",pfunction_display:"agent",miai_unit_code:l.agentMvCompose}),!C().isLogin)return C().showLoginDialogStatus("login");if(!await O(e.info?.algorithm||l.agentMvCompose,"mv"))return;await U.getSpaceIdAsync();const s=e.task_id,x=await Q({taskId:e.task_id,algorithm:e.info?.algorithm||l.agentMvCompose,keepOrigin:!0});if(!x)return;const w=(n.tasks||[]).map(o=>o.task_id===s?{...o,task_id:x,info:null}:o);a.value=null,m.value=!1,await n.report({tarStep:n.currentStep,tasks:w}),setTimeout(()=>{z("start-polling",w.filter(o=>o.task_id).map(o=>({type:o.type||"",task_id:o.task_id})))},1e3)}return J(()=>[n.tasks,n.pollingStatus],()=>{const e=n.tasks?.findLast(s=>s.type===l.agentMvCompose);e?.info&&(a.value=e,m.value=!0)},{immediate:!0,deep:!0}),(e,s)=>(p(),g("div",W,[i("div",X,c(e.$t(e.currentStepLabel||"mv_agent.step_compose_title")),1),i("div",Y,c(e.$t(e.currentStepSubtitle||"mv_agent.step_compose_subtitle")),1),!m.value||!a.value?.info?(p(),g("div",Z,[T(t(D),{size:40}),i("div",ee,c(e.$t("mv_agent.tips_ai_generating")),1)])):(p(),g("div",te,[T(K,{ref_key:"resultRef",ref:y,data:a.value?.info,class:u(["list-item"]),"card-size":"large","is-txt-to-img-list-show":!1,"download-name":"mv_agent_c
1ompose","row-index":1,"in-library":!1,"report-task-end":!1,"track-module":t(V),"handle-view":"card",onTaskVideoPlay:P},{"icon-tr":d(()=>[...s[0]||(s[0]=[i("div",{class:"hidden"},null,-1)])]),header:d(()=>[...s[1]||(s[1]=[i("div",{class:"hidden"},null,-1)])]),bottom:d(()=>[i("div",ae,[S.value?(p(),v(t(_),{key:0,class:u({"flex-1":t(r)}),type:"secondary",size:t(r)?"lg":"xl",onClick:M},{default:d(()=>[I(c(e.$t("mv_agent.step_export_view")),1)]),_:1},8,["class","size"])):k("",!0),S.value?(p(),v(t(_),{key:1,class:u({"flex-1":t(r)}),type:"primary",size:t(r)?"lg":"xl",onClick:L},{default:d(()=>[i("span",null,c(e.$t("common.download")),1)]),_:1},8,["class","size"])):k("",!0),A.value?(p(),v(t(_),{key:2,class:u({"flex-1":t(r)}),type:"secondary",size:t(r)?"lg":"xl",onClick:$},{default:d(()=>[I(c(e.$t("ai_video_generator.regenerate")),1)]),_:1},8,["class","size"])):k("",!0)])]),_:1},8,["data","track-module"])]))]))}}),ge=Object.assign(G(se,[["__scopeId","data-v-765571b1"]]),{__name:"MvAgentStepCompose"});export{ge 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.