1import{_ as q,u as G,r as v,o as J,H as K,h as g,w as i,d as c,C as n,a as e,g as p,c as d,e as u,t as a,i as Q,l as _,m as I,N as W,q as X,s}from"./index-C2E9BOP-.js";import{p as Y}from"./projects-iVytSiJH.js";import{a as V}from"./mediaUrl-Di1s3GKQ.js";import{b as Z}from"./download-IQBXtZXN.js";import{L as ee}from"./LoadingState-edWDYIka.js";const oe={class:"workflow-content"},te={key:3,class:"videos-container"},re={class:"video-section"},se={class:"video-title"},ne={key:0,class:"video-wrapper"},ie=["src"],ae={key:1,class:"video-placeholder generating"},le={key:2,class:"video-actions"},de={class:"video-section"},ce={class:"video-title"},ve={key:0,class:"video-wrapper"},ue=["src"],pe={key:1,class:"video-placeholder generating"},he={key:2,class:"video-placeholder"},ge={key:3,class:"video-actions"},_e={class:"video-section"},ke={class:"video-title"},we={key:0,class:"video-wrapper"},fe=["src"],xe={key:1,class:"video-placeholder generating"},me={key:2,class:"video-placeholder"},ye={key:3,class:"video-actions"},be=1e4,Ce={__name:"ExportDetailPage",setup(Be){const $=Q(),{t,te:A}=G(),{refreshBalance:D}=X(),M=v($.params.id),O=v(!0),E=v(""),m=v(null),k=v(null),w=v(null),l=v(""),T=v(""),S=v(""),f=v(!1),U=I(()=>{const r=`exportError.${S.value||"unknown"}`,o=A(r)?t(r):t("exportError.unknown");return`${t("exports.processingFailed")}ï¼${o}`}),L=I(()=>l.value==="processing"||l.value==="pending");let x=null,P=!1;async function z(){try{const r=await Y.getExport(M.value);if(E.value=r.project_name||"",l.value=r.status||"",T.value=r.error_message||"",S.value=r.error_code||"",f.value=r.bgm_ready||!1,r.video_with_bgms&&(m.value=V(r.video_with_bgms)),r.video_with_avatars&&(k.value=V(r.video_with_avatars)),r.video_with_lbars&&(w.value=V(r.video_with_lbars)),l.value==="completed")y();else if(l.value==="processing"||l.value==="pending")R();else if(l.value==="failed"&&(y(),!P)){P=!0;try{await D()}catch(o){console.error("Error refreshing balance after export refund:",o)}}}catch(r){console.error("Error loading export:",r)}finally{O.value=!1}}function R(){x||(x=setInterval(z,be))}function y(){x&&(clearInterval(x),x=null)}function b(r){Z(M.value,r,W())}return J(z),K(y),(r,o)=>{const H=_("OvPageHeader"),h=_("OvSpinner"),j=_("OvBanner"),C=_("OvBadge"),B=_("OvButton"),F=_("OvPageShell");return s(),g(F,{size:"wide",class:"export-detail"},{default:i(()=>[c(H,{title:n(t)("exports.exportDetail"),subtitle:E.value||"",stacked:""},null,8,["title","subtitle"]),e("div",oe,[l.value==="processing"?(s(),g(j,{key:0,variant:"info",body:n(t)("exports.processing")},{icon:i(()=>[c(h,{size:"md"})]),_:1},8,["body"])):l.value==="failed"?(s(),g(j,{key:1,variant:"error",body:U.value},null,8,["body"])):p("",!0),O.value?(s(),g(ee,{key:2,text:n(t)("exports.loading")},null,8,["text"])):(s(),d("div",te,[e("div",re,[e("h3",se,[o[3]||(o[3]=e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[e("rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",stroke:"currentColor","stroke-width":"1.5"}),e("path",{d:"M16 10l6-3v10l-6-3v-4z",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),u(" "+a(n(t)("exports.subtitleVersion"))+" ",1),f.value?p("",!0):(s(),g(C,{key:0,class:"generating-badge",variant:"info",tone:"soft"},{icon:i(()=>[c(h,{size:12,inline:""})]),default:i(()=>[u(" "+a(n(t)("exports.generating")),1)]),_:1}))]),m.value&&f.value?(s(),d("div",ne,[e("video",{src:m.value,controls:"",controlslist:"nodownload",preload:"metadata",class:"video-player"},null,8,ie)])):f.value?p("",!0):(s(),d("div",ae,[c(h,{size:"md"}),e("p",null,a(n(t)("exports.generatingSubtitleVideo")),1)])),m.value&&f.value?(s(),d("div",le,[c(B,{variant:"primary",tone:"gray",pill:"",onClick:o[0]||(o[0]=N=>b("subtitle"))},{icon:i(()=>[...o[4]||(o[4]=[e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[e("path",{d:"M8 2v8M8 10L5 7M8 10l3-3M2 14h12",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])]),default:i(()=>[u(" "+a(n(t)("exports.download")),1)]),_:1})])):p("",!0)]),e("div",de,[e("h3",ce,[o[5]||(o[5]=e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[e("circle",{cx:"12",cy:"8",r:"4",stroke:"currentColor","stroke-width":"1.5"}),e("path",{d:"M4 20c0-4 4-6 8-6s8 2 8 6",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"})],-1)),u(" "+a(n(t)("exports.avatarVersion"))+" ",1),!k.value&&L.value?(s(),g(C,{key:0,class:"generating-badge",variant:"info",tone:"soft"},{icon:i(()=>[c(h,{size:12,inline:""})]),default:i(()=>[u(" "+a(n(t)("exports.generating")),1)]),_:1})):p("",!0)]),k.value?(s(),d("div",ve,[e("video",{src:k.value,controls:"",controlslist:"nodownload",preload:"metadata",class:"video-player"},null,8,ue)])):L.value?(s(),d("div",pe,[c(h,{size:"md"}),e("p",null,a(n(t)("exports.generatingAvatarVideo")),1)])):(s(),d("div",he,[e("p",null,a(n(t)("exports.processingFailed")),1)])),k.value?(s(),d("div",ge,[c(B,{variant:"primary",tone:"gray",pill:"",onClick:o[1]||(o[1]=N=>b("avatar"))},{icon:i(()=>[...o[6]||(o[6]=[e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"}
1,[e("path",{d:"M8 2v8M8 10L5 7M8 10l3-3M2 14h12",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])]),default:i(()=>[u(" "+a(n(t)("exports.download")),1)]),_:1})])):p("",!0)]),e("div",_e,[e("h3",ke,[o[7]||(o[7]=e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[e("rect",{x:"3",y:"3",width:"7",height:"7",rx:"1",stroke:"currentColor","stroke-width":"1.5"}),e("rect",{x:"14",y:"3",width:"7",height:"7",rx:"1",stroke:"currentColor","stroke-width":"1.5"}),e("rect",{x:"3",y:"14",width:"7",height:"7",rx:"1",stroke:"currentColor","stroke-width":"1.5"}),e("rect",{x:"14",y:"14",width:"7",height:"7",rx:"1",stroke:"currentColor","stroke-width":"1.5"})],-1)),u(" "+a(n(t)("exports.lShapeVersion"))+" ",1),!w.value&&(l.value==="processing"||l.value==="pending")?(s(),g(C,{key:0,class:"generating-badge",variant:"info",tone:"soft"},{icon:i(()=>[c(h,{size:12,inline:""})]),default:i(()=>[u(" "+a(n(t)("exports.generating")),1)]),_:1})):p("",!0)]),w.value?(s(),d("div",we,[e("video",{src:w.value,controls:"",controlslist:"nodownload",preload:"metadata",class:"video-player"},null,8,fe)])):l.value==="processing"||l.value==="pending"?(s(),d("div",xe,[c(h,{size:"md"}),e("p",null,a(n(t)("exports.generatingLBarVideo")),1)])):(s(),d("div",me,[o[8]||(o[8]=e("svg",{width:"48",height:"48",viewBox:"0 0 24 24",fill:"none"},[e("path",{d:"M4 4v16h16",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),e("rect",{x:"8",y:"8",width:"12",height:"8",stroke:"currentColor","stroke-width":"2"})],-1)),e("p",null,a(n(t)("exports.noLShapeVersion")),1)])),w.value?(s(),d("div",ye,[c(B,{variant:"primary",tone:"gray",pill:"",onClick:o[2]||(o[2]=N=>b("lbar"))},{icon:i(()=>[...o[9]||(o[9]=[e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[e("path",{d:"M8 2v8M8 10L5 7M8 10l3-3M2 14h12",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])]),default:i(()=>[u(" "+a(n(t)("exports.download")),1)]),_:1})])):p("",!0)])]))])]),_:1})}}},Le=q(Ce,[["__scopeId","data-v-267069be"]]);export{Le 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.