PageSourceSearch

https://www.getlyricvideo.com/_next/static/chunks/60df888ba19dcb0c.js?dpl=dpl_5KeprSywo7pUpQ7VeC84Pf9W2tPJ

js getlyricvideo.com collected 2026-10-09 23:03:19 UTC 30,376 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,384088,e=>{"use strict";let t=(0,e.i(889522).default)("image-plus",[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]]);e.s(["ImagePlus",()=>t],384088)},404947,e=>{"use strict";let t=new Set(["duration","billableSeconds","credits"]),s=new Set(["resolution","aspectRatio","style","musicStyle","sourcePage"]),a=new Set(["hasCharacterImage","hasLyrics","hasStyleImage"]);function r(e,r){let l=function(e){let r={};if(!e)return r;for(let[l,n]of Object.entries(e))if(null!=n)if(t.has(l)){let e=Math.round(Number(n));Number.isFinite(e)&&(r[l]=e)}else s.has(l)&&"string"==typeof n&&n?r[l]=n:a.has(l)&&"boolean"==typeof n&&(r[l]=n);return r}(r);try{if("function"==typeof window.gtag)return void window.gtag("event",e,l);Array.isArray(window.dataLayer)&&window.dataLayer.push({event:e,...l})}catch{}}e.s(["trackVibeMVEvent",()=>r])},409763,e=>{"use strict";var t=e.i(466471),s=e.i(536355),a=e.i(884702),r=e.i(247835),l=e.i(238946),l=l,n=e.i(910776),i=e.i(889522);let c=(0,i.default)("file-music",[["path",{d:"M10.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v8.4",key:"1d3kfm"}],["path",{d:"M8 18v-7.7L16 9v7",key:"1oie6o"}],["circle",{cx:"14",cy:"16",r:"2",key:"1bzzi3"}],["circle",{cx:"6",cy:"18",r:"2",key:"1fncim"}]]);var o=e.i(384088),d=e.i(462297),u=e.i(994772),m=e.i(550573);let x=(0,i.default)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);var p=e.i(653668),h=e.i(511398),f=e.i(273792),g=e.i(901017),b=e.i(638678),v=e.i(622491),j=e.i(575745),y=e.i(960568),N=e.i(764694);e.i(90985);let w=["mp3","wav"],k=["jpg","jpeg","png","webp"],S=["Pop","Rock","Hip Hop","R&B","Jazz","Reggae","Country","Folk","Electronic","Classical","Soul","Funk","Metal","Ambient","Others"],C=["Custom","Cinematic","Lo-fi","Dreamscape","Woolen Felt","Candy","Golden Age","Voxel","Retro Game","Claymation","Woodland Tale","Impressionism","Decadence","Futuristic","Chromatic Clash","Holiday"],L=["16:9","9:16","1:1","4:3","3:4"],T=["720p","1080p"],_={"720p":12,"1080p":18};class R extends Error{code;constructor(e,t){super(t||e),this.name="VibeMVValidationError",this.code=e}}var M=e.i(404947),V=e.i(759664);let I=[7e3,15e3,3e4],E=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,U="https://v3b.fal.media/files/b/0aaacc3d/OvOK5V9Iaf0QsJoJd7Upw_output.mp4";async function z(e){return new Promise((t,s)=>{let a=URL.createObjectURL(e),r=new Audio;r.preload="metadata",r.onloadedmetadata=()=>{URL.revokeObjectURL(a),Number.isFinite(r.duration)&&r.duration>0?t(r.duration):s(Error("duration_unreadable"))},r.onerror=()=>{URL.revokeObjectURL(a),s(Error("duration_unreadable"))},r.src=a})}function F(e){let t=Math.round(e),s=Math.floor(t/60);return`${s}:${String(t%60).padStart(2,"0")}`}async function O(e){let t=`/api/vibemv/download/${e}`;try{if(!(await fetch(t,{method:"HEAD"})).ok)return!1}catch{return!1}let s=document.createElement("a");return s.href=t,s.download=`vibemv-${e.slice(0,8)}.mp4`,document.body.appendChild(s),s.click(),s.remove(),!0}function A({initialAspectRatio:e="16:9",sourcePage:s,showIdleDemo:n=!0}={}){let i=(0,r.useTranslations)("music.vibemv.generator"),u=(0,r.useTranslations)("music.vibemv.status"),U=(0,r.useTranslations)("music.vibemv.result"),O=(0,r.useTranslations)("music.vibemv.errors"),P=(0,r.useTranslations)("music.vibemv.preview"),{user:H,setIsShowSignModal:$,fetchUserCredits:q}=(0,y.useAppContext)(),{show:J,InsufficientCreditsModal:G}=(0,N.useInsufficientCreditsModal)(),[K,W]=(0,a.useState)(null),[Q,X]=(0,a.useState)(!1),[Y,Z]=(0,a.useState)("Cinematic"),[ee,et]=(0,a.useState)(e),[es,ea]=(0,a.useState)("720p"),[er,el]=(0,a.useState)("auto"),[en,ei]=(0,a.useState)(""),[ec,eo]=(0,a.useState)(""),[ed,eu]=(0,a.useState)(""),[em,ex]=(0,a.useState)(null),[ep,eh]=(0,a.useState)(!1),[ef,eg]=(0,a.useState)(null),eb=(0,a.useRef)(!1),ev=(0,a.useRef)(null),ej=(0,a.useRef)(null),ey=(0,a.useRef)(null),eN=(0,a.useRef)(null),ew=(0,a.useCallback)(async e=>{try{let t=await fetch("/api/vibemv/tasks?limit=1");if(!t.ok)return;let s=await t.json().catch(()=>null),a=s?.data?.items;if(e&&!e())return;eg(Array.isArray(a)&&a.length>0?a[0]:null)}catch{}},[]),{task:ek,phase:eS,isUploading:eC,isSubmitting:eL,submitError:eT,insufficient:e_,generate:eR,restore:eM,reset:eV}=function({onTerminal:e,sourcePage:t}={}){let[s,r]=(0,a.useState)(null),[l,n]=(0,a.useState)(null),[i,c]=(0,a.useState)("idle"),[o,d]=(0,a.useState)(null),[u,m]=(0,a.useState)(null),x=(0,a.useRef)(null),p=(0,a.useRef)(null),h=(0,a.useRef)(0),f=(0,a.useRef)(!1),g=(0,a.useRef)(null),b=(0,a.useRef)(null),v=(0,a.useRef)(e);v.current=e;let j=(0,a.useCallback)(()=>{x.current&&(clearTimeout(x.current),x.current=null)},[]),y=(0,a.useCallback)(()=>{j(),p.current?.abort(),p.current=null},[j]),N=(0,a.useCallback)(async e=>{p.current?.abort();let s=new AbortController;p.current=s;try{let a=await fetch(`/api/vibemv/tasks/${e}`,{signal:s.signal});if(!a.ok)throw Error(`query failed: ${a.status}`);let{data:r}=await a.json();if(h.current=0,n(r),"success"===r.status||"failed"===r.status){f.current=!0,y(),(0,M.trackVibeMVEvent)("success"===r.status?"vibemv_generation_success":"vibemv_generation_failed",t?{sourcePage:t}:void 0),v.current?.(r);return}w(e,7e3)}catch(s){if(s?.name==="AbortError")return;let t=Math.min(h.current,I.length-1);h.current+=1,w(e,I[t])}},[y]),w=(0,a.useCallback)((e,t)=>{j(),x.current=setTimeout(()=>{"undefined"!=typeof document&&document.hidden?w(e,2e3):N(e)},t)},[j,N]),k=(0,a.useCallback)(e=>{f.current=!1,h.current=0,r(e),d(null),m(null),c("polling");{let t=new URL(window.location.href);t.searchParams.set("task",e),window.history.replaceState({},"",t.toString())}},[]);(0,a.useEffect)(()=>
1{if(!s)return;N(s);let e=()=>{document.hidden||!s||f.current||N(s)};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e),y()}},[s,N,y]);let S=(0,a.useCallback)(async e=>{let s=await fetch("/api/storage/upload-audio/presign",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({fileName:e.fileName,contentType:e.contentType,size:e.size,purpose:"vibemv"})});if(429===s.status)return{ok:!1,error:"upload_rate_limited"};let a=await s.json().catch(()=>null);if(!s.ok||a?.code!==0||!a?.data?.uploadUrl)return{ok:!1,error:"upload_failed"};let{uploadUrl:r,fileUrl:l,key:n,token:i}=a.data;return(await fetch(r,{method:"PUT",headers:{"Content-Type":a.data.contentType},body:e.file})).ok?((0,M.trackVibeMVEvent)("vibemv_audio_uploaded",t?{sourcePage:t}:void 0),{ok:!0,receipt:{fileUrl:l,key:n,token:i}}):{ok:!1,error:"upload_failed"}},[]),C=(0,a.useCallback)(async(e,s)=>{d(null),m(null),E.test(g.current||"")||(g.current="undefined"!=typeof crypto&&crypto.randomUUID?crypto.randomUUID():`${Date.now()}-${Math.random().toString(36).slice(2)}`);let a=g.current,r=b.current?.requestId===a?b.current.receipt:null;if(!r){c("uploading");let t=await S(e);if(!t.ok)return c("idle"),d(t.error),{status:"error",message:t.error};b.current={requestId:a,receipt:r=t.receipt}}c("submitting");try{let l=await fetch("/api/vibemv/generate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({requestId:a,audio:{fileUrl:r.fileUrl,key:r.key,token:r.token,fileName:e.fileName,size:e.size,...e.contentType?{contentType:e.contentType}:{}},...s})}),n=await l.json().catch(()=>null);if(402===l.status&&n?.details)return g.current=null,b.current=null,c("idle"),m(n.details),(0,M.trackVibeMVEvent)("vibemv_insufficient_credits",{resolution:s.resolution,aspectRatio:s.aspectRatio,style:s.style,...t?{sourcePage:t}:{}}),{status:"insufficient"};if(409===l.status)return g.current=null,b.current=null,c("idle"),d("request_id_conflict"),{status:"error",message:"request_id_conflict"};if(l.status>=400&&l.status<500)return g.current=null,b.current=null,c("idle"),d("generic"),{status:"error",message:n?.message};if(!l.ok||n?.code!==0||!n.data?.id)return c("idle"),d("generic"),{status:"error",message:n?.message};return g.current=null,b.current=null,(0,M.trackVibeMVEvent)("vibemv_generation_started",{resolution:s.resolution,aspectRatio:s.aspectRatio,style:s.style,...s.musicStyle?{musicStyle:s.musicStyle}:{},hasCharacterImage:!!s.characterImageUrl,hasStyleImage:!!s.styleImageUrl,hasLyrics:!!s.lyrics?.trim(),...t?{sourcePage:t}:{}}),k(n.data.id),{status:"ok"}}catch{return c("idle"),d("generic"),{status:"error",message:"network"}}},[k,S,t]);return{taskId:s,task:l,phase:i,isUploading:"uploading"===i,isSubmitting:"uploading"===i||"submitting"===i,submitError:o,insufficient:u,generate:C,restore:(0,a.useCallback)(e=>{e&&E.test(e)&&k(e)},[k]),reset:(0,a.useCallback)(()=>{y(),f.current=!1,g.current=null,b.current=null,r(null),n(null),c("idle"),d(null),m(null);{let e=new URL(window.location.href);e.searchParams.delete("task"),window.history.replaceState({},"",e.toString())}},[y])}}({sourcePage:s,onTerminal:e=>{q(),ew(),s&&"success"===e.status&&(0,V.trackEmbeddedLandingEvent)("embedded_generation_success",s,"vibemv")}});(0,a.useEffect)(()=>{s?(0,V.trackEmbeddedLandingEvent)("embedded_tool_view",s,"vibemv"):(0,M.trackVibeMVEvent)("vibemv_page_view")},[s]),(0,a.useEffect)(()=>{if(!H)return;let e=!0;return ew(()=>e),()=>{e=!1}},[H,ew]),(0,a.useEffect)(()=>{if(eb.current)return;eb.current=!0;let e=new URL(window.location.href).searchParams.get("task");e&&eM(e)},[eM]),(0,a.useEffect)(()=>{e_&&J({needed:e_.needed,available:e_.available,deficit:e_.deficit})},[e_]);let eI=(0,a.useCallback)(async e=>{let t,a=(e.name.split(".").pop()||"").toLowerCase();w.includes(a)?e.size>0x6400000&&(t="sizeTooLarge"):t="formatInvalid";let r={file:e,fileName:e.name,contentType:e.type||void 0,size:e.size,duration:null,error:t};if(W(r),!t){X(!0);try{let t=await z(e);t<10?W({...r,duration:t,error:"durationTooShort"}):Math.ceil(t)>360?W({...r,duration:t,error:"durationTooLong"}):(W({...r,duration:t}),(0,M.trackVibeMVEvent)("vibemv_audio_selected",{duration:Math.round(t),resolution:es,...s?{sourcePage:s}:{}}))}catch{W({...r,error:"durationReadFail"})}finally{X(!1)}}},[es,s]),eE=(0,a.useMemo)(()=>
1{if(!K||K.error||null===K.duration)return null;try{var e=K.duration;if(!Number.isFinite(e)||e<=0)throw new R("invalid_audio_duration");let t=Math.max(10,Math.ceil(e));if(t>360)throw new R("invalid_audio_duration");return t*_[es]}catch{return null}},[K,es]),eU=(0,a.useCallback)(async(e,t)=>{let s=(e.name.split(".").pop()||"").toLowerCase();if(k.includes(s)&&!(e.size>0xa00000)){ex(t);try{let s=new FormData;s.append("files",e);let a=await fetch("/api/storage/upload-image",{method:"POST",body:s}),r=await a.json().catch(()=>null),l=r?.data?.urls?.[0];r?.code===0&&l&&("character"===t?eo(l):eu(l))}catch{}finally{ex(null)}}},[]),ez=!!K&&!K.error&&!Q&&!eL,eF=(0,a.useCallback)(async()=>{ez&&K&&(H?((0,M.trackVibeMVEvent)("vibemv_generate_clicked",{resolution:es,aspectRatio:ee,style:Y,..."auto"!==er?{musicStyle:er}:{},hasCharacterImage:!!ec,hasStyleImage:!!ed,hasLyrics:!!en.trim(),...K.duration?{duration:Math.round(K.duration)}:{},...s?{sourcePage:s}:{}}),"ok"===(await eR({file:K.file,fileName:K.fileName,contentType:K.contentType,size:K.size},{style:Y,aspectRatio:ee,resolution:es,..."auto"!==er?{musicStyle:er}:{},...en.trim()?{lyrics:en}:{},...ec?{characterImageUrl:ec}:{},..."Custom"===Y&&ed?{styleImageUrl:ed}:{},...s?{sourcePage:s}:{}})).status&&(s&&(0,V.trackEmbeddedLandingEvent)("embedded_generation_started",s,"vibemv"),eN.current?.scrollIntoView({behavior:"smooth",block:"nearest"}))):$(!0))},[ez,K,H,$,eR,Y,ee,es,er,en,ec,ed,s]),eO=ek?.status==="success",eA=ek?.status==="failed",eB=eL||!!ek&&!eO&&!eA,eD=eC?"uploading":"submitting"===eS?"submitting":ek?.stage||"queued",eP="uploading"===eD||"submitting"===eD?8:"queued"===eD?15:"generating"===eD?60:"finalizing"===eD?90:30,eH=(()=>
1{if("uploading"===eD||"submitting"===eD)return i("uploading");switch(ek?.stage){case"queued":case"submitting":return u("queued");case"generating":default:return u("generating");case"finalizing":return u("finalizing")}})(),e$=eT?O.has(eT)?O(eT):O("generic"):"",eq=(()=>{if(!eA||!ek?.error)return"";let e=ek.error.code||"generic";return O.has(e)?O(e):ek.error.message||O("generic")})();return(0,t.jsxs)("div",{className:"mx-auto w-full max-w-6xl",children:[(0,t.jsxs)("div",{className:"grid gap-6 lg:grid-cols-2",children:[(0,t.jsxs)("div",{className:"rounded-2xl border bg-card/80 p-5 shadow-sm backdrop-blur sm:p-6",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(f.Label,{htmlFor:"vibemv-audio",children:i("audioLabel")}),K?(0,t.jsxs)("div",{className:"rounded-xl border bg-background/40 p-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("p",{className:"truncate text-sm font-medium",children:K.fileName}),(0,t.jsx)("p",{className:"mt-0.5 text-xs text-muted-foreground",children:Q?i("readingDuration"):null!==K.duration?`${F(K.duration)} \xb7 ${(K.size/1048576).toFixed(1)} MB`:i("audioConstraints")})]}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-1",children:[(0,t.jsx)(h.Button,{type:"button",variant:"ghost",size:"sm",onClick:()=>ev.current?.click(),children:i("changeFile")}),(0,t.jsx)(h.Button,{type:"button",variant:"ghost",size:"icon","aria-label":i("removeFile"),onClick:()=>W(null),children:(0,t.jsx)(p.X,{className:"h-4 w-4"})})]})]}),K.error&&(0,t.jsx)("p",{className:"mt-2 text-sm text-destructive",role:"alert",children:i(K.error)})]}):(0,t.jsxs)("label",{htmlFor:"vibemv-audio",className:"flex min-h-[7rem] cursor-pointer flex-col items-center justify-center gap-2 rounded-xl border border-dashed bg-background/40 p-6 text-center transition-colors hover:border-primary/50",onDragOver:e=>e.preventDefault(),onDrop:e=>{e.preventDefault();let t=e.dataTransfer.files?.[0];t&&eI(t)},children:[(0,t.jsx)(c,{className:"h-6 w-6 text-muted-foreground"}),(0,t.jsx)("span",{className:"text-sm font-medium",children:i("audioEmpty")}),(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:i("audioConstraints")})]}),(0,t.jsx)("input",{id:"vibemv-audio",ref:ev,type:"file",accept:".mp3,.wav,audio/mpeg,audio/wav",className:"hidden",onChange:e=>{let t=e.target.files?.[0];t&&eI(t),e.currentTarget.value=""}})]}),(0,t.jsxs)("div",{className:"mt-5 grid gap-4 sm:grid-cols-2",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(f.Label,{children:i("visualStyle")}),(0,t.jsxs)(b.Select,{value:Y,onValueChange:e=>{Z(e),"Custom"!==e&&eu("")},children:[(0,t.jsx)(b.SelectTrigger,{"aria-label":i("visualStyle"),children:(0,t.jsx)(b.SelectValue,{})}),(0,t.jsx)(b.SelectContent,{children:C.map(e=>(0,t.jsx)(b.SelectItem,{value:e,children:e},e))})]}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:i("visualStyleHint")})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(f.Label,{children:i("resolution")}),(0,t.jsx)("div",{className:"flex gap-2",children:T.map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>ea(e),className:`flex-1 rounded-lg border px-3 py-2 text-sm font-medium transition-colors ${es===e?"border-primary bg-primary/10 text-primary":"bg-background/40 hover:border-primary/30"}`,children:e},e))}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:i("resolutionHint")})]})]}),(0,t.jsxs)("div",{className:"mt-4 space-y-2",children:[(0,t.jsx)(f.Label,{children:i("aspectRatio")}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:L.map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>et(e),className:`rounded-lg border px-4 py-2 text-sm font-medium transition-colors ${ee===e?"border-primary bg-primary/10 text-primary":"bg-background/40 hover:border-primary/30"}`,children:e},e))})]}),(0,t.jsxs)(j.Collapsible,{open:ep,onOpenChange:eh,className:"mt-5",children:[(0,t.jsx)(j.CollapsibleTrigger,{asChild:!0,children:(0,t.jsx)(h.Button,{type:"button",variant:"ghost",size:"sm",className:"px-2 text-muted-foreground",children:ep?i("advancedOpen"):i("advanced")})}),(0,t.jsxs)(j.CollapsibleContent,{className:"mt-4 space-y-5",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(f.Label,{children:i("characterImage")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:i("characterImageHint")}),(0,t.jsx)("div",{className:"flex items-center gap-3",children:ec?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("img",{src:ec,alt:"character",className:"h-16 w-16 rounded-lg border object-cover"}),(0,t.jsx)(h.Button,{type:"button",variant:"outline",size:"sm",onClick:()=>ej.current?.click(),children:i("replaceImage")}),(0,t.jsx)(h.Button,{type:"button",variant:"ghost",size:"icon","aria-label":i("removeImage"),onClick:()=>eo(""),children:(0,t.jsx)(x,{className:"h-4 w-4"})})]}):(0,t.jsxs)(h.Button,{type:"button",variant:"outline",size:"sm",disabled:"character"===em,onClick:()=>ej.current?.click(),children:["character"===em?(0,t.jsx)(d.Loader2,{className:"mr-2 h-4 w-4 animate-spin"}):(0,t.jsx)(o.ImagePlus,{className:"mr-2 h-4 w-4"}),i("uploadImage")]})}),(0,t.jsx)("input",{ref:ej,type:"file",accept:".jpg,.jpeg,.png,.webp",className:"hidden",onChange:e=>{let t=e.target.files?.[0];t&&eU(t,"character"),e.currentTarget.value=""}})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(f.Label,{children:i("musicStyle")}
1),(0,t.jsxs)(b.Select,{value:er,onValueChange:el,children:[(0,t.jsx)(b.SelectTrigger,{"aria-label":i("musicStyle"),children:(0,t.jsx)(b.SelectValue,{})}),(0,t.jsxs)(b.SelectContent,{children:[(0,t.jsx)(b.SelectItem,{value:"auto",children:i("musicStyleAuto")}),S.map(e=>(0,t.jsx)(b.SelectItem,{value:e,children:e},e))]})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)(f.Label,{htmlFor:"vibemv-lyrics",children:i("lyrics")}),(0,t.jsxs)("span",{className:"text-xs text-muted-foreground",children:[Array.from(en.trim()).length,"/",5e3]})]}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:i("lyricsHint")}),(0,t.jsx)(v.Textarea,{id:"vibemv-lyrics",value:en,onChange:e=>ei(e.target.value),placeholder:i("lyricsPlaceholder"),rows:5,className:"font-mono text-sm"})]}),"Custom"===Y&&(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(f.Label,{children:i("customStyleRef")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:i("customStyleRefHint")}),(0,t.jsx)("div",{className:"flex items-center gap-3",children:ed?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("img",{src:ed,alt:"style",className:"h-16 w-16 rounded-lg border object-cover"}),(0,t.jsx)(h.Button,{type:"button",variant:"outline",size:"sm",onClick:()=>ey.current?.click(),children:i("replaceImage")}),(0,t.jsx)(h.Button,{type:"button",variant:"ghost",size:"icon","aria-label":i("removeImage"),onClick:()=>eu(""),children:(0,t.jsx)(x,{className:"h-4 w-4"})})]}):(0,t.jsxs)(h.Button,{type:"button",variant:"outline",size:"sm",disabled:"style"===em,onClick:()=>ey.current?.click(),children:["style"===em?(0,t.jsx)(d.Loader2,{className:"mr-2 h-4 w-4 animate-spin"}):(0,t.jsx)(o.ImagePlus,{className:"mr-2 h-4 w-4"}),i("uploadImage")]})}),(0,t.jsx)("input",{ref:ey,type:"file",accept:".jpg,.jpeg,.png,.webp",className:"hidden",onChange:e=>{let t=e.target.files?.[0];t&&eU(t,"style"),e.currentTarget.value=""}})]})]})]}),null!==eE&&(0,t.jsxs)("div",{className:"mt-5 rounded-xl border bg-background/40 p-4",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2 text-sm",children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:i("price.songLength")}),(0,t.jsx)("span",{className:"font-medium",children:K?.duration!==null&&K?.duration!==void 0?F(K.duration):"—"}),(0,t.jsx)("span",{className:"text-muted-foreground",children:i("price.resolutionLabel")}),(0,t.jsx)("span",{className:"font-medium",children:es}),(0,t.jsx)("span",{className:"text-muted-foreground",children:i("price.estimatedCredits")}),(0,t.jsx)("span",{className:"text-base font-bold text-primary",children:eE})]}),(0,t.jsx)("p",{className:"mt-2 text-xs text-muted-foreground",children:i("price.perSecondNote")})]}),(0,t.jsxs)("div",{className:"mt-5 space-y-3",children:[(eT||eq)&&!eB&&(0,t.jsx)("p",{className:"text-sm text-destructive",role:"alert",children:eT?e$:eq}),eA&&ek?.credits?.refunded&&(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:u("refundDone")}),(0,t.jsx)(h.Button,{size:"lg",className:"min-h-[3.25rem] w-full whitespace-normal px-4 text-sm sm:text-base",onClick:eF,disabled:!ez||eB,children:eB?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.Loader2,{className:"mr-2 h-4 w-4 animate-spin"}),eH]}):!K||K.error?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.default,{className:"mr-2 h-4 w-4"}),i("ctaNoFile")]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.Sparkles,{className:"mr-2 h-4 w-4"}),i("cta"),null!==eE?` \xb7 ${eE} ${i("creditsUnit")}`:""]})}),!H&&(0,t.jsx)("p",{className:"text-center text-xs text-muted-foreground",children:i("signInHint")}),eB&&!eC&&(0,t.jsx)("p",{className:"text-center text-xs text-muted-foreground",children:i("fullSongNote")}),(eB||ek)&&(0,t.jsx)("p",{className:"text-center text-xs text-muted-foreground",children:i("keepTabOpen")})]})]}),(0,t.jsx)("div",{ref:eN,className:"min-w-0",children:eO&&ek?.result?(0,t.jsx)(D,{task:ek,onReset:eV}):eA?(0,t.jsxs)("div",{className:"flex h-full flex-col items-center justify-center gap-3 rounded-2xl border bg-card/80 p-5 text-center shadow-sm backdrop-blur sm:p-6",children:[(0,t.jsx)("p",{className:"text-sm text-destructive",role:"alert",children:eq||u("failed")}),ek?.credits?.refunded&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:u("refundDone")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:u("failedHint")}),(0,t.jsx)(h.Button,{type:"button",variant:"outline",onClick:eV,children:U("tryAgain")})]}):eB?(0,t.jsxs)("div",{className:"flex h-full flex-col rounded-2xl border bg-card/80 p-5 shadow-sm backdrop-blur sm:p-6",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(d.Loader2,{className:"h-5 w-5 animate-spin text-primary"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"truncate text-sm font-semibold",children:P("generating")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:eH})]}),(0,t.jsxs)("span",{className:"text-xs font-medium text-muted-foreground",children:[eP,"%"]})]}),(0,t.jsx)(g.Progress,{value:eP,className:"mt-4 h-2"}),(0,t.jsx)("p",{className:"mt-5 mb-3 text-xs font-semibold uppercase tracking-wide text-muted-foreground",children:u("stepsTitle")}),(0,t.jsx)("ul",{className:"flex-1 space-y-2 text-sm text-muted-foreground",children:u.raw("steps").map((e,s)=>(0,t.jsxs)("li",{className:"rounded-lg border bg-background/40 px-3 py-2",children:[s+1,". ",e]},e))})]}):(0,t.jsx)(B,{history:ef,showDemo:n})})]}),(0,t.jsx)(G,{})]})}function B(e){let a,l,n,i,c,o,d=(0,s.c)(46),{history:m,showDemo:x}=e,p=(0,r.useTranslations)("music.vibemv.preview"),h=(0,r.useTranslations)("music.vibemv.demo"),f=(0,r.useTranslations)("music.vibemv.result");if(m?.result?.videoUrl){let e,s,a,r,l,n,i,c,o;return d[0]!==p?(e=p("latestTitle"),d[0]=p,d[1]=e):e=d[1],d[2]!==e?(s=(0,t.jsx)("p",{className:"text-xs font-semibold uppercase tracking-wide text-muted-foreground",children:e}),d[2]=e,d[3]=s):s=d[3],d[4]!==m.result.videoUrl?(a=(0,t.jsx)("div",{className:"flex min-h-[14rem] flex-1 items-center justify-center overflow-hidden rounded-xl bg-black/5",children:(0,t.jsx)("video",{className:"max-h-full w-full rounded-lg object-contain",src:m.result.videoUrl,controls:!0,playsInl
1ine:!0,preload:"metadata"})}),d[4]=m.result.videoUrl,d[5]=a):a=d[5],d[6]!==m.input||d[7]!==f?(r=m.input?.style&&(0,t.jsxs)("p",{children:[(0,t.jsxs)("span",{className:"text-muted-foreground",children:[f("styleLabel"),": "]}),(0,t.jsx)("span",{className:"font-medium",children:m.input.style})]}),d[6]=m.input,d[7]=f,d[8]=r):r=d[8],d[9]!==m.result.aspectRatio||d[10]!==f?(l=m.result.aspectRatio&&(0,t.jsxs)("p",{children:[(0,t.jsxs)("span",{className:"text-muted-foreground",children:[f("aspectLabel"),": "]}),(0,t.jsx)("span",{className:"font-medium",children:m.result.aspectRatio})]}),d[9]=m.result.aspectRatio,d[10]=f,d[11]=l):l=d[11],d[12]!==m.result.resolution||d[13]!==f?(n=m.result.resolution&&(0,t.jsxs)("p",{children:[(0,t.jsxs)("span",{className:"text-muted-foreground",children:[f("resolutionLabel"),": "]}),(0,t.jsx)("span",{className:"font-medium",children:m.result.resolution})]}),d[12]=m.result.resolution,d[13]=f,d[14]=n):n=d[14],d[15]!==m.result.durationSeconds||d[16]!==f?(i=!!m.result.durationSeconds&&(0,t.jsxs)("p",{children:[(0,t.jsxs)("span",{className:"text-muted-foreground",children:[f("durationLabel"),": "]}),(0,t.jsx)("span",{className:"font-medium",children:F(m.result.durationSeconds)})]}),d[15]=m.result.durationSeconds,d[16]=f,d[17]=i):i=d[17],d[18]!==r||d[19]!==l||d[20]!==n||d[21]!==i?(c=(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-2 text-sm sm:grid-cols-3",children:[r,l,n,i]}),d[18]=r,d[19]=l,d[20]=n,d[21]=i,d[22]=c):c=d[22],d[23]!==s||d[24]!==a||d[25]!==c?(o=(0,t.jsxs)("div",{className:"flex h-full flex-col gap-3 rounded-2xl border bg-card/80 p-5 shadow-sm backdrop-blur sm:p-6",children:[s,a,c]}),d[23]=s,d[24]=a,d[25]=c,d[26]=o):o=d[26],o}if((void 0===x||x)&&U){let e,s,a,r;return d[27]!==h?(e=h("badge"),d[27]=h,d[28]=e):e=d[28],d[29]!==e?(s=(0,t.jsx)("p",{className:"text-xs font-semibold uppercase tracking-wide text-muted-foreground",children:e}),d[29]=e,d[30]=s):s=d[30],d[31]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)("div",{className:"flex min-h-[14rem] flex-1 items-center justify-center overflow-hidden rounded-xl bg-black/5",children:(0,t.jsx)("video",{className:"max-h-full w-full rounded-lg object-contain",src:U,controls:!0,playsInline:!0,preload:"metadata"})}),d[31]=a):a=d[31],d[32]!==s?(r=(0,t.jsxs)("div",{className:"flex h-full flex-col gap-3 rounded-2xl border bg-card/80 p-5 shadow-sm backdrop-blur sm:p-6",children:[s,a]}),d[32]=s,d[33]=r):r=d[33],r}return d[34]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)(u.Music,{className:"h-10 w-10 text-muted-foreground/60"}),d[34]=a):a=d[34],d[35]!==p?(l=p("placeholderTitle"),d[35]=p,d[36]=l):l=d[36],d[37]!==l?(n=(0,t.jsx)("p",{className:"text-sm font-medium",children:l}),d[37]=l,d[38]=n):n=d[38],d[39]!==p?(i=p("placeholderHint"),d[39]=p,d[40]=i):i=d[40],d[41]!==i?(c=(0,t.jsx)("p",{className:"max-w-xs text-xs text-muted-foreground",children:i}),d[41]=i,d[42]=c):c=d[42],d[43]!==n||d[44]!==c?(o=(0,t.jsx)("div",{className:"flex h-full flex-col rounded-2xl border bg-card/80 p-5 shadow-sm backdrop-blur sm:p-6",children:(0,t.jsxs)("div",{className:"flex min-h-[18rem] flex-1 flex-col items-center justify-center gap-3 rounded-xl border border-dashed bg-background/40 p-8 text-center",children:[a,n,c]})}),d[43]=n,d[44]=c,d[45]=o):o=d[45],o}function D(e){let l,i,c,o,d,u,x,p,f,g,b,v,j,y,N,w,k,S=(0,s.c)(47),{task:C,onReset:L}=e,T=(0,r.useTranslations)("music.vibemv.result"),[_,R]=(0,a.useState)(!1),V=C.result,I=V.resolution||C.input?.resolution||"",E=V.aspectRatio||C.input?.aspectRatio||"";return S[0]!==T?(l=T("yourVideo"),S[0]=T,S[1]=l):l=S[1],S[2]!==l?(i=(0,t.jsx)("h3",{className:"text-sm font-semibold uppercase tracking-wide text-muted-foreground",children:l}),S[2]=l,S[3]=i):i=S[3],S[4]!==V.videoUrl?(c=(0,t.jsx)("div",{className:"flex min-h-[14rem] flex-1 items-center justify-center overflow-hidden rounded-xl bg-black/5",children:(0,t.jsx)("video",{className:"max-h-full w-full rounded-lg object-contain",src:V.videoUrl,controls:!0,playsInline:!0,preload:"metadata"})}),S[4]=V.videoUrl,S[5]=c):c=S[5],S[6]!==I||S[7]!==T?(o=I&&(0,t.jsxs)("p",{children:[(0,t.jsxs)("span",{className:"text-muted-foreground",children:[T("resolutionLabel"),": "]}),(0,t.jsx)("span",{className:"font-medium",children:I})]}),S[6]=I,S[7]=T,S[8]=o):o=S[8],S[9]!==E||S[10]!==T?(d=E&&(0,t.jsxs)("p",{children:[(0,t.jsxs)("span",{className:"text-muted-foreground",children:[T("aspectLabel"),": "]}),(0,t.jsx)("span",{className:"font-medium",children:E})]}),S[9]=E,S[10]=T,S[11]=d):d=S[11],S[12]!==V.durationSeconds||S[13]!==T?(u=!!V.durationSeconds&&(0,t.jsxs)("p",{children:[(0,t.jsxs)("span",{className:"text-muted-foreground",children:[T("durationLabel"),": "]}),(0,t.jsx)("span",{className:"font-medium",children:F(V.durationSeconds)})]}),S[12]=V.durationSeconds,S[13]=T,S[14]=u):u=S[14],S[15]!==o||S[16]!==d||S[17]!==u?(x=(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-2 text-sm sm:grid-cols-3",children:[o,d,u]}),S[15]=o,S[16]=d,S[17]=u,S[18]=x):x=S[18],S[19]!==E||S[20]!==I||S[21]!==C.id?(p=async()=>{(0,M.trackVibeMVEvent)("vibemv_download_clicked",{resolution:I,aspectRatio:E}),R(!await O(C.id))},S[19]=E,S[20]=I,S[21]=C.id,S[22]=p):p=S[22],S[23]===Symbol.for("react.memo_cache_sentinel")?(f=(0,t.jsx)(n.Download,{className:"mr-2 h-4 w-4"}),S[23]=f):f=S[23],S[24]!==T?(g=T("download"),S[24]=T,S[25]=g):g=S[25],S[26]!==g||S[27]!==p?(b=(0,t.jsxs)(h.Button,{type:"button",onClick:p,children:[f,g]}),S[26]=g,S[27]=p,S[28]=b):b=S[28],S[29]===Symbol.for("react.memo_cache_sentinel")?(v=(0,t.jsx)(m.Sparkles,{className:"mr-2 h-4 w-4"}),S[29]=v):v=S[29],S[30]!==T?(j=T("generateAgain"),S[30]=T,S[31]=j):j=S[31],S[32]!==L||S[33]!==j?(y=(0,t.jsxs)(h.Button,{type:"button",variant:"outline",onClick:L,children:[v,j]}),S[32]=L,S[33]=j,S[34]=y):y=S[34],S[35]!==b||S[36]!==y?(N=(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[b,y]}),S[35]=b,S[36]=y,S[37]=N):N=S[37],S[38]!==_||S[39]!==T?(w=_&&(0,t.jsx)("p",{className:"text-sm text-destructive",role:"alert",children:T("downloadFailed")}),S[38]=_,S[39]=T,S[40]=w):w=S[40],S[41]!==N||S[42]!==w||S[43]!==i||S[44]!==c||S[45]!==x?(k=(0,t.jsxs)("div",{className:"flex h-full flex-col gap-4 roun
1ded-2xl border bg-card/80 p-5 shadow-sm backdrop-blur sm:p-6",children:[i,c,x,N,w]}),S[41]=N,S[42]=w,S[43]=i,S[44]=c,S[45]=x,S[46]=k):k=S[46],k}e.s(["VibeMVGenerator",()=>A],409763)}]);

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.