1import{_ as e,b8 as a,ax as t,h as s,aO as o}from"./index-DIXwfVMT.js";import{r,c as i,f as l,aH as n,x as m,B as p,U as c,u,O as v,g as d,aA as f,au as g,y as j}from"./vendor-core-DockhpYX.js";import{u as C}from"./agentEasyStore-CW2xDNfZ.js";import{e as _,h,i as x}from"./templateTracking-DKZyR1Vo.js";import{c as b,C as k}from"./CreationTemplateList-DGJttMN5.js";import"./i18n-misc-CJ8HFqLU.js";import"./axios-C-1G2k3o.js";import"./element-plus-CADUlNlv.js";import"./@ffmpeg-CcTuH-sP.js";import"./@paypal-DitgUCQS.js";import"./AudioPlayer-C0e_oCjk.js";import"./LoaderCircle-CVBYnNOL.js";import"./utils-BoALak89.js";import"./LoaderWave-BLdNKbR3.js";import"./PullTo-BIvbThln.js";const y={class:"creation-template-page"},P={class:"creation-template-page__header"},T=e({__name:"CreationTemplatePage",setup(e){var T,A,B;const D=f(),L=g(),S=null==(B=null==(A=null==(T=d())?void 0:T.appContext)?void 0:A.config)?void 0:B.globalProperties,{$$t:E}=(null==S?void 0:S.$i18n)??{},I=b({logEvent:e=>{var a;return null==(a=null==S?void 0:S.logCustomEvent)?void 0:a.call(S,e)}}),M=r(!1),$=C(),q=a(),w=t(),{setDraftInput:z,setInstrumental:O,setReference:R,setRemix:U,setTemplateAssociation:F,setVocal:G}=q,H=i(()=>1===Number(D.query.template_scene)?1:2),J=i(()=>1===H.value&&o(D.query)),K=()=>{L.back()},N=()=>{M.value=!0,L.back()},V=e=>{if(!e)return;if(J.value)return $.setTemplateDraft(e),void N();if(1===H.value){const a=_(e);if(!a)return;return z(a.prompt),O(!1),R(a.refer),G(a.vocal),U(a.remix),F(a.association),void N()}const a=w.isBgmMode?h(e):x(e);a&&(w.isBgmMode?w.setCreateAdvanceBgmSongData(a,!0):w.setCreateAdvanceSongData(a,!0),N())};return l(()=>{I.trackPageShow()}),n(()=>{M.value||I.trackPageClose()}),(e,a)=>(j(),m("main",y,[p("header",P,[c(u(s),{class:"creation-template-page__back",name:"sys-chevron-left",size:"20px",color:"#fff",onClick:K}),p("h1",null,v(u(E)("video.template")),1),a[0]||(a[0]=p("span",{"aria-hidden":"true"},null,-1))]),c(k,{mobile:"","show-title":!1,scene:H.value,onUseTemplate:V},null,8,["scene"])]))}},[["__scopeId","data-v-a221b76c"]]);export{T 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.