PageSourceSearch

https://www.lumadreammachine.app/_next/static/chunks/4015-a111ec15945d41ca.js

js lumadreammachine.app collected 2026-10-07 00:04:33 UTC 162,045 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4015],{6069:(e,t,o)=>{o.d(t,{R_:()=>i});let a=new Set(["KH","ID","LA","MM","MY","PH","TH","TL","VN"]),r=new Set(["DZ","AO","BJ","BW","BF","BI","CV","CM","CF","TD","KM","CG","CD","CI","DJ","EG","GQ","ER","SZ","ET","GA","GM","GH","GN","GW","KE","LS","LR","LY","MG","MW","ML","MR","MU","MA","MZ","NA","NE","NG","RW","ST","SN","SC","SL","SO","ZA","SS","SD","TZ","TG","TN","UG","ZM","ZW","EH","RE","YT"]),s=new Set(["IN","PK","BD","NP","LK"]);function i(e){return!function(e){var t;let o=(t=e)?t.trim().toUpperCase():null;return!!(o&&(s.has(o)||a.has(o)||r.has(o)))}(e)?9e4:5e4}},19355:(e,t,o)=>{o.d(t,{CG:()=>u,m2:()=>m,pM:()=>p,rd:()=>c});var a=o(90266);let r=!1,s=!1,i={analytics:!1,marketing:!1},d=null,l=[];function n(){a.A.consentV2({ad_Storage:i.marketing?"granted":"denied",analytics_Storage:i.analytics?"granted":"denied"}),i.analytics||a.A.consent(!1)}function c(e){if(r||s||!e)return()=>{};s=!0;let t=!1,o=()=>{if(!t&&!r){if(a.A.init(e),r=!0,s=!1,n(),i.analytics)for(let e of(null==d||d(),l))e();d=null,l=[]}};if("requestIdleCallback"in window){let e=window.requestIdleCallback(o,{timeout:3e3});return()=>{t=!0,window.cancelIdleCallback(e),r||(s=!1)}}let c=globalThis.setTimeout(o,2e3);return()=>{t=!0,globalThis.clearTimeout(c),r||(s=!1)}}function p(e){i=e,window.__clarityAnalyticsAllowed=e.analytics,e.analytics||(d=null,l=[]),r&&n()}function u(e){let{userUuid:t,pageId:o,tags:s={}}=e;if(!0!==window.__clarityAnalyticsAllowed)return;let i=t.trim();if(!i||i.length>128)return;let l=()=>{!0===window.__clarityAnalyticsAllowed&&(a.A.identify(i,void 0,o.slice(0,255)),b(s))};r?l():d=l}function b(e){for(let[t,o]of Object.entries(e))null!=o&&a.A.setTag(t.slice(0,255),String(o).slice(0,255))}function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!0!==window.__clarityAnalyticsAllowed)return;let s=()=>{!0===window.__clarityAnalyticsAllowed&&(b(t),o.prioritizeRecording&&a.A.upgrade(e),a.A.event(e))};r?s():l.length<50&&l.push(s)}},40125:(e,t,o)=>{o.d(t,{k:()=>a});function a(e){if("string"!=typeof e)return!1;try{let t=new URL(e);return"http:"===t.protocol||"https:"===t.protocol}catch(e){return!1}}},52185:(e,t,o)=>{o.d(t,{F:()=>p});var a=o(40125);let r="lumadreammachine:image-upload-cache:v1",s=new Map,i=e=>"string"==typeof e&&(e.startsWith("https://")||e.startsWith("http://"))&&(0,a.k)(e);function d(e){var t;console.info("[IMAGE_UPLOAD_CLIENT]",{context:e.context,result:e.result,duration_ms:Math.round(e.durationMs),status:e.status,size_bytes:e.file.size,size_bucket:(t=e.file.size)<1048576?"<1 MB":t<5242880?"1–5 MB":t<0xa00000?"5–10 MB":">=10 MB"})}function l(){try{let e=JSON.parse(sessionStorage.getItem(r)||"{}");return e&&"object"==typeof e&&!Array.isArray(e)?e:{}}catch(e){return{}}}function n(e){try{let t=Object.entries(e).filter(e=>{let[,t]=e;return!!(t&&i(t.url)&&Number.isFinite(t.savedAt)&&Date.now()-t.savedAt<=72e5)}).sort((e,t)=>{let[,o]=e,[,a]=t;return a.savedAt-o.savedAt}).slice(0,30);sessionStorage.setItem(r,JSON.stringify(Object.fromEntries(t)))}catch(e){}}async function c(e){let t="".concat(e.name,"\0").concat(e.type,"\0").concat(e.size,"\0").concat(e.lastModified);return Array.from(new Uint8Array(await crypto.subtle.digest("SHA-256",new TextEncoder().encode(t)))).map(e=>e.toString(16).padStart(2,"0")).join("")}async function p(e,t,o){let a=performance.now(),r=await c(e),p=function(e){let t=l(),o=t[e];return!o||!i(o.url)||!Number.isFinite(o.savedAt)||Date.now()-o.savedAt>72e5?(o&&(delete t[e],n(t)),null):o.url}(r);if(p)return d({context:t,result:"cache_hit",durationMs:performance.now()-a,status:200,file:e}),p;let u=s.get(r);if(u)return u;let b=(async()=>{let c=0;try{for(let s=1;s<=2;s+=1){let p=new AbortController,u=window.setTimeout(()=>p.abort(),4e4);try{let u=new FormData;u.append("file",e),o&&u.append("modelType",o);let b=await fetch("/api/upload-image",{method:"POST",body:u,signal:p.signal});c=b.status;let m=await b.json().catch(()=>({})),h="string"==typeof m.url?m.url:Array.isArray(m.image_urls)?m.image_urls[0]:null;if(b.ok&&m.success&&i(h))return!function(e,t){if(!i(t))return;let o=l();o[e]={url:t,savedAt:Date.now()},n(o)}(r,h),d({context:t,result:"success",durationMs:performance.now()-a,status:c,file:e}),h;if(502!==b.status||2===s)throw Error("string"==typeof m.error?m.error:"upload_failed")}finally{window.clearTimeout(u)}}throw Error("upload_failed")}catch(o){throw d({context:t,result:o instanceof DOMException&&"AbortError"===o.name?"timeout":"failure",durationMs:performance.now()-a,status:c,file:e}),o}finally{s.delete(r)}})();return s.set(r,b),b}},62807:(e,t,o)=>{o.d(t,{K:()=>a});async function a(e,t){let o=new Headers(t.headers);if(!o.has("x-generation-request-id")){let e;try{e="string"==typeof t.body?JSON.parse(t.body).client_request_id:void 0}catch(e){}o.set("x-generation-request-id",e||crypto.randomUUID())}let a=Date.now()+15e4;for(;;){let r=await fetch(e,{...t,headers:o});if(202!==r.status)return r;let s=await r.clone().json().catch(()=>null);if((null==s?void 0:s.error)!=="moderation_pending"||Date.now()>=a)return r;await new Promise(e=>setTimeout(e,2e3))}}},75958:(e,t,o)=>{o.d(t,{T:()=>i,W:()=>d});var a=o(40125);let r=e=>"string"==typeof e&&(e.startsWith("https://")||e.startsWith("http://"))&&(0,a.k)(e);function s(e,t){return"lumadreammachine:generation-draft:v1:".concat(e,":").concat(t)}function i(e,t,o){try{var a;let i={...o,version:1,savedAt:Date.now(),remoteMediaUrls:o.remoteMediaUrls.map(e=>r(e)?e:null),audioUrls:null===(a=o.audioUrls)||void 0===a?void 0:a.filter(r)};sessionStorage.setItem(s(e,t),JSON.stringify(i))}catch(e){}}function d(e,t){try{let o=JSON.parse(sessionStorage.getItem(s(e,t))||"null");if(!o||1!==o.version||!Number.isFinite(o.savedAt)||Date.now()-Number(o.savedAt)>72e5)return null;return{version:1,savedAt:Number(o.savedAt),activeTab:"string"==typeof o.activeTab?o.activeTab:"",prompt:"string"==typeof o.prompt?o.prompt:"",modelId:"string"==typeof o.modelId?o.modelId:"",modelSelection:"user"===o.modelSelection?"user":"default",aspectRatio:"string"==typeof o.aspectRatio?o.aspectRatio:"",resolution:"string"==typeof o.resolution?o.resolution:"",duration:"string"==typeof o.duration||"number"==typeof o.duration?o.duration:"",remoteMediaUrls:Array.isArray(o.remoteMediaUrls)?o.remoteMediaUrls.map(e=>r(e)?e:null):[],audioUrls:Array.isArray(o.audioUrls)?o.audioUrls.filter(r):void 0,options:o.options&&"object"==typeof o.options&&!Array.isArray(o.options)?o.options:void 0}}catch(e){return null}}},82962:(e,t,o)=>{o.d(t,{T:()=>i});var a=o(6855),r=o(59279),s=o(81871);let i=r.forwardRef((e,t)=>
1{let{className:o,...r}=e;return(0,a.jsx)("textarea",{className:(0,s.cn)("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",o),ref:t,...r,"data-clarity-mask":"true"})});i.displayName="Textarea"},84015:(e,t,o)=>{o.d(t,{default:()=>eV});var a=o(6855),r=o(19130),s=o(56255);function i(e){let{value:t,onValueChange:o}=e,r=(0,s.c3)("browser_tools");return(0,a.jsx)("div",{role:"group","aria-label":"Free image tools","data-browser-tool-tabs":!0,className:"mx-auto mb-4 grid w-full max-w-3xl grid-cols-3 gap-1.5 rounded-2xl border border-border bg-muted/60 p-1.5 sm:mb-6 sm:gap-2 sm:p-2",children:["upscale","background","watermark"].map(e=>(0,a.jsx)("button",{type:"button","aria-pressed":t===e,onClick:()=>o(e),className:"min-h-[48px] min-w-0 break-words whitespace-normal rounded-xl px-2 py-2 text-center text-xs font-semibold transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring sm:px-3 sm:text-sm ".concat(t===e?"bg-primary text-primary-foreground":"bg-card text-foreground hover:bg-accent hover:text-accent-foreground"),children:(0,a.jsx)("span",{children:r(e+"_tab")})},e))})}var d=o(62807),l=o(26952),n=o(6069),c=o(59279),p=o(34873),u=o(74526),b=o(27626),m=o(29056),h=o(80295),v=o(58980),f=o(90213),g=o(29457),w=o(13667),y=o(85373),x=o(96358),_=o(29937),j=o(30602),U=o(77177),k=o(59088),N=o(64531),R=o(39859),C=o(26551),T=o(70704),L=o(82978),S=o(57600),A=o(82962),M=o(96052),G=o(87228),P=o(65612),O=o(87263),I=o(81871);let E=/\b(scene|shot|cut to|next|after that|then camera|camera then)\b|镜头|场景|分镜|سکانس|صحنه|сцена/gi,z=[/\b(lionel\s+)?messi\b/i,/\b(cristiano\s+)?ronaldo\b/i,/\b(abdul\s+kalam|a\.?\s*p\.?\s*j\.?\s*abdul\s+kalam|dr\.?\s+abdul\s+kalam)\b/i,/\b(donald\s+)?trump\b/i,/\b(joe\s+)?biden\b/i,/\bbarack\s+obama\b/i,/\belon\s+musk\b/i,/\btaylor\s+swift\b/i,/\bsadie\s+sink\b/i],V=[/\bbatman\b/i,/\bsuperman\b/i,/\bspider[-\s]?man\b/i,/\biron\s+man\b/i,/\bmarvel\b/i,/\bdc\s+comics?\b/i,/\bdisney\b/i,/\bpixar\b/i,/\bgta\b/i,/\bgrand\s+theft\s+auto\b/i,/\bstar\s+wars\b/i,/\bharry\s+potter\b/i,/\bpokemon\b/i,/\bpikachu\b/i,/\bnaruto\b/i,/\bgoku\b/i,/\bmickey\s+mouse\b/i],D=[/\b(porn|porno|pornographic|xxx|explicit sex|sexual intercourse)\b/i,/\b(nude|nudity|naked)\b/i,/\b(erotic|fetish|orgasm)\b/i,/\b(fully|completely|totally)\s+bare\b/i,/\b(bare|exposed|uncovered)[-\s]*(?:chest(?:ed)?|breasts?|nipples?|crotch|genitals?|penis|vagina|vulva)\b/i,/\b(tits?|boobs?|pussy|vagina|vulva|penis|cock|dick|genitals?)\b/i,/\b(blow\s*job|hand\s*job|deep\s*throat|oral\s+sex|anal\s+sex|masturbat\w*|penetrat\w*)\b/i,/\b(?:suck|lick|stroke|rub|touch|grab|grip|eat)\w*\b[^.!?\n]{0,60}\b(?:tits?|boobs?|breasts?|nipples?|pussy|vagina|vulva|penis|cock|dick|crotch|genitals?)\b/i,/\b(?:mouth|tongue|lips?)\b[^.!?\n]{0,40}\b(?:tits?|boobs?|breasts?|nipples?|pussy|vagina|vulva|penis|cock|dick|crotch|genitals?)\b/i,/\b(?:breast\s*feed|suckle)\w*(?:\s+on)?(?:\s+(?:a|an|the|her|his|their|my|your))?\s+(?:breasts?|nipples?)?\b/i,/\b(?:fuck\s+me|come\s+inside\s+me|spread(?:ing)?\s+(?:her|his|their|my|your)?\s*legs)\b/i,/\b(?:bounc\w*|grind\w*|thrust\w*)\s+(?:on|against|into)\s+(?:a|an|the|her|his|their|my|your)?\s*(?:crotch|penis|cock|pussy|vagina|genitals?)\b/i,/(?:色情|黄片|裸露|裸体|露点|性交|性爱|生殖器|口交|肛交|乳交|手淫|自慰|阴茎|阴道|乳头|胸部裸露)/i,/\b(?:desnud[oa]s?|pornograf[ií]a|sexo\s+expl[ií]cito|tetas?|coño|pene)\b/i,/\b(?:nackt|pornografisch|geschlechtsverkehr|blowjob)\b/i],F=[/\b(?:c
1hild|kid|minor|underage|preteen|teen(?:ager)?|school\s*girl|school\s*boy|little\s+girl|little\s+boy|young-looking|barely\s+legal)\b.{0,80}\b(?:sexy|seduc\w*|undress\w*|strip\w*|intimate|bedroom|nude|nudity|naked|topless|porn\w*|sexual|erotic|fetish|orgasm|intercourse|masturbat\w*|penetrat\w*|genitals?|penis|vagina|vulva|breasts?|nipples?)\b/i,/\b(?:sexy|seduc\w*|undress\w*|strip\w*|intimate|bedroom|nude|nudity|naked|topless|porn\w*|sexual|erotic|fetish|orgasm|intercourse|masturbat\w*|penetrat\w*|genitals?|penis|vagina|vulva|breasts?|nipples?)\b.{0,80}\b(?:child|kid|minor|underage|preteen|teen(?:ager)?|school\s*girl|school\s*boy|little\s+girl|little\s+boy|young-looking|barely\s+legal)\b/i,/(?:儿童|小孩|未成年|幼女|幼男|学生妹|小学生|中学生|年龄不明的年轻人).{0,40}(?:性感|脱衣|脱光|挑逗|亲密|床上|色情|裸露|裸体|露点|性交|性爱|生殖器|口交|肛交|手淫|自慰|阴茎|阴道|乳头)/i,/(?:性感|脱衣|脱光|挑逗|亲密|床上|色情|裸露|裸体|露点|性交|性爱|生殖器|口交|肛交|手淫|自慰|阴茎|阴道|乳头).{0,40}(?:儿童|小孩|未成年|幼女|幼男|学生妹|小学生|中学生|年龄不明的年轻人)/i],B=[/\b(?:n[i1]gg(?:er|a)s?|chinks?|kikes?|spics?)\b/i,/(?:种族歧视|种族侮辱|仇恨言论)/i],W=/\b(?:show|reveal|expose|uncover|display)\w*\b|(?:展示|露出|暴露|显露)/i,q=/\b(?:lift|pull|raise|remove|take\s+off|open|unbutton)\w*\b[^.!?;\n]{0,40}\b(?:shirt|top|blouse|bra|clothes?|clothing)\b|(?:掀起|拉起|脱掉|脱下|解开).{0,20}(?:上衣|衬衫|胸罩|衣服)/i,H=/\b(?:breasts?|nipples?|crotch|genitals?|penis|vagina|vulva|tits?|boobs?|pussy|cock|dick)\b|(?:乳房|乳头|胸部|下体|生殖器|阴茎|阴道)/i,K=/\b(?:bare|uncovered|topless|braless)\b|(?:赤裸|裸露|露点|未遮挡)/i,J=/\b(?:medical|clinical|anatomy|anatomical|doctor|surgery|mastectomy|mammogram|breast\s+cancer|documentary|educational)\b|(?:医学|医疗|临床|解剖|医生|手术|乳腺癌|纪录片|科普)/i;function $(e){return Array.from(e.trim()).length}function Y(e){return Array.from(e.matchAll(E)).length}function Z(e,t){return t.some(t=>t.test(e))}function X(e){let t="string"==typeof e?e.toLowerCase():"";return t.startsWith("bytedance/seedance-")?2e4:("veo3"===t||"veo3_fast"===t||"veo3_lite"===t||t.startsWith("veo3_"),2e3)}let Q=/\b(camera|shot|close[- ]?up|wide shot|medium shot|tracking|dolly|pan|tilt|crane|zoom|handheld|pov|overhead|low angle|high angle|lens|focus)\b|镜头|特写|近景|中景|全景|跟拍|推进|拉远|摇镜|俯拍|仰拍|焦点/gi,ee=/\b(walks?|runs?|turns?|looks?|raises?|lowers?|opens?|closes?|falls?|rises?|smiles?|cries?|speaks?|says?|whispers?|moves?|spins?|reaches?|grabs?|enters?|leaves?|transforms?|explodes?)\b|走|跑|转身|回头|抬头|低头|打开|关闭|落下|升起|微笑|哭|说|低语|移动|旋转|伸手|抓住|进入|离开|变形|爆炸/gi,et=/[“”"']([^“”"'\n]{2,120})[“”"']|\b(?:says?|asks?|replies?|whispers?|shouts?)\b|(?:说道|说:|问道|回答|低声说|喊道)/gi;function eo(e,t){return Array.from(e.matchAll(t)).length}var ea=o(19355);function er(e){var t,o,a,r;let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!0===window.__clarityAnalyticsAllowed){try{null===(t=(o=window).gtag)||void 0===t||t.call(o,"event",e,s)}catch(e){}try{null===(a=(r=window).plausible)||void 0===a||a.call(r,e,{props:s})}catch(e){}(0,ea.m2)(e,s)}}var es=o(93839),ei=o(67052),ed=o(46261);function el(e){let{videos:t}=e,[o,r]=(0,c.useState)(0),[s,i]=(0,c.useState)(!1),d=(0,c.useRef)([]),l=(0,c.useRef)(null);(0,c.useEffect)(()=>{if(!(t.length<=1))return l.current&&clearInterval(l.current),l.current=setInterval(()=>{r(e=>(e+1)%t.length)},8e3),()=>{l.current&&clearInterval(l.current)}},[t.length]),(0,c.useEffect)(()=>{d.current.forEach(e=>{e&&(e.pause(),e.currentTime=0)});let e=d.current[o];e&&setTimeout(()=>{e.play().catch(t=>{console.log("Auto-play failed, retrying...",t),setTimeout(()=>{e.play().catch(()=>{})},500)})},100)},[o]);let n=()=>{l.current&&clearInterval(l.current),t.length>1&&(l.current=setInterval(()=>{r(e=>(e+1)%t.length)},8e3))},p=e=>{e!==o&&(r(e),n())},u=()=>{i(!0)},b=()=>{i(!1)},m=()=>{t.length>1&&(r(e=>(e+1)%t.length),n())};return 0===t.length?null:(0,a.jsxs)("div",{className:"relative w-full group",onClick:e=>e.stopPropagation(),children:[(0,a.jsx)("div",{className:"relative aspect-video w-full overflow-hidden bg-transparent",children:t.map((e,t)=>(0,a.jsx)("video",{ref:e=>{d.current[t]=e},src:e,className:"absolute inset-0 w-full h-full object-cover transition-opacity duration-700 ".concat(t===o?"opacity-100 z-10":"opacity-0 z-0 pointer-events-none"),muted:!0,playsInl
1ine:!0,autoPlay:!0,controls:t===o,onPlay:u,onPause:b,onEnded:t===o?m:void 0,onLoadedData:()=>{if(t===o&&d.current[t]){var e;null===(e=d.current[t])||void 0===e||e.play().catch(()=>{})}}},t))}),t.length>1&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{type:"button",className:"absolute left-2 sm:left-4 top-1/2 -translate-y-1/2 z-30 h-10 w-10 sm:h-12 sm:w-12 rounded-full bg-black/60 hover:bg-black/80 text-white backdrop-blur-md transition-all flex items-center justify-center cursor-pointer",onClick:e=>{null==e||e.preventDefault(),null==e||e.stopPropagation(),p((o-1+t.length)%t.length)},"aria-label":"Previous video",children:(0,a.jsx)(ei.A,{className:"h-5 w-5 sm:h-6 sm:w-6"})}),(0,a.jsx)("button",{type:"button",className:"absolute right-2 sm:right-4 top-1/2 -translate-y-1/2 z-30 h-10 w-10 sm:h-12 sm:w-12 rounded-full bg-black/60 hover:bg-black/80 text-white backdrop-blur-md transition-all flex items-center justify-center cursor-pointer",onClick:e=>{null==e||e.preventDefault(),null==e||e.stopPropagation(),p((o+1)%t.length)},"aria-label":"Next video",children:(0,a.jsx)(ed.A,{className:"h-5 w-5 sm:h-6 sm:w-6"})}),(0,a.jsx)("div",{className:"flex justify-center items-center gap-2 mt-6",children:t.map((e,t)=>(0,a.jsx)("button",{onClick:()=>p(t),className:"transition-all duration-300 rounded-full ".concat(t===o?"w-10 h-2 bg-primary shadow-lg":"w-2 h-2 bg-muted-foreground/40 hover:bg-muted-foreground/60"),"aria-label":"Go to video ".concat(t+1)},t))})]})]})}function en(e){let{effect:t,eager:o}=e,r=(0,c.useRef)(null),[s,i]=(0,c.useState)(o);return(0,c.useEffect)(()=>{if(s||!r.current)return;let e=new IntersectionObserver(t=>{let[o]=t;o.isIntersecting&&(i(!0),e.disconnect())},{rootMargin:"240px 0px"});return e.observe(r.current),()=>e.disconnect()},[s]),(0,a.jsx)("video",{ref:r,className:"h-full w-full object-cover",poster:t.posterUrl,"aria-label":t.seoTitle,title:t.seoTitle,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,preload:s?"metadata":"none",onMouseEnter:e=>{i(!0),e.currentTarget.play().catch(()=>void 0)},onMouseLeave:e=>e.currentTarget.pause(),children:s&&(0,a.jsx)("source",{src:t.videoUrl,type:"video/mp4"})})}function ec(e){let{effects:t,selectedId:o,onSelect:r}=e;return(0,a.jsxs)("section",{className:"flex h-full min-h-0 flex-col rounded-2xl border border-violet-200 bg-white p-3 sm:p-4",children:[(0,a.jsxs)("div",{className:"mb-3",children:[(0,a.jsx)("h2",{className:"text-base font-black text-slate-950",children:"AI Video Effects"}),(0,a.jsx)("p",{className:"mt-1 text-sm text-slate-500",children:"Choose an effect, upload your adult photo, and generate with Veo 3.1 Lite."})]}),(0,a.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto pr-1",children:(0,a.jsx)("div",{className:"grid grid-cols-2 gap-3 xl:grid-cols-3 min-[1700px]:grid-cols-4",children:t.map((e,t)=>(0,a.jsx)("article",{className:"group overflow-hidden rounded-xl border bg-white shadow-sm transition ".concat(o===e.id?"border-violet-500 ring-2 ring-violet-200":"border-slate-200 hover:border-violet-400"),children:(0,a.jsxs)("div",{className:"relative aspect-[9/16] overflow-hidden bg-slate-950",children:[(0,a.jsx)(en,{effect:e,eager:t<2}),(0,a.jsxs)("div",{className:"absolute inset-x-0 bottom-0 bg-gradient-to-t from-black/90 via-black/45 to-transparent p-3 pt-14",children:[(0,a.jsx)("h3",{className:"text-sm font-black text-white",children:e.title}),(0,a.jsx)("p",{className:"mt-1 line-clamp-2 text-xs leading-4 text-white/80",children:e.description}),(0,a.jsxs)("button",{type:"button",onClick:()=>r(e),className:"mt-3 inline-flex h-10 w-full items-center justify-center gap-2 rounded-xl bg-violet-600 px-3 text-sm font-black text-white",children:[(0,a.jsx)(m.A,{className:"h-4 w-4"}),o===e.id?"Selected":"Use Effect"]})]})]})},e.id))})})]})}let ep=(e,t,o,a)=>({id:e,title:t,description:o,videoUrl:"/video/effects/luma-ai-".concat(e,"-video.mp4"),posterUrl:"/video/effects/luma-ai-".concat(e,"-video.jpg"),seoTitle:"".concat(t," – Luma Dream Machine AI Effect"),seoDescription:"".concat(o," Create the effect from your own photo with Luma Dream Machine."),prompt:a,modelId:"veo3_lite",aspectRatio:"9:16",resolution:"720p",duration:"8s"}),eu=[ep("twerk","AI Twerk Video","Animate an adult subject with a bold rhythmic dance effect.","Create a bold twerk dance with the same clearly adult subject in both frames, keeping the original fitted dance outfit. The subject turns away, bends into a low stance, places both hands on the thighs or hips, and performs side-to-side hip swings with up-and-down bounces, then returns smoothly to the ending pose. Keep the full body visible and the camera fixed at waist height. Preserve identity, body proportions, and outfit. Use realistic fabric motion and stable knees and feet. No nudity, clothing removal, generic spinning, extra limbs, warped hands or feet, or identity drift."),ep("hug","AI Hug Video","Create a clear full-body embrace with warm natural motion.","Create an unmistakable warm hug between the same tw
1o clearly adult people shown together in both frames. They step close, wrap both arms fully around each other, and hold a tight embrace with a gentle sway before settling into the ending pose. One person rests a cheek on the other's shoulder or upper chest. This must read as a hug, not a kiss: no kissing, almost-kiss, lips approaching, or face-to-face romantic stare. Preserve both identities, faces, hair, bodies, clothing, hands, lighting, and background. No extra people, warped arms or fingers, fused bodies, or identity drift."),ep("kiss","AI Kiss Video","Turn an adult couple photo into a tender cinematic kiss.","Animate the same two clearly adult people shown together in both frames. They gently turn toward each other, share one brief tender kiss, and settle naturally into the ending pose. Keep the moment consensual, affectionate, and non-explicit. Preserve both identities, faces, hairstyles, body proportions, clothing, lighting, and background. Use subtle breathing, natural expressions, stable hands, and a slow camera push-in. No nudity, aggressive contact, age changes, extra people, fused bodies, distorted faces, extra fingers, or sudden camera motion."),ep("foot","AI Foot Video","Make a tasteful fashion-style foot and footwear animation.","Animate the same clearly adult subject in both frames with a tasteful fashion focus on feet and footwear. From a low camera angle, the subject slowly crosses the legs, points one shoe toward the lens, gently rolls the ankle, lets the heel dangle slightly, slips it back on, and settles into the ending pose. Preserve identity, face, hair, outfit, legs, footwear, lighting, and background. Use graceful motion, warm cinematic light, a subtle camera push-in, realistic feet, and accurate shoes. Keep the subject fully clothed. No nudity, injury, extra toes or limbs, warped shoes, or identity drift.")];var eb=o(75958),em=o(52185),eh=o(40125),ev=o(8239);let ef=new Set(["mp3","mpeg","wav"]),eg=new Set(["audio/mpeg","audio/mp3","audio/wav","audio/x-wav","audio/vnd.wave"]),ew=new Set([...ef,"aac","mp4","ogg"]),ey=new Set([...eg,"audio/aac","audio/mp4","audio/ogg"]);function ex(e){return"seedance-2"===e||"bytedance/seedance-2"===e}let e_=[{key:"all",label:"All"},{key:"ugc",label:"UGC"},{key:"money-shot",label:"Money Shot"},{key:"try-on",label:"Try-On"},{key:"tvc",label:"TVC"},{key:"product-launch",label:"Product Launch"},{key:"tutorial",label:"Tutorial"},{key:"problem-solution",label:"Problem/Solution"},{key:"unboxing",label:"Unboxing"}],ej=[{id:"1-car-vacuum-cleaning-ugc",title:"Car Vacuum Cleaning UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/1-car-vacuum-cleaning-ugc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/1-car-vacuum-cleaning-ugc/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"2-cleaning-water-gun-ugc",title:"Cleaning Water Gun UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/2-cleaning-water-gun-ugc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/2-cleaning-water-gun-ugc/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"3-snack-watch-party-ugc",title:"Snack Watch-Party UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/3-snack-watch-party-ugc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/3-snack-watch-party-ugc/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"4-makeup-cleanser-ugc",title:"Makeup Cleanser UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/4-makeup-cleanser-ugc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/4-makeup-cleanser-ugc/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"5-action-camera-travel-ugc",title:"Action Camera Travel UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/5-action-camera-travel-ugc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/5-action-camera-travel-ugc/poster.jpg",aspectRatio:"9:16",resolution:"496 x 864",duration:"15s"},{id:"6-lash-beauty-ugc",title:"Lash Beauty UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/6-lash-beauty-ugc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/6-lash-beauty-ugc/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"7-acne-patch-skincare-ugc",title:"Acne Patch Skincare UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/7-acne-patch-skincare-ugc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/7-acne-patch-skincare-ugc/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"8-hair-volumizer-brush-ugc",title:"Hair Volumizer Brush UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/8-hair-volumizer-brush-ugc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/8-hair-volumizer-brush-ugc/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"9-solar-fountain-ugc",title:"Solar Fountain UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/9-solar-fountain-ugc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/9-solar-fountain-ugc/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"10-electric-shaver-ugc",title:"Electric Shaver UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/10-electric-shaver-ugc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/10-electric-shaver-ugc/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"}
1,{id:"11-asmr-product-showcase-ugc",title:"ASMR Product Showcase UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/11-asmr-product-showcase-ugc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/11-asmr-product-showcase-ugc/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"12s"},{id:"12-protein-bar-ugc",title:"Protein Bar UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/12-protein-bar-ugc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/12-protein-bar-ugc/poster.jpg",aspectRatio:"9:16",resolution:"496 x 864",duration:"15s"},{id:"13-blender-smoothie-ugc",title:"Blender Smoothie UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/13-blender-smoothie-ugc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/13-blender-smoothie-ugc/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"14-beverage-commercial-money-shot",title:"Beverage Commercial Money Shot",category:"money-shot",categoryLabel:"Money Shot",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/14-beverage-commercial-money-shot/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/14-beverage-commercial-money-shot/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"8s"},{id:"15-fruit-explosion-beverage-money-shot",title:"Fruit Explosion Beverage Money Shot",category:"money-shot",categoryLabel:"Money Shot",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/15-fruit-explosion-beverage-money-shot/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/15-fruit-explosion-beverage-money-shot/poster.jpg",aspectRatio:"16:9",resolution:"1280 x 720",duration:"15s"},{id:"16-tide-pods-laundry-money-shot",title:"Tide PODS Laundry Money Shot",category:"money-shot",categoryLabel:"Money Shot",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/16-tide-pods-laundry-money-shot/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/16-tide-pods-laundry-money-shot/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"8s"},{id:"17-watermelon-skincare-money-shot",title:"Watermelon Skincare Money Shot",category:"money-shot",categoryLabel:"Money Shot",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/17-watermelon-skincare-money-shot/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/17-watermelon-skincare-money-shot/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"8s"},{id:"18-pizza-food-money-shot",title:"Pizza Food Money Shot",category:"money-shot",categoryLabel:"Money Shot",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/18-pizza-food-money-shot/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/18-pizza-food-money-shot/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"10s"},{id:"19-nature-republic-aloe-vera-money-shot",title:"Nature Republic Aloe Vera Money Shot",category:"money-shot",categoryLabel:"Money Shot",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/19-nature-republic-aloe-vera-money-shot/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/19-nature-republic-aloe-vera-money-shot/poster.jpg",aspectRatio:"16:9",resolution:"1280 x 720",duration:"10s"},{id:"20-lush-intergalactic-bath-bomb-money-shot",title:"LUSH Intergalactic Bath Bomb Money Shot",category:"money-shot",categoryLabel:"Money Shot",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/20-lush-intergalactic-bath-bomb-money-shot/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/20-lush-intergalactic-bath-bomb-money-shot/poster.jpg",aspectRatio:"16:9",resolution:"1280 x 720",duration:"8s"},{id:"21-popcorn-bucket-money-shot",title:"Popcorn Bucket Money Shot",category:"money-shot",categoryLabel:"Money Shot",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/21-popcorn-bucket-money-shot/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/21-popcorn-bucket-money-shot/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"8s"},{id:"22-dior-addict-lip-glow-oil-money-shot",title:"Dior Addict Lip Glow Oil Money Shot",category:"money-shot",categoryLabel:"Money Shot",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/22-dior-addict-lip-glow-oil-money-shot/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/22-dior-addict-lip-glow-oil-money-shot/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"8s"},{id:"23-laneige-lip-sleeping-mask-money-shot",title:"LANEIGE Lip Sleeping Mask Money Shot",category:"money-shot",categoryLabel:"Money Shot",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/23-laneige-lip-sleeping-mask-money-shot/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/23-laneige-lip-sleeping-mask-money-shot/poster.jpg",aspectRatio:"16:9",resolution:"1280 x 720",duration:"10s"},{id:"24-sol-de-janeiro-bum-bum-cream-money-shot",title:"Sol de Janeiro Bum Bum Cream Money Shot",category:"money-shot",categoryLabel:"Money Shot",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/24-sol-de-janeiro-bum-bum-cream-money-shot/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/24-sol-de-janeiro-bum-bum-cream-money-shot/poster.jpg",aspectRatio:"16:9",resolution:"1280 x 720",duration:"8s"},{id:"25-mia-y2k-cat-ear-beanie-try-on",title:"Mia Y2K cat-ear beanie Try-On",category:"try-on",categoryLabel:"Try-On",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/25-mia-y2k-cat-ear-beanie-try-on/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/25-mia-y2k-cat-ear-beanie-try-on/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"26-sakura-silver-metallic-shoulder-bag-try-on",title:"Sakura silver metallic shoulder bag Try-On",category:"try-on",categoryLabel:"Try-On",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/26-sakura-silver-metallic-shoulder-bag-try-on/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/26-sakura-silver-metallic-shoulder-bag-try-on/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"27-lucas-vintage-ivy-league-old-money-outfit-try-on",title:"Lucas vintage Ivy League / old money outfit Try-On",category:"try-on",categoryLabel:"Try-On",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/27-lucas-vintage-ivy-league-old-money-outfit-try-on/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/27-lucas-vintage-ivy-league-old-money-outfit-try-on/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"28-ethan-silver-figaro-chain-necklace-try-on",title:"Ethan silver Figaro chain necklace Try-On",category:"try-on",categoryLabel:"Try-On",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/28-ethan-silver-figaro-chain-necklace-try-on/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/28-ethan-silver-figaro-chain-necklace-try-on/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"29-max-black-nylon-backpack-try-on",title:"Max black nylon backpack Try-On",category:"try-on",categoryLabel:"Try-On",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/29-max-black-nylon-backpack-try-on/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/29-max-black-nylon-backpack-try-on/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"}
1,{id:"30-noah-silver-vintage-digital-watch-try-on",title:"Noah silver vintage digital watch Try-On",category:"try-on",categoryLabel:"Try-On",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/30-noah-silver-vintage-digital-watch-try-on/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/30-noah-silver-vintage-digital-watch-try-on/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"31-kim-medium-blue-denim-trucker-jacket-try-on",title:"Kim medium-blue denim trucker jacket Try-On",category:"try-on",categoryLabel:"Try-On",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/31-kim-medium-blue-denim-trucker-jacket-try-on/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/31-kim-medium-blue-denim-trucker-jacket-try-on/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"32-kelly-white-strapless-mini-dress-try-on",title:"Kelly white strapless mini dress Try-On",category:"try-on",categoryLabel:"Try-On",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/32-kelly-white-strapless-mini-dress-try-on/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/32-kelly-white-strapless-mini-dress-try-on/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"10s"},{id:"33-lucas-black-leather-bomber-jacket-try-on",title:"Lucas black leather bomber jacket Try-On",category:"try-on",categoryLabel:"Try-On",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/33-lucas-black-leather-bomber-jacket-try-on/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/33-lucas-black-leather-bomber-jacket-try-on/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"12s"},{id:"34-ivy-hot-pink-satin-pointed-toe-stiletto-pumps-try-on",title:"Ivy hot pink satin pointed-toe stiletto pumps Try-On",category:"try-on",categoryLabel:"Try-On",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/34-ivy-hot-pink-satin-pointed-toe-stiletto-pumps-try-on/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/34-ivy-hot-pink-satin-pointed-toe-stiletto-pumps-try-on/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"10s"},{id:"35-yuki-high-fashion-outfit-try-on",title:"Yuki High-Fashion Outfit Try-On",category:"try-on",categoryLabel:"Try-On",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/35-yuki-high-fashion-outfit-try-on/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/35-yuki-high-fashion-outfit-try-on/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"10s"},{id:"36-kelly-cinematic-fashion-outfit-try-on",title:"Kelly Cinematic Fashion Outfit Try-On",category:"try-on",categoryLabel:"Try-On",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/36-kelly-cinematic-fashion-outfit-try-on/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/36-kelly-cinematic-fashion-outfit-try-on/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"37-gee-the-dog-pet-clothing-try-on",title:"Gee the Dog Pet Clothing Try-On",category:"try-on",categoryLabel:"Try-On",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/37-gee-the-dog-pet-clothing-try-on/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/37-gee-the-dog-pet-clothing-try-on/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"38-amy-press-on-nails-try-on",title:"Amy Press-On Nails Try-On",category:"try-on",categoryLabel:"Try-On",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/38-amy-press-on-nails-try-on/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/38-amy-press-on-nails-try-on/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"39-sakura-charm-glasses-try-on",title:"Sakura Charm Glasses Try-On",category:"try-on",categoryLabel:"Try-On",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/39-sakura-charm-glasses-try-on/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/39-sakura-charm-glasses-try-on/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"13s"},{id:"40-ivy-lipstick-blush-makeup-try-on",title:"Ivy Lipstick Blush Makeup Try-On",category:"try-on",categoryLabel:"Try-On",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/40-ivy-lipstick-blush-makeup-try-on/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/40-ivy-lipstick-blush-makeup-try-on/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"41-jamy-workwear-streetwear-outfit-try-on",title:"Jamy Workwear Streetwear Outfit Try-On",category:"try-on",categoryLabel:"Try-On",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/41-jamy-workwear-streetwear-outfit-try-on/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/41-jamy-workwear-streetwear-outfit-try-on/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"42-ava-powder-blue-yoga-set-try-on",title:"Ava Powder-Blue Yoga Set Try-On",category:"try-on",categoryLabel:"Try-On",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/42-ava-powder-blue-yoga-set-try-on/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/42-ava-powder-blue-yoga-set-try-on/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"43-stella-guess-leopard-print-faux-fur-shoulder-bag-try-on",title:"Stella GUESS leopard-print faux fur shoulder bag Try-On",category:"try-on",categoryLabel:"Try-On",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/43-stella-guess-leopard-print-faux-fur-shoulder-bag-try-on/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/43-stella-guess-leopard-print-faux-fur-shoulder-bag-try-on/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"13s"},{id:"44-jessie-denim-set-try-on",title:"Jessie Denim Set Try-On",category:"try-on",categoryLabel:"Try-On",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/44-jessie-denim-set-try-on/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/44-jessie-denim-set-try-on/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"45-product-tvc",title:"Product TVC",category:"tvc",categoryLabel:"TVC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/45-product-tvc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/45-product-tvc/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"46-product-tvc",title:"Product TVC",category:"tvc",categoryLabel:"TVC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/46-product-tvc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/46-product-tvc/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"47-lucy-tvc",title:"Lucy TVC",category:"tvc",categoryLabel:"TVC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/47-lucy-tvc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/47-lucy-tvc/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"12s"},{id:"48-product-tvc",title:"Product TVC",category:"tvc",categoryLabel:"TVC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/48-product-tvc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/48-product-tvc/poster.jpg",aspectRatio:"16:9",resolution:"1280 x 720",duration:"15s"},{id:"49-product-tvc",title:"Product TVC",category:"tvc",categoryLabel:"TVC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/49-product-tvc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/49-product-tvc/poster.jpg",aspectRatio:"16:9",resolution:"1280 x 720",duration:"15s"},{id:"50-kelly-tvc",title:"Kelly TVC",category:"tvc",categoryLabel:"TVC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/50-kelly-tvc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/50-kelly-tvc/poster.jpg",aspectRatio:"16:9",resolution:"1280 x 720",duration:"15s"},{id:"51-product-tvc",title:"Product TVC",category:"tvc",categoryLabel:"TVC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/51-product-tvc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/51-product-tvc/poster.jpg",aspectRatio:"16:9",resolution:"1280 x 720",duration:"15s"},{id:"52-product-tvc",title:"Product TVC",category:"tvc",categoryLabel:"TVC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/52-product-tvc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/52-product-tvc/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"53-betty-tvc",title:"Betty TVC",category:"tvc",categoryLabel:"TVC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/53-betty-tvc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/53-betty-tvc/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"54-product-tvc",title:"Product TVC",category:"tvc",categoryLabel:"TVC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/54-product-tvc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/54-product-tvc/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"55-product-tvc",title:"Product TVC",category:"tvc",categoryLabel:"TVC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/55-product-tvc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/55-product-tvc/poster.jpg",aspectRatio:"16:9",resolution:"1280 x 720",duration:"15s"},{id:"56-christina-tvc",title:"Christina TVC",category:"tvc",categoryLabel:"TVC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/56-christina-tvc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/56-christina-tvc/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"57-product-tvc",title:"Product TVC",category:"tvc",categoryLabel:"TVC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/57-product-tvc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/57-product-tvc/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"58-product-tvc",title:"Product TVC",category:"tvc",categoryLabel:"TVC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/58-product-tvc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/58-product-tvc/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"59-product-tvc",title:"Product TVC",category:"tvc",categoryLabel:"TVC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/59-product-tvc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/59-product-tvc/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"60-norman-ugc",title:"Norman UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/60-norman-ugc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/60-norman-ugc/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"61-jessie-ugc",title:"Jessie UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/61-jessie-ugc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/61-jessie-ugc/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"62-henry-ugc",title:"Henry UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/62-henry-ugc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-prod
1uction/flow-ai-video/20260815/product-ads/showcases/62-henry-ugc/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"63-ann-ugc",title:"Ann UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/63-ann-ugc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/63-ann-ugc/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"64-lucas-ugc",title:"Lucas UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/64-lucas-ugc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/64-lucas-ugc/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"65-liam-ugc",title:"Liam UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/65-liam-ugc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/65-liam-ugc/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"66-melania-ugc",title:"Melania UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/66-melania-ugc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/66-melania-ugc/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"67-jamy-ugc",title:"Jamy UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/67-jamy-ugc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/67-jamy-ugc/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"68-mila-ugc",title:"Mila UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/68-mila-ugc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/68-mila-ugc/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"69-ivy-ugc",title:"Ivy UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/69-ivy-ugc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/69-ivy-ugc/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"70-mia-ugc",title:"Mia UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/70-mia-ugc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/70-mia-ugc/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"71-jenny-ugc",title:"Jenny UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/71-jenny-ugc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/71-jenny-ugc/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"72-amy-ugc",title:"Amy UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/72-amy-ugc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/72-amy-ugc/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"73-lucas-ugc",title:"Lucas UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/73-lucas-ugc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/73-lucas-ugc/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"74-kelly-ugc",title:"Kelly UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/74-kelly-ugc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/74-kelly-ugc/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"75-jenny-ugc",title:"Jenny UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/75-jenny-ugc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/75-jenny-ugc/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"76-product-money-shot",title:"Product Money Shot",category:"money-shot",categoryLabel:"Money Shot",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/76-product-money-shot/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/76-product-money-shot/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"10s"},{id:"77-product-money-shot",title:"Product Money Shot",category:"money-shot",categoryLabel:"Money Shot",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/77-product-money-shot/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/77-product-money-shot/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"10s"},{id:"78-product-money-shot",title:"Product Money Shot",category:"money-shot",categoryLabel:"Money Shot",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/78-product-money-shot/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/78-product-money-shot/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"10s"},{id:"79-lip-tint-product-launch",title:"Lip Tint Product Launch",category:"product-launch",categoryLabel:"Product Launch",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/79-lip-tint-product-launch/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/79-lip-tint-product-launch/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"80-street-poster-product-launch",title:"Street Poster Product Launch",category:"product-launch",categoryLabel:"Product Launch",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/80-street-poster-product-launch/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/80-street-poster-product-launch/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"81-amy-cleaning-brush-tutorial",title:"Amy Cleaning Brush Tutorial",category:"tutorial",categoryLabel:"Tutorial",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/81-amy-cleaning-brush-tutorial/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/81-amy-cleaning-brush-tutorial/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"82-lily-vacuum-cleaner-tutorial",title:"Lily Vacuum Cleaner Tutorial",category:"tutorial",categoryLabel:"Tutorial",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/82-lily-vacuum-cleaner-tutorial/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/82-lily-vacuum-cleaner-tutorial/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"83-henry-air-fryer-tutorial",title:"Henry Air Fryer Tutorial",category:"tutorial",categoryLabel:"Tutorial",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/83-henry-air-fryer-tutorial/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/83-henry-air-fryer-tutorial/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"84-alice-tennis-racket-tutorial",title:"Alice Tennis Racket Tutorial",category:"tutorial",categoryLabel:"Tutorial",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/84-alice-tennis-racket-tutorial/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/84-alice-tennis-racket-tutorial/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"85-nancy-herb-garden-tutorial",title:"Nancy Herb Garden Tutorial",category:"tutorial",categoryLabel:"Tutorial",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/85-nancy-herb-garden-tutorial/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/85-nancy-herb-garden-tutorial/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"86-tom-product-tutorial",title:"Tom Product Tutorial",category:"tutorial",categoryLabel:"Tutorial",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/86-tom-product-tutorial/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/86-tom-product-tutorial/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"87-lily-coffee-tutorial",title:"Lily Coffee Tutorial",category:"tutorial",categoryLabel:"Tutorial",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/87-lily-coffee-tutorial/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/87-lily-coffee-tutorial/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"88-lily-label-maker-tutorial",title:"Lily Label Maker Tutorial",category:"tutorial",categoryLabel:"Tutorial",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/88-lily-label-maker-tutorial/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/88-lily-label-maker-tutorial/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"89-lucy-bag-tutorial",title:"Lucy Bag Tutorial",category:"tutorial",categoryLabel:"Tutorial",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/89-lucy-bag-tutorial/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/89-lucy-bag-tutorial/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"90-ivy-garment-steamer-tutorial",title:"Ivy Garment Steamer Tutorial",category:"tutorial",categoryLabel:"Tutorial",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/90-ivy-garment-steamer-tutorial/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/90-ivy-garment-steamer-tutorial/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"91-liam-watch-tutorial",title:"Liam Watch Tutorial",category:"tutorial",categoryLabel:"Tutorial",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/91-liam-watch-tutorial/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/91-liam-watch-tutorial/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"92-ethan-cordless-drill-tutorial",title:"Ethan Cordless Drill Tutorial",category:"tutorial",categoryLabel:"Tutorial",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/92-ethan-cordless-drill-tutorial/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/92-ethan-cordless-drill-tutorial/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"93-veo3-product-ads-problem-and-solution",title:"Veo3 Product Ads Problem & Solution",category:"problem-solution",categoryLabel:"Problem/Solution",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/93-veo3-product-ads-problem-and-solution/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/93-veo3-product-ads-problem-and-solution/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"94-melania-food-problem-and-solution",title:"Melania Food Problem & Solution",category:"problem-solution",categoryLabel:"Problem/Solution",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/94-melania-food-problem-and-solution/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/94-melania-food-problem-and-solution/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"95-albert-auto-repair-problem-and-solution",title:"Albert Auto Repair Problem & Solution",category:"problem-solution",categoryLabel:"Problem/Solution",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/95-albert-auto-repair-problem-and-solution/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/95-albert-auto-repair-problem-and-solution/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"96-betty-air-coo
1ler-problem-and-solution",title:"Betty Air Cooler Problem & Solution",category:"problem-solution",categoryLabel:"Problem/Solution",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/96-betty-air-cooler-problem-and-solution/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/96-betty-air-cooler-problem-and-solution/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"97-amy-solar-garden-light-problem-and-solution",title:"Amy Solar Garden Light Problem & Solution",category:"problem-solution",categoryLabel:"Problem/Solution",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/97-amy-solar-garden-light-problem-and-solution/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/97-amy-solar-garden-light-problem-and-solution/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"98-jamy-water-bottle-problem-and-solution",title:"Jamy Water Bottle Problem & Solution",category:"problem-solution",categoryLabel:"Problem/Solution",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/98-jamy-water-bottle-problem-and-solution/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/98-jamy-water-bottle-problem-and-solution/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"99-mila-food-tvc",title:"Mila Food TVC",category:"tvc",categoryLabel:"TVC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/99-mila-food-tvc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/99-mila-food-tvc/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"100-packaged-food-tvc",title:"Packaged Food TVC",category:"tvc",categoryLabel:"TVC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/100-packaged-food-tvc/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/100-packaged-food-tvc/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"101-ann-snack-unboxing",title:"Ann Snack Unboxing",category:"unboxing",categoryLabel:"Unboxing",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/101-ann-snack-unboxing/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/101-ann-snack-unboxing/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"lumeflow-product-1850",title:"Smart Mosquito Repellent TVC",category:"tvc",categoryLabel:"TVC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-product-1850/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-product-1850/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"lumeflow-product-1856",title:"Extreme Flag Brand Launch",category:"product-launch",categoryLabel:"Product Launch",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-product-1856/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-product-1856/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"7s"},{id:"lumeflow-product-1858",title:"Headphones Whiteboard Tutorial",category:"tutorial",categoryLabel:"Tutorial",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-product-1858/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-product-1858/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"5-7s"},{id:"lumeflow-product-1751",title:"Beverage Macro Money Shot",category:"money-shot",categoryLabel:"Money Shot",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-product-1751/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-product-1751/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"0-1s"},{id:"lumeflow-product-1780",title:"Packaged Food Money Shot",category:"money-shot",categoryLabel:"Money Shot",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-product-1780/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-product-1780/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"0-1s"},{id:"lumeflow-product-1781",title:"Futuristic Running Shoe TVC",category:"tvc",categoryLabel:"TVC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-product-1781/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-product-1781/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"5-6s"},{id:"lumeflow-product-1782",title:"Popcorn Pack Money Shot",category:"money-shot",categoryLabel:"Money Shot",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-product-1782/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-product-1782/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"8s"},{id:"lumeflow-product-1783",title:"Premium Car TVC",category:"tvc",categoryLabel:"TVC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-product-1783/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-product-1783/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"5-12s"},{id:"lumeflow-product-1784",title:"Sandwich Cookies Anime TVC",category:"tvc",categoryLabel:"TVC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-product-1784/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-product-1784/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"90s"},{id:"lumeflow-product-1785",title:"Beer Bottle Money Shot",category:"money-shot",categoryLabel:"Money Shot",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-product-1785/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-product-1785/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"0-3s"},{id:"lumeflow-product-1786",title:"Apartment Lifestyle TVC",category:"tvc",categoryLabel:"TVC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-product-1786/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-product-1786/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"lumeflow-ugc-1845",title:"Pet Clothing Try-On UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1845/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1845/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"12-15s"},{id:"lumeflow-ugc-1847",title:"Instant Ramen Review UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1847/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1847/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"}
1,{id:"lumeflow-ugc-1857",title:"Headphones Expert UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1857/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1857/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"5-7s"},{id:"lumeflow-ugc-1844",title:"Apartment App Demo UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1844/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1844/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"0-3s"},{id:"lumeflow-ugc-1846",title:"Press-On Nails UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1846/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1846/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"0-2s"},{id:"lumeflow-ugc-1839",title:"Cookies Snack Review UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1839/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1839/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"0-3s"},{id:"lumeflow-ugc-1840",title:"Fitness Supplement UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1840/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1840/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"lumeflow-ugc-1842",title:"Beauty Product UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1842/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1842/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"0-3s"},{id:"lumeflow-ugc-1838",title:"Makeup Lipstick UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1838/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1838/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"0-3s"},{id:"lumeflow-ugc-1841",title:"Product Recommendation UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1841/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1841/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"10s"},{id:"lumeflow-ugc-1843",title:"Fashion Styling UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1843/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1843/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"0-1s"},{id:"lumeflow-ugc-1849",title:"Smartphone App UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1849/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1849/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"0-3s"},{id:"lumeflow-ugc-1827",title:"Lifestyle Product UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1827/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1827/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"10-12s"},{id:"lumeflow-ugc-1750",title:"Home Product UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1750/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1750/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"0-4s"},{id:"lumeflow-ugc-1771",title:"Skincare Routine UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1771/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1771/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"0-2s"},{id:"lumeflow-ugc-1772",title:"Social Reels Product UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1772/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1772/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"0-3s"},{id:"lumeflow-ugc-1773",title:"Beauty Review UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1773/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1773/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"0-3s"},{id:"lumeflow-ugc-1774",title:"Product Demo UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1774/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1774/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"0-3s"},{id:"lumeflow-ugc-1775",title:"Reaction Hook UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1775/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1775/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"lumeflow-ugc-1776",title:"Cozy Unboxing UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1776/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1776/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"15s"},{id:"lumeflow-ugc-1777",title:"Energy Drink Skydiving UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1777/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1777/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"5s"},{id:"lumeflow-ugc-1778",title:"Pre-Workout Fitness UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1778/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1778/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"0-1s"},{id:"lumeflow-ugc-1779",title:"Wellness Gummies UGC",category:"ugc",categoryLabel:"UGC",videoUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1779/video-faststart.mp4",posterUrl:"https://pub-b17e57bd543b479bafac2b7b8d1b4432.r2.dev/approved-production/flow-ai-video/20260815/product-ads/showcases/lumeflow-ugc-1779/poster.jpg",aspectRatio:"9:16",resolution:"720 x 1280",duration:"0-2s"}],eU=new Set(["image/jpeg","image/png","image/webp"]),ek=async e=>{if(e.size<2097152||"function"!=typeof createImageBitmap)return e;try{let t=await createImageBitmap(e),o=Math.min(1,3072/Math.max(t.width,t.height)),a=Math.max(1,Math.round(t.width*o)),r=Math.max(1,Math.round(t.height*o)),s=document.createElement("canvas");s.width=a,s.height=r;let i=s.getContext("2d");if(!i)return t.close(),e;i.drawImage(t,0,0,a,r),t.close();let d=await new Promise(e=>
1{s.toBlob(e,"image/webp",.9)});if(!d||d.size>=e.size)return e;return new File([d],"reference.webp",{type:"image/webp",lastModified:e.lastModified})}catch(t){return e}},eN={"veo-3":"/video/upload/veo3/nano-banana-veo31-demo1.mp4","sora-2":"/video/upload/sora2/sora-2-demo1.mp4","wan-2-5":"/video/upload/wan2-5/nano-banana-wan-2-5-demo1.mp4",seedance:"/video/upload/seedance/example15.mp4"},eR=["/video/upload/home/seedance2-video1.mp4","/video/upload/home/seedance2-video2.mp4","/video/upload/home/seedance2-video3.mp4"],eC="seedance_gallery_video_prompt",eT=new Set(["US","GB","UK","AU","CA","DE","FR"]),eL=e=>(0,a.jsx)("span",{children:e}),eS=new Set(["seedance-2-fast","seedance-2","seedance-2-5"]),eA={luma_dream_machine:{modelType:"veo3_lite",billingContext:"default",resolutions:["720p","1080p"],aspectRatios:["16:9","9:16","auto"],durations:["4s","6s","8s"],maxImages:2,supportsAudioReference:!1},"seedance-2-fast":{modelType:"bytedance/seedance-2-fast",billingContext:"home_seedance2",resolutions:["480p","720p"],aspectRatios:["16:9","9:16","1:1","4:3","3:4","21:9"],durations:Array.from({length:12},(e,t)=>"".concat(t+4,"s")),maxImages:9,supportsAudioReference:!0},"seedance-2":{modelType:"bytedance/seedance-2",billingContext:"home_seedance2",resolutions:["480p","720p","1080p","4K"],aspectRatios:["16:9","9:16","1:1","4:3","3:4","21:9"],durations:Array.from({length:12},(e,t)=>"".concat(t+4,"s")),maxImages:9,supportsAudioReference:!0},"seedance-2-5":{modelType:"bytedance/seedance-2-fast",billingContext:"home_seedance2",resolutions:["480p","720p"],aspectRatios:["16:9","9:16","1:1","4:3","3:4","21:9"],durations:Array.from({length:12},(e,t)=>"".concat(t+4,"s")),maxImages:9,supportsAudioReference:!0},veo3_lite:{modelType:"veo3_lite",billingContext:"default",resolutions:["720p","1080p"],aspectRatios:["16:9","9:16","auto"],durations:["4s","6s","8s"],maxImages:2,supportsAudioReference:!1},veo3_fast:{modelType:"veo3_fast",billingContext:"default",resolutions:["720p","1080p"],aspectRatios:["16:9","9:16","auto"],durations:["4s","6s","8s"],maxImages:2,supportsAudioReference:!1},veo3:{modelType:"veo3",billingContext:"default",resolutions:["720p","1080p"],aspectRatios:["16:9","9:16","auto"],durations:["4s","6s","8s"],maxImages:2,supportsAudioReference:!1}},eM={luma_dream_machine:"Veo 3.1 Lite","seedance-2-fast":"Seedance 2.0 Fast","seedance-2":"Seedance 2.0","seedance-2-5":"Seedance 2.0 Fast",veo3_lite:"Veo 3.1 Lite",veo3_fast:"Veo 3.1 Fast",veo3:"Veo 3.1 Quality"},eG={luma_dream_machine:"Fast, cost-effective generation for drafts and everyday clips.","seedance-2-fast":"Fast generation with flexible reference-image control.","seedance-2":"Higher-quality generation with richer resolution options.","seedance-2-5":"Fast generation with flexible reference-image control.",veo3_lite:"Fast, cost-effective generation for drafts and everyday clips.",veo3_fast:"Balanced speed, realistic motion, and visual quality.",veo3:"Highest-quality Veo option for polished cinematic results."},eP={"bytedance/seedance-2-fast":{"480p":60,"720p":140},"bytedance/seedance-2":{"480p":100,"720p":200,"1080p":500,"4K":1e3},veo3_lite:{"720p":20,"1080p":30},veo3_fast:{"720p":40,"1080p":50},veo3:{"720p":180,"1080p":220}};function eO(e){return eS.has(e)}function eI(e){let t=parseInt(e.replace(/s$/i,""),10);return Number.isNaN(t)?1:t}function eE(e,t,o,a,r){if(!["text_to_video","image_to_video"].includes(e))return null;let s=eP[a][t];return s?"home_seedance2"===r?Math.ceil(s*Math.max(1,eI(o)/4)):s:null}function ez(e){let{item:t,eager:o}=e,r=(0,c.useRef)(null),s=(0,c.useRef)(!1),[i,d]=(0,c.useState)(o);return(0,c.useEffect)(()=>{if(i)return;let e=r.current;if(!e)return;let t=new IntersectionObserver(e=>{let[o]=e;o.isIntersecting&&(d(!0),t.disconnect())},{rootMargin:"600px 0px",threshold:.01});return t.observe(e),()=>t.disconnect()},[i]),(0,c.useEffect)(()=>{if(!i)return;let e=r.current;if(!e)return;let t=new IntersectionObserver(t=>{let[o]=t;s.current=o.isIntersecting,o.isIntersecting?e.play().catch(()=>void 0):e.pause()},{rootMargin:"80px 0px",threshold:.25});return t.observe(e),()=>{s.current=!1,t.disconnect(),e.pause()}},[i]),(0,a.jsx)("video",{ref:r,...i?{poster:t.posterUrl}:{}
1,muted:!0,loop:!0,playsInline:!0,preload:i?"metadata":"none",onMouseEnter:e=>{i||d(!0),e.currentTarget.play().catch(()=>void 0)},onMouseLeave:e=>{e.currentTarget.pause(),e.currentTarget.currentTime=0},onCanPlay:e=>{s.current&&e.currentTarget.play().catch(()=>void 0)},className:"aspect-[9/16] w-full bg-slate-950 object-cover",children:i&&(0,a.jsx)("source",{src:t.videoUrl,type:"video/mp4"})})}function eV(){var e,t,o,E,ea,ei;let ed=(0,s.c3)(),en=(0,k.Ym)(),{ref:ep,isVisible:eS}=(0,G.r)(),{data:eP}=(0,U.wV)(),{setShowSignModal:eV,setShowPricingModal:eD,user:eF}=(0,O.U)(),eB=!!(null==eF?void 0:null===(e=eF.credits)||void 0===e?void 0:e.is_recharged),eW=Number.isFinite(ei=null==eF?void 0:null===(t=eF.credits)||void 0===t?void 0:t.left_credits)&&Number(ei)>=20,eq=(0,N.usePathname)(),eH=(0,N.useSearchParams)(),eK=(0,es.al)(),eJ=(0,c.useRef)(null),e$=(0,c.useRef)(null),[eY,eZ]=(0,c.useState)("t2i"),[eX,eQ]=(0,c.useState)(null),[e0,e2]=(0,c.useState)("effects"),[e1,e4]=(0,c.useState)(null),[e7,e5]=(0,c.useState)("all"),[e8,e3]=(0,c.useState)(null),[e6,e9]=(0,c.useState)([]),[te,tt]=(0,c.useState)([]),[to,ta]=(0,c.useState)(null),[tr,ts]=(0,c.useState)(null),[ti,td]=(0,c.useState)(""),[tl,tn]=(0,c.useState)("16:9"),[tc,tp]=(0,c.useState)("720p"),[tu,tb]=(0,c.useState)("8s"),[tm,th]=(0,c.useState)("luma_dream_machine"),[tv,tf]=(0,c.useState)(!1),[tg,tw]=(0,c.useState)(!1),[ty,tx]=(0,c.useState)(""),[t_,tj]=(0,c.useState)(0),[tU,tk]=(0,c.useState)(null),[tN,tR]=(0,c.useState)(null),[tC,tT]=(0,c.useState)(null),[tL,tS]=(0,c.useState)(null),[tA,tM]=(0,c.useState)(!1),[tG,tP]=(0,c.useState)(0),[tO,tI]=(0,c.useState)(!1),[tE,tz]=(0,c.useState)(!1),[tV,tD]=(0,c.useState)(!1),[tF,tB]=(0,c.useState)(null),[tW,tq]=(0,c.useState)(0),[tH,tK]=(0,c.useState)(!1),[tJ,t$]=(0,c.useState)(!1),[tY,tZ]=(0,c.useState)(!1),[tX,tQ]=(0,c.useState)(null),[t0,t2]=(0,c.useState)(null),[t1,t4]=(0,c.useState)(null),t7=(0,c.useMemo)(()=>tU?"/api/video-proxy?url=".concat(encodeURIComponent(tU)):null,[tU]),t5=(0,c.useMemo)(()=>tE&&t7?t7:tU,[tU,t7,tE]),t8=te.filter(Boolean).length,t3=eA[tm],t6=X(t3.modelType),t9="edit"===eY&&1===t8,oe=0===ti.trim().length,ot=t9&&!eO(tm)?"8s":tu,oo=t8>0?"image_to_video":"text_to_video",oa=(0,c.useMemo)(()=>!eW||oe?null:function(e){let t=$(e.prompt),o=function(e){var t;let o=e.trim();return Math.ceil(eo(o,/[\u3400-\u9fff\uf900-\ufaff]/g)+1.3*((null===(t=o.replace(/[\u3400-\u9fff\uf900-\ufaff]/g," ").match(RegExp("[\\p{L}\\p{N}]+(?:['’-][\\p{L}\\p{N}]+)*","gu")))||void 0===t?void 0:t.length)||0))}(e.prompt),a=Y(e.prompt),r=eo(e.prompt,et),s=eo(e.prompt,Q),i=eo(e.prompt,ee),d=function(e,t,o){let a=function(e){let t=e.toLowerCase();return t.includes("seedance")?"seedance":t.includes("veo3")||t.includes("veo-3")?"veo":"generic"}(e),r=Math.max(1,t||8);return"veo"===a?{family:a,modelLabel:"Veo 3.1",maxShots:r>=8?4:r>=6?3:2,targetMaxTokens:220,targetMaxCharacters:Math.min(800,X(e)),recommendedStructure:o>1?"timestamped_multishot":"phased_single_take",promptGrammar:"Cinematography + subject + action + context + style/ambiance; add concise dialogue, SFX, and ambient sound only when requested.",shotGrammar:"For multiple shots, use contiguous [00:00-00:02] timestamp blocks covering the selected duration. Each block gets one primary visible action and one camera/composition instruction.",negativePromptRule:"Keep the main prompt affirmative. Do not stuff it with repeated 'no/don't' clauses; mention only essential preservation constraints because this product does not expose a separate negative-prompt field."}:"seedance"===a?{family:a,modelLabel:"Seedance 2.0",maxShots:r>=12?3:2,targetMaxTokens:150,targetMaxCharacters:800,recommendedStructure:r>=10&&o>1?"labeled_multishot":o>0?"phased_single_take":"single_take",promptGrammar:"Subject + action and visible endpoint + only necessary scene context + one motivated camera move + physical light + useful sound + preservation constraints.",shotGrammar:r>=10?"Use Shot 1:/Shot 2:/Shot 3: only when cuts are necessary. Each shot gets one primary action, one camera move, sound, and a completed endpoint.":"Prefer one continuous take with two clearly ordered phases. If two shots are essential, keep both extremely simple and do not add a third beat.",negativePromptRule:"Replace generic negative phrasing with observable positive direction; keep only identity, product, safety, or continuity exclusions in the constraint slot."}:{family:a,modelLabel:e||"video model",maxShots:r>=10?3:2,targetMaxTokens:180,targetMaxCharacters:Math.min(800,X(e)),recommendedStructure:o>1?"labeled_multishot":"phased_single_take",promptGrammar:"Subject + primary action and endpoint + necessary context + camera + physical light/style + sound + constraints.",shotGrammar:"Use no more than the shot budget. Give each shot one primary action and one camera instruction.",negativePromptRule:"Prefer concrete positive direction and retain only essential constraints."}}(e.modelType,e.durationSeconds,a),l=[],n=o>d.targetMaxTokens||t>d.targetMaxCharacters,c=a>d.maxShots,p=r>Math.max(1,Math.floor(e.durationSeconds/4)),u=o<55||t<140,b="polish";return n||c||p?(b="condense",n&&l.push("prompt_over_target_budget"),c&&l.push("shot_count_over_duration_budget"),p&&l.push("dialogue_over_duration_budget")):u||0===s||0===i?(b="expand",u&&l.push("prompt_is_short"),0===i&&l.push("missing_visible_action"),0===s&&l.push("missing_camera_direction")):l.push("prompt_needs_light_cleanup_only"),"image_to_video"===e.generationType&&l.push("image_to_video_motion_first"),{mode:b,characterCount:t,estimatedTokens:o,sceneMarkerCount:a,dialogueLineCount:r,cameraCueCount:s,actionCueCount:i,maxShots:d.maxShots,recommendedStructure:d.recommendedStructure,reasons:l}}({prompt:ti,modelType:t3.modelType,modelId:tm,durationSeconds:eI(ot),generationType:oo,hasReferenceImages:t8>0,firstAndLastFrames:2===t8&&!eO(tm),audioEnabled:!0}),[ot,eW,oe,tm,ti,oo,t3.modelType,t8]),or=[t3.modelType,ot,oo,ti.trim()].join("|"),os=t0===or,oi=(null==oa?void 0:oa.mode)==="condense"&&!os,od=null==eF?void 0:null===(o=eF.country_code)||void 0===o?void 0:o.trim().toUpperCase(),ol=!!(od&&eT.has(od))&&1===tW,on=(0,c.useRef)([]),oc=(0,c.useRef)(!1),op=(0,c.useRef)(!1),ou=(0,c.useRef)(!1),ob=(0,c.useRef)(!1),om=(0,c.useRef)(!1),oh=(0,c.useRef)(null),ov=(0,c.useRef)(null),of=(0,c.useRef)(!0),og=(0,c.useRef)(null),ow=(0,c.useRef)(null),oy=(0,c.useRef)(!1),ox=(0,c.useRef)(null),o_=(0,c.useMemo)(()=>({modelId:tm,modelType:t3.modelType,durationSeconds:eI(ot),generationType:oo,promptMode:(null==oa?void 0:oa.mode)||"unknown",characterCount:(null==oa?void 0:oa.characterCount)||ti.trim().length,sceneCount:(null==oa?void 0:oa.sceneMarkerCount)||0,maxShots:(null==oa?void 0:oa.maxShots)||0,isAuthenticated:!!(null==eP?void 0:eP.user),userType:eB?"paid":"free"}),[ot,eB,tm,ti,oa,oo,t3.modelType,null==eP?void 0:eP.user]);(0,c.useEffect)(()=>{eW||(tZ(!1),t$(!1),t4(null))},[eW]),(0,c.useEffect)(()=>
1{if(!oa||os){ox.current=null;return}let e="condense"===oa.mode?"condense":oa.sceneMarkerCount>1?"multiscene":"expand",t=[t3.modelType,ot,oo,e].join("|");ox.current!==t&&(ox.current=t,er("prompt_optimizer_hint_viewed",{...o_,hintType:e}))},[os,ot,oa,o_,oo,t3.modelType]),(0,c.useEffect)(()=>{tv&&eK&&eJ.current&&requestAnimationFrame(()=>{setTimeout(()=>{var e;null===(e=eJ.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center"})},300)})},[tv,eK]),(0,c.useEffect)(()=>{if(eK||!e$.current){e3(null);return}let e=()=>{window.requestAnimationFrame(()=>{var e;let t=null===(e=e$.current)||void 0===e?void 0:e.getBoundingClientRect().height;e3(t?Math.round(t):null)})};e();let t=new ResizeObserver(e);return t.observe(e$.current),window.addEventListener("resize",e),()=>{t.disconnect(),window.removeEventListener("resize",e)}},[eK,eY,ti,tm,tc,tu,e6.length,t8,to]),(0,c.useEffect)(()=>{tz(!1),tI(!1)},[tU]);let oj=e=>{try{return decodeURIComponent(e)}catch(t){return e}};(0,c.useEffect)(()=>{let e=(null==eH?void 0:eH.get("image"))||new URLSearchParams(window.location.search).get("image");if(e)try{let t=oj(e),o=oj(t);(0,eh.k)(o)?te.includes(o)||(tt([o]),e9([null]),console.log("✅ [Video] Image loaded from URL parameter:",o)):(console.warn("⚠️ [Video] Invalid image URL format:",o),R.oR.error((0,a.jsx)("span",{children:ed("upload.image_load_failed")||"Invalid image URL format"})))}catch(e){console.error("❌ [Video] Error loading image from URL:",e),R.oR.error((0,a.jsx)("span",{children:ed("upload.image_load_failed")||"Failed to load image"}))}},[eH,ed,te]);let oU=()=>{on.current.forEach(e=>clearTimeout(e)),on.current=[]},ok=(e,t)=>{try{let o=ed(e);return o&&o!==e?o:t}catch(e){return t}},oN=async e=>{let t=ti.trim();if(!eW)return;if(!t){R.oR.error(eL(oR));return}if(er("prompt_optimizer_clicked",{...o_,source:e}),!(null==eP?void 0:eP.user)){eV(!0);return}let o=t8>0,a=o&&2===t8&&!eO(tm),r=o&&1===t8&&!eO(tm)?"8s":tu;tK(!0);try{var s;let i=await fetch("/api/optimize-video-prompt",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prompt:t,modelType:t3.modelType,modelId:tm,durationSeconds:eI(r),generationType:o?"image_to_video":"text_to_video",hasReferenceImages:o,firstAndLastFrames:a,audioEnabled:!0})}),d=await i.json();if(!i.ok||!(null==d?void 0:d.success)||!(null==d?void 0:null===(s=d.data)||void 0===s?void 0:s.optimizedPrompt)){let e="string"==typeof(null==d?void 0:d.error)?d.error.toLowerCase():"prompt_optimizer_failed";throw Error(e)}t4(d.data),t$(!0),er("prompt_optimizer_succeeded",{...o_,source:e,optimizedCharacterCount:d.data.optimizedPrompt.length,resultMode:d.data.mode})}catch(o){let t=o instanceof Error?o.message:"prompt_optimizer_failed";er("prompt_optimizer_failed",{...o_,source:e,errorCode:t}),R.oR.error(eL(ok("upload.".concat(t),"prompt_optimizer_timeout"===t?"Prompt optimization took too long. Please try again.":"We couldn't optimize this prompt right now. Your original prompt is unchanged.")))}finally{tK(!1)}},oR="edit"===eY?ok("upload.image_to_video_prompt_required","Please enter a prompt to describe how the image should move."):ok("upload.enter_prompt_error","Please enter a prompt"),oC=(0,c.useMemo)(()=>e_.map(e=>({...e,label:ok("seedance_prompts_page.categories.".concat(e.key),e.label)})),[ed]),oT=(0,c.useMemo)(()=>("all"===e7?ej:ej.filter(e=>e.category===e7)).slice(0,48),[e7]);(0,c.useEffect)(()=>{if("seedance-gallery"!==((null==eH?void 0:eH.get("promptSource"))||new URLSearchParams(window.location.search).get("promptSource")))return;let e=window.sessionStorage.getItem(eC);e&&(om.current=!0,td(e),eZ("edit"),e2("history"),window.sessionStorage.removeItem(eC))},[eH]);let oL=e=>{let t=ok("upload.video_generation_failed_retry","Video generation failed. Please try again.");if(!e)return t;let o=e.trim().toLowerCase();return new Set(["generation_provider_temporarily_failed_refunded","generation_provider_failed_refunded","generation_provider_invalid_response_refunded","generation_processing_failed_refunded","generation_failed_refunded","credit_rules_query_failed","prompt_safety_blocked","prompt_safety_review_required","missing_prompt","missing_image_or_prompt","reference_video_needs_fast_model","first_last_frames_require_two_images","prompt_too_long_for_video_model","prompt_too_complex_for_video_model","prompt_public_figure_not_supported","prompt_copyrighted_brand_not_supported","prompt_adult_content_not_supported","prompt_sexualized_minor_not_supported","prompt_hateful_content_not_supported"]).has(o)?ok("upload.api_errors.".concat(o),t):e.includes("第三方API调用失败")||e.includes("第三方 API 调用失败")||o.includes("api call failed")||o.includes("internal error")||o.includes("try again later")||o.includes("temporar")||o.includes("timeout")||o.includes("unavailable")||o.includes("rate limit")||o.includes("retri")?ok("upload.api_errors.generation_provider_temporarily_failed_refunded","The video service is temporarily busy. Your credits have been returned. Please try again."):o.includes("processing failed")?ok("upload.api_errors.generation_processing_failed_refunded",t):o.includes("_")?ok("upload.api_errors.".concat(o),t):t},oS=e=>{oU(),tS({message:oL(e)}),tk(null),tR(null),tT(null),tI(!1),tf(!1),oc.current=!1,op.current=!1,tj(0),tx("")},oA=async e=>{try{let t=await fetch("/api/video-inspiration-prompt?id=".concat(encodeURIComponent(e.id)));if(!t.ok)throw Error("Unable to load inspiration prompt");let o=await t.json();if(!o.prompt)throw Error("Inspiration prompt is empty");td(o.prompt),e.aspectRatio&&t3.aspectRatios.includes(e.aspectRatio)&&tn(e.aspectRatio),e2("inspiration")}catch(e){console.error("Unable to load inspiration prompt",e),R.oR.error("Unable to load this prompt. Please try again.")}},oM=(e,t,o)=>{tS(null),tI(!1),tk(e),tR(o||e),tT(t||null),op.current=!1,R.oR.success(eL(ed("upload.generation_success")));let a=tW+1;tq(a),eB||2!==a||(R.oR.info(eL(ok("upload.free_credits_used_upgrade","You’ve used your free video credits. Upgrade to keep creating without waiting."))),eD(!0))},oG=e=>{let t=Array.from(e),o=[],r=Math.min(12,t3.maxImages);for(let e of t){if(!eU.has(e.type)){R.oR.error((0,a.jsx)("span",{children:ed("upload.file_type_error")}));continue}if(e.size>0x1400000){R.oR.error((0,a.jsx)("span",{children:ed("upload.file_size_error")}));continue}if(e6.length+o.length>=r){R.oR.error((0,a.jsx)("span",{children:ed("upload.max_images")}));break}o.push(e)}if(o.length){let e=e1&&"veo3_lite"===tm&&0===e6.length&&1===o.length?[o[0],o[0]]:o;e9(t=>[...t,...e]),tt(t=>[...t,...e.map(e=>URL.createObjectURL(e))]),R.oR.success((0,a.jsx)("span",{children:ed("upload.upload_success")}))}},oP=e=>{e.target.files&&oG(e.target.files)},oO=async e=>{var t;let o=null===(t=e.target.files)||void 0===t?void 0:t[0];if(e.target.value="",o){if(!t3.supportsAudioReference){R.oR.error(eL(ok("upload.audio_not_supported","Reference audio is not supported by this model.")));return}if(o.size>0x1400000){R.oR.error(eL(ok("upload.file_size_error","File is too large.")));return}if(!function(e,t,o){var a;let r=ex(o)?ew:ef,s=ex(o)?ey:eg,i=t.trim().toLowerCase();return r.has((null===(a=(e.split(/[?#]/,1)[0]||"").split(".").pop())||void 0===a?void 0:a.toLowerCase())||"")&&(!i||s.has(i))}(o.name,o.type,t3.modelType)){R.oR.error(eL(ok("upload.invalid_audio_file","Please upload an audio file.")));return}try{tf(!0),tx(ok("upload.uploading_audio","Uploading audio..."));let e=await (0,em.F)(o,"video_audio_reference",t3.modelType);ta(e),ts(o.name),R.oR.success(eL(ok("upload.upload_success","Upload successful.")))}catch(e){R.oR.error(eL(ok("upload.upload_failed","Upload failed.")))}finally{tf(!1),tx("")}}},oI=e=>{let t=te[e];(null==t?void 0:t.startsWith("blob:"))&&URL.revokeObjectURL(t),e9(t=>t.filter((t,o)=>o!==e)),tt(t=>t.filter((t,o)=>o!==e))},oE=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:te;(0,eb.T)(eq,"video",{activeTab:eY,prompt:ti,modelId:tm,modelSelection:om.current?"user":"default",aspectRatio:tl,resolution:tc,duration:tu,remoteMediaUrls:e.map(e=>(0,eh.k)(e)?e:null),audioUrls:to&&(0,eh.k)(to)?[to]:[]})},oz=async()=>{let e=await Promise.all(te.map(async(e,t)=>{if((0,eh.k)(e))return Promise.resolve(e);let o=e6[t];if(!(o instanceof File))return Promise.reject(Error("missing_required_remote_images"));let a=await ek(o);return(0,em.F)(a,"image_to_video")}));return tt(t=>
1(t.forEach(e=>{e.startsWith("blob:")&&URL.revokeObjectURL(e)}),e)),e9(e.map(()=>null)),e};(0,c.useEffect)(()=>{var e,t;if(ou.current)return;ou.current=!0;let o=(0,eb.W)(eq,"video");if(!o||!("user"===o.modelSelection||o.prompt.trim()||o.remoteMediaUrls.some(Boolean)||(null===(e=o.audioUrls)||void 0===e?void 0:e.length)))return;om.current=!0,ob.current=!0,("edit"===o.activeTab||"t2i"===o.activeTab)&&eZ(o.activeTab),td(o.prompt);let a=["luma_dream_machine","seedance-2-fast","seedance-2","seedance-2-5","veo3_lite","veo3_fast","veo3"].includes(o.modelId)?o.modelId:tm,r=eA[a];oh.current=a,r.aspectRatios.includes(o.aspectRatio)&&tn(o.aspectRatio),r.resolutions.includes(o.resolution)&&tp(o.resolution);let s=String(o.duration);r.durations.includes(s)&&tb(s),a!==tm&&th(a);let i=o.remoteMediaUrls.filter(eh.k);tt(i),e9(i.map(()=>null));let d=(null===(t=o.audioUrls)||void 0===t?void 0:t.find(eh.k))||null;ta(d),ts(d?ok("upload.reference_audio","Reference audio"):null)},[eq]),(0,c.useEffect)(()=>{let e="".concat((null==eF?void 0:eF.uuid)||"guest",":").concat(eB);if(ov.current!==e&&(ov.current=e,!(om.current||tv||ti.trim()||te.some(Boolean)||e6.some(Boolean))&&!to)){try{let e=localStorage.getItem("lumadreammachine:video-model:v1:".concat((null==eF?void 0:eF.uuid)||"guest"));if(e&&Object.hasOwn(eA,e)){om.current=!0,th(e);return}}catch(e){}th(eB?"veo3_lite":"luma_dream_machine"),tp("720p"),tb("8s")}},[eB,null==eF?void 0:eF.uuid,tv,ti,te,e6,to]);let oV=e=>{om.current=!0,th(e);try{localStorage.setItem("lumadreammachine:video-model:v1:".concat((null==eF?void 0:eF.uuid)||"guest"),e)}catch(e){}};(0,c.useEffect)(()=>{if(ou.current){if(ob.current){ob.current=!1;return}oE()}},[eY,ti,tl,tc,tu,tm,te,to,eq]);let oD=async e=>{let t=0,o=async()=>{tj(Math.min(5+(t+=1)/300*85,90)),t<10?tx(ed("upload.progress_start")):t<25?tx(ed("upload.progress_analyzing")):t<60?tx(ed("upload.progress_creating")):t<120?tx(ed("upload.progress_almost")):tx(ed("upload.generating_magic"));try{let a=new AbortController,r=setTimeout(()=>a.abort(),5e3),s=await fetch("/api/generate-video?taskId=".concat(e),{signal:a.signal});clearTimeout(r);let i=await s.json();if(i.success&&i.data){let{status:e,generated_video_url:t,output_video_url:o,error_message:a}=i.data;if("completed"===e){let e=t||o||null,a=t||o||null;tj(100),tx(ed("upload.progress_complete")),oU(),setTimeout(()=>{e?oM(e,null,a):oS(),tf(!1),oc.current=!1},400);return}if("failed"===e){oS(a);return}}t<300?on.current.push(window.setTimeout(o,2e3)):oS(ed("upload.generation_timeout"))}catch(e){if(e instanceof Error&&"AbortError"===e.name){t<300?on.current.push(window.setTimeout(o,2e3)):oS(ed("upload.generation_timeout"));return}t<300?on.current.push(window.setTimeout(o,2e3)):oS(ed("upload.generation_timeout"))}};tf(!0),oc.current=!0,tj(0),tx(ed("upload.progress_start")),o()},oF=()=>["4s","6s","8s"].includes(tu)?tu:"8s",oB=(e,t,o,a)=>
1{if("veo3_lite"===t3.modelType||"veo3_lite"===tm||t&&!o)return!1;let r=eE(e,"720p",oF(),"veo3_lite","default");return null!==r&&a>=r},oW=async()=>{var e,t,o,r;if(op.current)return;if(!oy.current&&oi&&tX!==or){er("prompt_optimizer_preflight_viewed",{...o_,source:"preflight"}),tZ(!0);return}oy.current=!1,e2("history");let s=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3e4;oU(),tf(!0),oc.current=!0,tj(0),tx(ed("upload.progress_start"));let r=Date.now(),s=()=>{let i=Date.now()-r;tj(Math.min(90,Math.floor(i/o*90))),i<o?og.current=window.setTimeout(s,800):(tj(100),tx(e),R.oR.error((0,a.jsx)("span",{children:e})),tf(!1),oc.current=!1,op.current=!1,t&&setTimeout(t,600))};s()};if(!(null==eP?void 0:eP.user)){op.current=!0,oE();try{if(te.length>0){tf(!0),tj(5),tx(ed("upload.uploading_images")||"Uploading images...");let e=await oz();if(e.length!==te.length)throw Error("missing_required_remote_images");oE(e)}}catch(e){R.oR.error((0,a.jsx)("span",{children:ed("upload.upload_failed")})),tf(!1),oc.current=!1,op.current=!1,tj(0),tx("");return}s("".concat(ed("upload.generation_failed_retry")," ").concat(ed("upload.login_required")).trim(),()=>{eV(!0)});return}let i=!!(null==eF?void 0:null===(e=eF.credits)||void 0===e?void 0:e.is_recharged);if(oe){R.oR.error((0,a.jsx)("span",{children:oR}));return}oU(),tS(null),tk(null),tR(null),tT(null),tI(!1);try{let e=t8>0,l="edit"===eY&&e?"edit":"t2i",c=e?"image_to_video":"text_to_video",p=t9&&!eO(tm)?"8s":tu,u="standard",b=e&&2===t8&&!eO(tm);if(e&&!b&&!eO(tm)&&"veo3_fast"!==tm){R.oR.error((0,a.jsx)("span",{children:ed("upload.api_errors.reference_video_needs_fast_model")}));return}op.current=!0,oc.current=!0;let m=t3.modelType,h=t3.billingContext;console.log("[Video Debug] provider=".concat("kie",", kieModelMode=").concat(tm,", modelTypeForRule=").concat(m,", billingContext=").concat(h,", NEXT_PUBLIC_VIDEO_PROVIDER=").concat("kie")),tD(!0);let v="/api/credit-rules?type=video_generation&generation_type=".concat(c,"&resolution=").concat(tc,"&duration=").concat(p,"&quality=").concat(u);m&&(v+="&model_type=".concat(m)),v+="&billing_context=".concat(h);let f=await fetch(v);if(tD(!1),!f.ok)throw Error("rule_query_failed");let g=await f.json(),w=Array.isArray(g)&&g.length>0?g[0]:null,y=eE(c,tc,p,m,h);if(!(null==w?void 0:w.model_type)&&null===y)throw Error("rule_not_found");let x=(null==w?void 0:w.model_type)||m,_=null!==(o=null==w?void 0:w.credits_consumed)&&void 0!==o?o:y,j=(null==x||x.includes("veo3"),"kie"),U=function(e,t,o){var a;let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s="string"==typeof e?e.trim():"",i=$(s),d="string"==typeof o?o.toLowerCase():"",l="string"==typeof t?t.toLowerCase():"",n=null===(a=r.enforceConfigurableRestrictions)||void 0===a||a,c=X(l),p=Y(s);return Z(s,F)?{ok:!1,error:"PROMPT_SEXUALIZED_MINOR_NOT_SUPPORTED",promptLength:i,maxLength:c,sceneMarkerCount:p,matchedCategory:"sexualized_minor"}:Z(s,B)?{ok:!1,error:"PROMPT_HATEFUL_CONTENT_NOT_SUPPORTED",promptLength:i,maxLength:c,sceneMarkerCount:p,matchedCategory:"hateful_content"}:n&&(Z(s,D)||s.split(/[.!?;\n]+/).some(e=>{if(!H.test(e))return!1;let t=q.test(e),o=K.test(e),a=W.test(e);return(!J.test(e)||!!t||!!o)&&(t||o||a)}))?{ok:!1,error:"PROMPT_ADULT_CONTENT_NOT_SUPPORTED",promptLength:i,maxLength:c,sceneMarkerCount:p,matchedCategory:"adult_content"}:"kie"!==d?{ok:!0}:Z(s,z)?{ok:!1,error:"PROMPT_PUBLIC_FIGURE_NOT_SUPPORTED",promptLength:i,maxLength:c,sceneMarkerCount:p,matchedCategory:"public_figure"}:Z(s,V)?{ok:!1,error:"PROMPT_COPYRIGHTED_BRAND_NOT_SUPPORTED",promptLength:i,maxLength:c,sceneMarkerCount:p,matchedCategory:"copyrighted_brand"}:i>c?{ok:!1,error:"PROMPT_TOO_LONG_FOR_VIDEO_MODEL",promptLength:i,maxLength:c,sceneMarkerCount:p}:{ok:!0}}(ti,x,j);if(!U.ok){let e=U.error.toLowerCase();R.oR.error(eL(ok("upload.api_errors.".concat(e),oL(e)))),oc.current=!1,op.current=!1;return}let k=null!==(r=null==eF?void 0:null===(t=eF.credits)||void 0===t?void 0:t.left_credits)&&void 0!==r?r:0;if(k<_){if(i){R.oR.error((0,a.jsx)("span",{children:ed("upload.generation_failed_insufficient_credits")})),oc.current=!1,op.current=!1;return}if(!i&&oB(c,e,b,k)){tP(k),tM(!0),oc.current=!1,op.current=!1;return}s(ed("upload.generation_failed_insufficient_credits"),void 0,(0,n.R_)(null==eF?void 0:eF.generation_country_code));return}oU(),tf(!0),oc.current=!0,tj(5),tx(ed("upload.progress_creating"));let N={prompt:ti,mode:l,generationType:c,resolution:tc,duration:p,quality:u,modelType:x,modelId:tm,billingContext:h,requiredCredits:_,aspect_ratio:tl,video_quality:tc,video_duration:p,firstAndLastFrames:b};
1if(to&&t3.supportsAudioReference&&(N.audioUrls=[to]),e){tx(ed("upload.uploading_images")||"Uploading images..."),tj(8);let e=await oz();if(e.length!==t8)throw Error("missing_required_remote_images");N.imageUrls=e}N.provider="kie";let C=await (0,d.K)("/api/generate-video",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(N)}),T=await C.json();if(T.success){let e=T.taskId||T.generation_id;if(e)oD(e);else{let e=T.generated_video_url||T.video||T.output_video_url||T.generated_image_url||null,t=T.generated_video_url||T.video||T.output_video_url||T.generated_image_url||null;e?oM(e,T.poster||T.generated_image_url||null,t):oS(),tf(!1),oc.current=!1}}else{let e=T.error||"generation_failed_retry",t="string"==typeof e?e.toLowerCase():e;if("insufficient_credits"===t)R.oR.error((0,a.jsx)("span",{children:ed("upload.paywall_title")})),setTimeout(()=>{window.location.href="/".concat(en,"/pricing?from=video_generation")},400);else if("video_concurrency_limit"===t)oS(t),R.oR.error(eL(ok("upload.api_errors.video_concurrency_limit","Too many videos are processing.")),{action:{label:ok("upload.api_errors.video_concurrency_limit_action","View my videos"),onClick:()=>window.location.assign("/".concat(en,"/my-videos"))}});else{let e="string"==typeof T.error&&T.error.includes("_")?ok("upload.api_errors.".concat(t),ok("upload.video_generation_failed_retry","Video generation failed. Please try again.")):"string"==typeof T.error?oL(T.error):ok("upload.video_generation_failed_retry","Video generation failed. Please try again.");oS(e)}tf(!1),oc.current=!1,op.current=!1,tj(0),tx("")}}catch(e){tD(!1),console.error("Error generating video:",e),e instanceof Error&&"rule_not_found"===e.message?R.oR.error((0,a.jsx)("span",{children:ed("upload.generation_rule_missing")||"未找到匹配的积分规则"})):e instanceof Error&&"rule_query_failed"===e.message?R.oR.error((0,a.jsx)("span",{children:ed("upload.generation_rule_failed")||"积分规则查询失败"})):oS(e instanceof Error?e.message:void 0),oU(),tf(!1),oc.current=!1,op.current=!1,tj(0),tx("")}},oq=async()=>{var e;let t=tN||tU;if(!t)return;if(!(null==eF?void 0:null===(e=eF.credits)||void 0===e?void 0:e.is_recharged)){R.oR.info((0,a.jsx)("span",{children:ed("upload.paywall_title")||"升级到 Pro 版本以解锁下载功能"})),eD(!0);return}let o=R.oR.loading((0,a.jsx)("span",{children:ed("upload.download_preparing",{defaultMessage:"Preparing download..."})}));tw(!0);try{await (0,P.A)(t,"wan-video-".concat(Date.now(),".mp4"),{proxyUrl:t7||void 0}),R.oR.success((0,a.jsx)("span",{children:ed("upload.download_success",{defaultMessage:"Download completed"})}),{id:o})}catch(e){console.error("download video error:",e),R.oR.error((0,a.jsx)("span",{children:ed("upload.download_failed",{defaultMessage:"Download failed"})}),{id:o})}finally{tw(!1)}};return(0,c.useEffect)(()=>()=>{oU(),og.current&&clearTimeout(og.current),op.current=!1},[]),(0,c.useEffect)(()=>{if(of.current){of.current=!1;return}"t2i"===eY&&(te.forEach(e=>{e.startsWith("blob:")&&URL.revokeObjectURL(e)}),e9([]),tt([])),tS(null)},[eY]),(0,c.useEffect)(()=>{t9&&!eO(tm)&&"8s"!==tu&&(tb("8s"),R.oR.info(eL(ok("upload.reference_video_duration_fixed","Single reference image videos only support 8 seconds."))))},[t9,tm,tu]),(0,c.useEffect)(()=>{let e=Math.min(12,t3.maxImages);!(te.length<=e)&&(te.slice(e).forEach(e=>{e.startsWith("blob:")&&URL.revokeObjectURL(e)}),tt(t=>t.slice(0,e)),e9(t=>t.slice(0,e)),R.oR.info(eL(ok("upload.max_images","This model supports up to ".concat(e," reference images.")))))},[t3.maxImages,te,ok]),(0,c.useEffect)(()=>{if(oh.current){if(oh.current!==tm)return;oh.current=null}t3.supportsAudioReference||(ta(null),ts(null))},[tm,t3.supportsAudioReference]),(0,c.useEffect)(()=>{t3.resolutions.includes(tc)||tp(t3.resolutions.includes("720p")?"720p":t3.resolutions[0]),t3.durations.includes(tu)||tb(t3.durations.includes("8s")?"8s":t3.durations[0]),t3.aspectRatios.includes(tl)||tn(t3.aspectRatios.includes("16:9")?"16:9":t3.aspectRatios[0])},[tl,t3,tu,tc]),(0,c.useEffect)(()=>{let e=!1;return(async()=>{let t=t8>0,o="edit"===eY&&t?"image_to_video":"text_to_video",a="edit"!==eY||1!==t8||eO(tm)?tu:"8s",r=t3.modelType,s=t3.billingContext;try{let t="/api/credit-rules?type=video_generation&generation_type=".concat(o,"&resolution=").concat(tc,"&duration=").concat(a,"&quality=standard");r&&(t+="&model_type=".concat(r)),t+="&billing_context=".concat(s);let d=await fetch(t);if(!e&&d.ok){var i;let e=await d.json(),t=Array.isArray(e)&&e.length>0?e[0]:null;tB(null!==(i=null==t?void 0:t.credits_consumed)&&void 0!==i?i:eE(o,tc,a,r,s))}}catch(t){e||tB(null)}})(),()=>{e=!0}},[tm,t3,tc,tu,eY,t8]),(null===(E=Object.entries(eN).find(e=>{let[t]=e;return eq.includes(t)}))||void 0===E?void 0:E[1])||eN["veo-3"],(0,a.jsxs)("section",{ref:ep,id:"upload-section",className:"relative overflow-hidden bg-background py-6 transition-all duration-1000 sm:py-8 md:py-16 ".concat(eS?"opacity-100 translate-y-0":"opacity-0 translate-y-20"),children:[(0,a.jsx)("div",{className:"absolute inset-0 flow-paper"}),(0,a.jsx)("div",{className:"absolute inset-0 bg-[linear-gradient(115deg,rgba(255,255,255,0.72),transparent_42%,rgba(217,249,157,0.2))]"}),(0,a.jsxs)("div",{className:"relative z-10 mx-auto w-[min(2000px,calc(100vw-16px))] max-w-none",children:[(0,a.jsxs)("div",{className:"mx-auto mb-6 max-w-5xl text-center sm:mb-8 md:mb-10",children:[(0,a.jsx)("p",{className:"inline-flex max-w-full items-center justify-center rounded-md border border-emerald-200 bg-white/90 px-3 py-1.5 text-center text-[11px] font-bold uppercase tracking-[0.16em] text-primary shadow-sm sm:text-xs sm:tracking-[0.22em]",children:ed("hero.badge")}),(0,a.jsx)("h1",{className:"mx-auto mt-4 max-w-5xl text-balance break-words text-3xl font-black leading-[1.02] text-foreground sm:mt-5 sm:text-4xl md:text-6xl md:leading-[0.96] lg:text-7xl",children:ed("hero.title")}),(0,a.jsx)("p",{className:"mx-auto mt-4 max-w-3xl text-pretty text-sm leading-6 text-muted-foreground sm:mt-5 sm:text-base sm:leading-7 md:text-lg",children:ed("hero.subtitle")})]}),(0,a.jsx)("div",{className:"mx-auto mb-6 max-w-5xl",children:(0,a.jsx)(l.AnnualUpsellCard,{placement:"hero"})}),(0,a.jsxs)(L.Zp,{className:"flow-panel w-full max-w-none overflow-hidden rounded-[22px] p-0 sm:rounded-[28px]",children:[(0,a.jsx)("div",{className:"flex justify-center border-b border-emerald-100 bg-white/80 px-4 py-4 md:px-6",children:(0,a.jsxs)("div",{className:"w-full max-w-3xl rounded-lg border border-border bg-card p-1 shadow-sm",children:[(0,a.jsx)(M.tU,{value:eX||eY,onValueChange:e=>{eQ(null),eZ(e)},children:(0,a.jsxs)(M.j7,{className:"grid h-auto min-h-11 w-full grid-cols-2 gap-1 bg-transparent p-0",children:[(0,a.jsx)(M.Xi,{value:"t2i",className:"min-h-11 whitespace-normal rounded-md px-2 py-2 text-center text-sm font-bold leading-tight text-emerald-700 data-[state=active]:bg-emerald-950 data-[state=active]:text-white sm:px-4 md:px-5",children:(0,a.jsx)("span",{children:ed("upload.tab_t2i")})}),(0,a.jsx)(M.Xi,{value:"edit",className:"min-h-11 whitespace-normal rounded-md px-2 py-2 text-center text-sm font-bold leading-tight text-emerald-700 data-[state=active]:bg-emerald-950 data-[state=active]:text-white sm:px-4 md:px-5",children:(0,a.jsx)("span",{children:ed("upload.tab_edit")})})]})}),(0,a.jsx)(i,{value:eX||eY,onValueChange:eQ})]})}),eX?(0,a.jsx)("div",{className:"p-3 sm:p-5",children:(0,a.jsx)(r.A,{mode:eX},eX)}):(0,a.jsxs)("div",{className:"grid items-start gap-6 p-3 sm:p-5 lg:grid-cols-[minmax(420px,560px)_minmax(0,1fr)] lg:p-6 xl:grid-cols-[minmax(460px,620px)_minmax(0,1fr)] 2xl:gr
1id-cols-[minmax(500px,640px)_minmax(0,1fr)]",children:[(0,a.jsxs)("div",{ref:e$,className:"min-w-0 space-y-5",children:[e1&&(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3 rounded-lg border border-violet-200 bg-violet-50 px-4 py-3",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm font-black text-slate-900",children:null===(ea=eu.find(e=>e.id===e1))||void 0===ea?void 0:ea.title}),(0,a.jsx)("p",{className:"mt-1 text-xs text-slate-600",children:"Upload one photo. Luma duplicates it as Veo 3.1 Lite start and end frames; you may upload two different photos instead."})]}),(0,a.jsx)("button",{type:"button",onClick:()=>e4(null),className:"shrink-0 rounded-full p-2 text-slate-500 hover:bg-white",children:(0,a.jsx)(p.A,{className:"h-4 w-4"})})]}),(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsx)("label",{className:"block text-xs font-black uppercase tracking-[0.18em] text-emerald-950",children:ed("hero.ai_model_label")}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsxs)("select",{value:tm,onChange:e=>oV(e.target.value),className:"flow-control min-h-12 w-full min-w-0 cursor-pointer appearance-none rounded-lg px-3 py-3 pr-10 text-sm font-bold text-foreground focus:outline-none focus:ring-2 focus:ring-primary/30 sm:px-4",children:[(0,a.jsx)("option",{value:"luma_dream_machine",children:"Veo 3.1 Lite"}),(0,a.jsx)("option",{value:"seedance-2-fast",children:"Seedance 2.0 Fast"}),(0,a.jsx)("option",{value:"seedance-2",children:"Seedance 2.0"}),(0,a.jsx)("option",{value:"veo3_fast",children:"Veo 3.1 Fast"}),(0,a.jsx)("option",{value:"veo3",children:"Veo 3.1 Quality"})]}),(0,a.jsx)("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-4",children:(0,a.jsx)("svg",{className:"w-4 h-4 text-muted-foreground",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})]}),(0,a.jsxs)("p",{className:"rounded-lg border border-emerald-200 bg-emerald-50/70 px-3 py-2 text-xs leading-5 text-emerald-950",children:[(0,a.jsxs)("span",{className:"font-bold",children:["This generation will use ",eM[tm],"."]})," ",eG[tm]]})]}),"edit"===eY&&(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)("label",{className:"mb-2 block text-xs font-black uppercase tracking-[0.18em] text-emerald-950",children:ed("upload.upload_image_label")}),0===te.length?(0,a.jsxs)("div",{className:(0,I.cn)("cursor-pointer rounded-lg border-2 border-dashed bg-emerald-50/70 p-4 text-center transition-colors sm:p-6","border-emerald-200 hover:border-primary/50 hover:bg-white"),onClick:()=>{var e;return null===(e=document.getElementById("video-reference-upload"))||void 0===e?void 0:e.click()},onDragOver:e=>e.preventDefault(),onDrop:e=>{e.preventDefault(),e.dataTransfer.files&&oG(e.dataTransfer.files)},children:[(0,a.jsx)(u.A,{className:"w-8 h-8 mx-auto mb-3 text-muted-foreground"}),(0,a.jsx)("p",{className:"text-sm text-foreground mb-2",children:ed("upload.upload_image_click_text")}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground",children:ed("upload.upload_image_formats")}),(0,a.jsx)("input",{type:"file",id:"video-reference-upload",multiple:!0,accept:"image/jpeg,image/png,image/webp",onChange:oP,className:"hidden"})]}):(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-2 sm:gap-3 md:grid-cols-3",children:[te.map((e,t)=>(0,a.jsxs)("div",{"data-clarity-mask":"true",className:"relative h-28 w-full overflow-hidden rounded-lg border border-emerald-200 bg-white sm:h-32",children:[(0,a.jsx)(C.p,{src:e,alt:ed("upload.upload_image_alt"),className:"w-full h-full object-cover",loadingText:ed("upload.image_loading_message")}),(0,a.jsx)("button",{onClick:()=>oI(t),className:"absolute right-1.5 top-1.5 z-10 flex h-9 w-9 items-center justify-center rounded-full bg-red-500 text-white transition-colors hover:bg-red-600 sm:right-2 sm:top-2",title:ed("upload.remove_image"),children:(0,a.jsx)(p.A,{className:"w-4 h-4"})})]},t)),te.length<Math.min(12,t3.maxImages)&&(0,a.jsxs)("div",{className:"flex min-h-28 cursor-pointer flex-col items-center justify-center rounded-lg border-2 border-dashed border-emerald-200 bg-emerald-50/50 p-3 text-center transition-colors hover:border-primary/50 hover:bg-white sm:min-h-32 sm:p-6",onClick:()=>{var e;return null===(e=document.getElementById("video-reference-upload"))||void 0===e?void 0:e.click()},children:[(0,a.jsx)(u.A,{className:"w-8 h-8 mx-auto mb-3 text-muted-foreground"}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground",children:ed("upload.add_image_progress",{count:te.length})})]})]}),(0,a.jsx)("input",{type:"file",id:"video-reference-upload",multiple:!0,accept:"image/jpeg,image/png,image/webp",onChange:oP,className:"hidden"})]})]}
1),t3.supportsAudioReference&&(0,a.jsxs)("div",{className:"rounded-lg border border-emerald-100 bg-emerald-50/45 p-4",children:[(0,a.jsxs)("div",{className:"flex gap-3",children:[(0,a.jsx)(b.A,{className:"mt-0.5 h-5 w-5 shrink-0 text-emerald-600"}),(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsx)("p",{className:"text-sm font-bold text-emerald-950",children:ok("upload.optional_audio","Reference audio")}),(0,a.jsx)("p",{className:"mt-1 text-xs leading-relaxed text-muted-foreground",children:"seedance-2"===t3.modelType?ok("upload.audio_hint_standard","MP3, MPEG, WAV, AAC, MP4, or OGG, up to 20 MB."):ok("upload.audio_hint","MP3, MPEG, or WAV, up to 20 MB. Fast does not support M4A.")}),to?(0,a.jsxs)("div",{className:"mt-3 flex items-center justify-between gap-3 rounded-lg border border-emerald-100 bg-white px-3 py-2",children:[(0,a.jsx)("span",{className:"truncate text-sm text-foreground",children:tr||ok("upload.reference_audio","Reference audio")}),(0,a.jsx)("button",{type:"button",onClick:()=>{ta(null),ts(null)},className:"grid h-8 w-8 shrink-0 place-items-center rounded-full text-muted-foreground hover:bg-emerald-50 hover:text-foreground",children:(0,a.jsx)(p.A,{className:"h-4 w-4"})})]}):(0,a.jsx)(T.$,{type:"button",variant:"outline",className:"mt-3 border-emerald-200 bg-white text-emerald-700 hover:bg-emerald-50",onClick:()=>{var e;return null===(e=ow.current)||void 0===e?void 0:e.click()},children:ok("upload.choose_audio","Choose audio")})]})]}),(0,a.jsx)("input",{ref:ow,type:"file",accept:ex(t3.modelType)?".mp3,.mpeg,.wav,.aac,.mp4,.ogg,audio/mpeg,audio/wav,audio/x-wav,audio/aac,audio/mp4,audio/ogg":".mp3,.mpeg,.wav,audio/mpeg,audio/wav,audio/x-wav",className:"hidden",onChange:oO})]}),to&&t8>0&&(0,a.jsx)("div",{role:"status",className:"rounded-lg border border-amber-200 bg-amber-50 px-3 py-2 text-xs leading-relaxed text-amber-900",children:ok("upload.audio_multimodal_notice","Multimodal reference mode is active. Images guide the character, scene, or style, but are not guaranteed to be the exact first frame. Remove the reference audio to use the image strictly as the first frame.")}),(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)("div",{children:(0,a.jsxs)("p",{className:"text-xs font-black uppercase tracking-[0.18em] text-emerald-950",children:[ed("upload.prompt_label"),(0,a.jsxs)("span",{className:"ml-1 text-xs text-muted-foreground",children:["(",ed("upload.prompt_required_label",{defaultMessage:"Required"}),")"]})]})}),(0,a.jsxs)("div",{className:"flex flex-col gap-3 rounded-lg border border-amber-200 bg-amber-50/80 p-3 text-amber-950 shadow-sm sm:flex-row sm:items-center sm:justify-between",children:[(0,a.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,a.jsx)("span",{className:"grid h-9 w-9 shrink-0 place-items-center rounded-full bg-amber-200/70 text-amber-700",children:(0,a.jsx)(m.A,{className:"h-4 w-4"})}),(0,a.jsx)("p",{className:"text-sm font-black leading-snug",children:ok("video_generator.prompt_examples_title","Better videos start with proven prompts.")})]}),(0,a.jsxs)(ev.N_,{href:"/luma-dream-machine-prompts",className:"inline-flex min-h-11 shrink-0 items-center justify-center gap-2 rounded-lg bg-emerald-600 px-4 py-2 text-sm font-black text-white shadow-lg shadow-emerald-900/15 transition hover:bg-emerald-700",children:[(0,a.jsx)(m.A,{className:"h-4 w-4"}),(0,a.jsx)("span",{children:ok("video_generator.browse_prompts_short","Browse prompts")})]})]}),(0,a.jsx)(A.T,{"data-clarity-mask":"true",value:ti,onChange:e=>{td(e.target.value),t4(null),t2(null)},placeholder:ed("upload.prompt_placeholder"),className:"min-h-[120px] resize-none rounded-lg border border-emerald-200 bg-white/90 text-base text-foreground shadow-sm placeholder:text-muted-foreground focus-visible:ring-primary/30 sm:min-h-[132px] sm:text-sm",maxLength:t6}),(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3 text-xs text-muted-foreground",children:[(0,a.jsxs)("span",{children:[ti.length,"/",t6]}),eW&&(0,a.jsxs)(T.$,{type:"button",size:"sm",variant:"outline",onClick:()=>void oN("inline"),disabled:tH||tv||oe,className:"h-9 shrink-0 gap-2 rounded-full border-violet-200 bg-vi
1olet-50 px-3 font-bold text-violet-700 hover:border-violet-300 hover:bg-violet-100",children:[tH?(0,a.jsx)(h.A,{className:"h-4 w-4 animate-spin"}):(0,a.jsx)(m.A,{className:"h-4 w-4"}),(0,a.jsx)("span",{children:ok("upload.prompt_optimizer_button","AI Optimize")})]})]}),oa&&!os&&(0,a.jsxs)("div",{role:"status",className:(0,I.cn)("flex items-start gap-2 rounded-lg border px-3 py-2 text-xs leading-5","condense"===oa.mode?"border-amber-300 bg-amber-50 text-amber-900":oa.sceneMarkerCount>1?"border-amber-200 bg-amber-50/70 text-amber-800":"border-violet-100 bg-violet-50/60 text-violet-800"),children:["condense"===oa.mode?(0,a.jsx)(v.A,{className:"mt-0.5 h-4 w-4 shrink-0"}):(0,a.jsx)(m.A,{className:"mt-0.5 h-4 w-4 shrink-0"}),(0,a.jsx)("span",{children:"condense"===oa.mode?ok("upload.prompt_optimizer_hint_condense","This prompt may be too complex for the selected duration. AI Optimize can shorten it."):oa.sceneMarkerCount>1?ok("upload.prompt_optimizer_hint_multiscene","Multiple scenes detected. AI Optimize can fit them to the selected duration."):ok("upload.prompt_optimizer_hint_expand","Add motion and camera detail for more predictable results.")})]})]}),(0,a.jsx)("div",{className:"space-y-6",children:(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsx)("label",{className:"mb-3 block text-xs font-black uppercase tracking-[0.18em] text-emerald-950",children:ed("upload.aspect_ratio_label")}),(0,a.jsx)("div",{className:"grid grid-cols-3 gap-2",children:t3.aspectRatios.map(e=>{let[t,o]=e.includes(":")?e.split(":").map(e=>Number(e)||1):[22,16],r=28/Math.max(t,o),s="auto"===e?22:Math.max(14,Math.round(t*r)),i="auto"===e?16:Math.max(14,Math.round(o*r)),d="auto"===e?"Auto":e;return(0,a.jsxs)("button",{type:"button",onClick:()=>tn(e),className:(0,I.cn)("flex flex-col items-center gap-2 rounded-lg border px-2 py-3 transition-all",tl===e?"flow-control-active":"flow-control text-foreground hover:border-primary/50"),children:[(0,a.jsx)("div",{className:(0,I.cn)("rounded transition-all",tl===e?"bg-white":"bg-emerald-700/40"),style:{width:"".concat(s,"px"),height:"".concat(i,"px")}}),(0,a.jsx)("span",{className:"whitespace-nowrap text-xs font-medium",children:d})]},e)})}),(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsx)("label",{className:"mb-2 block text-xs font-black uppercase tracking-[0.18em] text-emerald-950",children:ed("upload.video_quality_label")}),(0,a.jsx)("div",{className:"grid grid-cols-2 gap-3",children:t3.resolutions.map(e=>(0,a.jsx)("button",{type:"button",disabled:!1,onClick:()=>{tp(e)},className:(0,I.cn)("rounded-lg border px-4 py-3 text-center text-sm font-bold transition-all",tc===e?"flow-control-active":"flow-control text-foreground hover:border-primary/50",!1),children:(0,a.jsx)("span",{children:ok("upload.video_quality_options.".concat(e),e)})},e))})]}),(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsx)("label",{className:"mb-2 block text-xs font-black uppercase tracking-[0.18em] text-emerald-950",children:ed("upload.video_duration_label")}),eO(tm)?(0,a.jsxs)("div",{className:"rounded-lg border border-emerald-200 bg-emerald-50/70 px-4 py-4",children:[(0,a.jsxs)("div",{className:"mb-3 flex items-center justify-between",children:[(0,a.jsx)("b",{className:"text-lg text-emerald-700",children:tu}),(0,a.jsx)("span",{className:"text-xs text-muted-foreground",children:"4s - 15s"})]}),(0,a.jsx)("input",{type:"range",min:"4",max:"15",step:"1",value:eI(tu),onChange:e=>tb("".concat(e.target.value,"s")),className:"h-2 w-full cursor-pointer accent-emerald-600"})]}):(0,a.jsx)("div",{className:"grid grid-cols-3 gap-3",children:t3.durations.map(e=>{let t=t9&&"8s"!==e;return(0,a.jsx)("button",{type:"button",disabled:t,title:t?ok("upload.reference_video_duration_fixed","Single reference image videos only support 8 seconds."):void 0,onClick:()=>{if(t){R.oR.info(eL(ok("upload.reference_video_duration_fixed","Single reference image videos only support 8 seconds.")));return}tb(e)},className:(0,I.cn)("rounded-lg border px-4 py-3 text-center text-sm font-bold transition-all",tu===e?"flow-control-active":"flow-control text-foreground hover:border-primary/50",t&&"curs
1or-not-allowed opacity-45 hover:border-emerald-200"),children:(0,a.jsx)("span",{children:ok("upload.video_duration_options.".concat(e),e)})},e)})}),t9&&!eO(tm)&&(0,a.jsx)("p",{className:"text-xs text-muted-foreground",children:ok("upload.reference_video_duration_fixed","Single reference image videos only support 8 seconds.")})]})]})}),(0,a.jsx)(T.$,{onClick:oW,className:"flow-cta sticky bottom-3 z-20 h-auto min-h-14 w-full whitespace-normal rounded-lg px-4 py-3 text-base font-black leading-tight shadow-xl transition-all duration-300 disabled:opacity-50 lg:static lg:shadow-none",disabled:tv||tV,children:tv?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h.A,{className:"w-4 h-4 mr-2 animate-spin"}),(0,a.jsx)("span",{children:ty||ed("upload.generating_text")})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.A,{className:"w-4 h-4 mr-2"}),(0,a.jsxs)("span",{children:[ed("upload.generate_with_ai_editor"),null!==tF&&(0,a.jsxs)("span",{className:"ml-1.5",children:["\xb7 ★",tF]})]})]})}),tv&&(0,a.jsxs)("div",{ref:eJ,className:"space-y-3",children:[(0,a.jsx)("div",{className:"h-2 w-full rounded-full bg-emerald-100",children:(0,a.jsx)("div",{className:"h-2 rounded-full bg-gradient-to-r from-emerald-600 via-teal-500 to-lime-500 transition-all duration-500",style:{width:"".concat(t_,"%")}})}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground text-center",children:ty||ed("upload.progress_creating")})]})]}),(0,a.jsx)("aside",{className:"flex h-[680px] min-h-0 min-w-0 flex-col rounded-[22px] border border-emerald-100 bg-[linear-gradient(145deg,#f7fffb_0%,#effbf5_100%)] p-3 shadow-sm sm:h-[760px] sm:p-4",style:e8?{height:"".concat(e8,"px")}:void 0,children:(0,a.jsxs)("div",{className:"flex h-full min-h-0 flex-col gap-4",children:[(0,a.jsxs)("div",{className:"grid min-h-12 grid-cols-3 gap-1 rounded-lg border border-emerald-200 bg-white p-1 shadow-sm",children:[(0,a.jsxs)("button",{type:"button",onClick:()=>e2("effects"),className:(0,I.cn)("inline-flex items-center justify-center gap-2 rounded-md px-3 py-2 text-sm font-black transition","effects"===e0?"bg-emerald-950 text-white shadow-sm":"text-slate-500 hover:bg-emerald-50 hover:text-emerald-900"),children:[(0,a.jsx)(f.A,{className:"h-4 w-4"}),(0,a.jsx)("span",{children:"AI Effects"})]}),(0,a.jsxs)("button",{type:"button",onClick:()=>e2("history"),className:(0,I.cn)("inline-flex items-center justify-center gap-2 rounded-md px-3 py-2 text-sm font-black transition","history"===e0?"bg-emerald-950 text-white shadow-sm":"text-slate-500 hover:bg-emerald-50 hover:text-emerald-900"),children:[(0,a.jsx)(g.A,{className:"h-4 w-4"}),(0,a.jsx)("span",{children:ok("video_generator.history_tab","History")})]}),(0,a.jsxs)("button",{type:"button",onClick:()=>e2("inspiration"),className:(0,I.cn)("inline-flex items-center justify-center gap-2 rounded-md px-3 py-2 text-sm font-black transition","inspiration"===e0?"bg-emerald-950 text-white shadow-sm":"text-slate-500 hover:bg-emerald-50 hover:text-emerald-900"),children:[(0,a.jsx)(m.A,{className:"h-4 w-4"}),(0,a.jsx)("span",{children:ok("video_generator.inspiration_tab","Inspiration")})]})]}),"effects"===e0?(0,a.jsx)(ec,{effects:eu,selectedId:e1,onSelect:e=>{if(e4(e.id),e2("effects"),eZ("edit"),oV(e.modelId),tp(e.resolution),tb(e.duration),tn(e.aspectRatio),td(e.prompt),1===te.length){let e=te[0],t=e6[0],o=t instanceof File?URL.createObjectURL(t):e;tt([e,o]),e9([t||null,t||null])}tS(null),tk(null),er("video_effect_selected",{effectId:e.id,model:e.modelId}),R.oR.success(eL("".concat(e.title," selected. Upload one photo; it will be used for both Veo frames."))),window.requestAnimationFrame(()=>{var e;return null===(e=e$.current)||void 0===e?void 0:e.scrollIntoView({behavior:"smooth",block:"start"})})}}):"history"===e0?(0,a.jsxs)("div",{className:"relative min-h-[260px] flex-1 overflow-y-auto pr-1",children:[tL?(0,a.jsxs)("div",{className:"rounded-lg border border-amber-200 bg-amber-50/90 p-5 text-amber-950 shadow-lg shadow-amber-900/5",children:[(0,a.jsxs)("div",{className:"mb-4 flex items-start gap-3",children:[(0,a.jsx)("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-full border border-amber-300/60 bg-white text-amber-600",children:(0,a.jsx)(v.A,{className:"h-5 w-5"})}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("h3",{className:"text-lg font-semibold",children:ok("upload.video_generation_failed_title","Video generation failed")}),(0,a.jsx)("p",{className:"mt-1 text-sm leading-6 text-amber-800",children:tL.message})]})]}),(0,a.jsxs)(T.$,{type:"button",onClick:()=>{tv||oW()},disabled:tv,className:"h-12 w-full rounded-xl bg-gradient-to-r from-emerald-600 via-teal-500 to-lime-500 font-bold text-white shadow-lg shadow-emerald-600/20 transition-all duration-300 hover:shadow-xl",children:[(0,a.jsx)(w.A,{className:"mr-2 h-4 w-4"}),(0,a.jsx)("span",{children:ok("upload.video_generation_retry_button","Try again")})]})]}):tU?(0,a.jsxs)("div",{className:"space-y-4","data-clarity-mask":"true",children:[(0,a.jsxs)("div",{className:"rounded-lg border border-emerald-200 bg-white p-4 shadow-inner shadow-emerald-900/5",children:[(0,a.jsx)("h3",{className:"text-lg font-semibold text-foreground mb-2",children:ed("upload.generated_video_title")}),(0,a.jsx)("video",{src:t5||tU,poster:tC||void 0,controls:!0,onError:()=>{if(tN&&tN!==tU){tk(tN),tI(!1);return}if(!tE&&t7){tz(!0),tI(!1);return}tI(!0)},onLoadedData:()=>
1tI(!1),playsInline:!0,preload:"metadata",className:"max-h-[65vh] w-full rounded-xl bg-emerald-950 object-contain shadow-2xl shadow-emerald-900/15 sm:max-h-[70vh]"}),tO&&(0,a.jsx)("a",{href:tN||tU,target:"_blank",rel:"noreferrer",className:"mt-3 inline-flex text-sm font-medium text-primary underline-offset-4 hover:underline",children:(0,a.jsx)("span",{children:ok("upload.video_open_fallback","Open video in a new tab")})})]}),ol&&(0,a.jsxs)(T.$,{type:"button",onClick:()=>{tv||oW()},className:"w-full h-12 bg-gradient-to-r from-primary to-primary/70 text-primary-foreground font-bold rounded-lg shadow-lg hover:shadow-xl transition-all duration-300",children:[(0,a.jsx)(w.A,{className:"w-4 h-4 mr-2"}),(0,a.jsx)("span",{children:ok("upload.create_another_video","Create another video")})]}),(0,a.jsxs)(T.$,{onClick:oq,className:"flow-cta h-12 w-full rounded-lg font-black transition-all duration-300",children:[(0,a.jsx)(y.A,{className:"w-4 h-4 mr-2"}),(0,a.jsx)("span",{children:tg?ed("upload.download_video_in_progress",{defaultMessage:"Downloading video..."}):ed("upload.download_video",{defaultMessage:"Download Video"})})]}),(0,a.jsx)(l.AnnualUpsellCard,{placement:"result"}),!eB&&(0,a.jsxs)("div",{className:"flex flex-col gap-3 rounded-xl border border-primary/25 bg-primary/10 p-4 sm:flex-row sm:items-center sm:justify-between",children:[(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[(0,a.jsx)("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-primary/15 text-primary",children:(0,a.jsx)(m.A,{className:"h-4 w-4"})}),(0,a.jsx)("p",{className:"text-sm font-medium leading-6 text-foreground",children:(0,a.jsx)("span",{children:ok("upload.result_upgrade_hint","Download your video and keep creating without waiting.")})})]}),(0,a.jsx)(T.$,{type:"button",size:"sm",onClick:()=>eD(!0),className:"h-10 shrink-0 bg-gradient-to-r from-primary to-primary/70 px-5 font-bold text-primary-foreground shadow-md hover:shadow-lg",children:(0,a.jsx)("span",{children:ok("upload.result_upgrade_cta","Upgrade")})})]})]}):(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsxs)("div",{className:"mb-1",children:[(0,a.jsx)("h3",{className:"text-sm font-semibold text-foreground",children:ed("upload.sample_title")}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground",children:ed("upload.sample_desc")})]}),(0,a.jsx)("div",{className:"overflow-hidden rounded-lg border border-emerald-200 bg-white shadow-[0_22px_60px_rgba(6,78,59,0.14)]",children:(0,a.jsx)(el,{videos:eR})}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground text-center",children:ed("upload.sample_tip")})]}),tv&&(0,a.jsxs)("div",{className:"absolute inset-0 z-10 flex flex-col items-center justify-center rounded-xl border border-emerald-100 bg-white/90 p-4 shadow-lg backdrop-blur-md sm:p-6",children:[(0,a.jsxs)("div",{className:"relative mb-4",children:[(0,a.jsx)("div",{className:"h-14 w-14 rounded-full border-2 border-emerald-200"}),(0,a.jsx)(h.A,{className:"absolute inset-0 m-auto h-10 w-10 animate-spin text-primary"})]}),(0,a.jsx)("h4",{className:"text-base font-semibold text-black mb-1",children:ed("upload.preview_processing_title")}),(0,a.jsx)("p",{className:"text-sm text-black text-center mb-4 max-w-sm",children:ty||ed("upload.preview_processing_desc")}),(0,a.jsx)("div",{className:"h-2 w-full overflow-hidden rounded-full bg-emerald-100",children:(0,a.jsx)("div",{className:"h-2 rounded-full bg-gradient-to-r from-emerald-600 via-teal-500 to-lime-500 transition-all duration-1000",style:{width:"".concat(t_,"%")}})}),(0,a.jsx)("p",{className:"mt-2 text-xs text-black text-center",children:ed("upload.preview_processing_tip")}),!eB&&(0,a.jsxs)("div",{className:"mt-3 flex w-full flex-col items-center justify-center gap-2 rounded-lg border border-amber-200/80 bg-amber-50/90 px-3 py-2 sm:flex-row sm:gap-3",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 text-xs sm:text-sm text-amber-900 text-center sm:text-left",children:[(0,a.jsx)(x.A,{className:"h-4 w-4 text-amber-500"}),(0,a.jsx)("span",{children:ed("upload.skip_queue_hint")})]}),(0,a.jsx)(T.$,{type:"button",size:"sm",variant:"outline",className:"border-amber-300 bg-white text-amber-900 hover:bg-amber-100",onClick:()=>eD(!0),children:(0,a.jsx)("span",{children:ed("upload.skip_queue_cta")})})]})]})]}):(0,a.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col gap-3 overflow-hidden rounded-lg border border-emerald-200 bg-white/70 p-3",children:[(0,a.jsxs)("div",{className:"space-y-1",children:[(0,a.jsx)("h3",{className:"text-sm font-black text-foreground",children:ok("video_generator.inspiration_title","Prompt inspiration")}),(0,a.jsx)("p",{className:"text-xs leading-5 text-muted-foreground",children:ok("video_generator.inspiration_description","Pick a real Luma Dream Machine example and fill the prompt instantly.")})]}),(0,a.jsx)("div",{className:"flex gap-2 overflow-x-auto rounded-2xl border border-emerald-100 bg-white/75 p-2 shadow-sm [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:oC.map(e=>(0,a.jsx)("button",{type:"button",onClick:()=>e5(e.key),className:(0,I.cn)("shrink-0 rounded-full border px-4 py-2 text-sm font-black transition",e7===e.ke
1y?"border-emerald-600 bg-emerald-600 text-white shadow-sm":"border-emerald-200 bg-white text-slate-700 hover:border-emerald-400 hover:text-emerald-800"),children:e.label},e.key))}),(0,a.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto pr-1",children:(0,a.jsx)("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 xl:grid-cols-4",children:oT.map((e,t)=>(0,a.jsxs)("article",{className:"group relative overflow-hidden rounded-lg border border-emerald-100 bg-slate-950 shadow-sm",children:[(0,a.jsx)(ez,{item:e,eager:t<4}),(0,a.jsx)("span",{className:"absolute left-2 top-2 rounded-full bg-white px-2.5 py-1 text-xs font-black text-slate-950 shadow-sm",children:ok("seedance_prompts_page.categories.".concat(e.category),e.categoryLabel)}),(0,a.jsx)("span",{className:"notranslate absolute bottom-2 left-2 rounded-full bg-black/65 px-2.5 py-1 text-xs font-bold text-white",children:e.duration}),(0,a.jsxs)("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 translate-y-2 bg-gradient-to-t from-black/85 via-black/55 to-transparent p-3 opacity-0 transition duration-200 group-hover:translate-y-0 group-hover:opacity-100 group-focus-within:translate-y-0 group-focus-within:opacity-100",children:[(0,a.jsx)("h4",{className:"mb-2 line-clamp-2 text-sm font-black leading-tight text-white",children:e.title}),(0,a.jsxs)("button",{type:"button",onClick:()=>oA(e),className:"pointer-events-auto inline-flex min-h-10 w-full items-center justify-center gap-2 rounded-lg bg-emerald-600 px-3 py-2 text-sm font-black text-white shadow-lg shadow-black/20 transition hover:bg-emerald-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/80",children:[(0,a.jsx)(m.A,{className:"h-4 w-4"}),(0,a.jsx)("span",{children:ok("video_generator.try_this","Try this")})]})]})]},e.id))})})]})]})})]})]})]}),(0,a.jsx)(S.lG,{open:eW&&tY,onOpenChange:tZ,children:(0,a.jsxs)(S.Cf,{className:"w-[calc(100vw-24px)] max-w-[480px] rounded-3xl border-amber-200 bg-white p-5 text-slate-900 shadow-2xl sm:p-7",children:[(0,a.jsxs)(S.c7,{children:[(0,a.jsx)("span",{className:"mb-2 grid h-12 w-12 place-items-center rounded-2xl bg-amber-100 text-amber-700",children:(0,a.jsx)(v.A,{className:"h-6 w-6"})}),(0,a.jsx)(S.L3,{className:"text-left text-xl font-black sm:text-2xl",children:(0,a.jsx)("span",{children:ok("upload.prompt_preflight_title","Optimize this prompt?")})}),(0,a.jsx)(S.rr,{className:"text-left text-sm leading-6 text-slate-600",children:(0,a.jsx)("span",{children:ok("upload.prompt_preflight_description","This prompt may contain more detail than the selected video duration can reliably show. You can optimize it first or generate it as written.")})})]}),(0,a.jsxs)("div",{className:"mt-2 flex flex-col-reverse gap-3 sm:flex-row sm:justify-end",children:[(0,a.jsx)(T.$,{type:"button",variant:"outline",className:"min-h-11 w-full rounded-xl border-slate-200 font-bold sm:w-auto",onClick:()=>{er("prompt_optimizer_original_generated",{...o_,source:"preflight"}),tQ(or),tZ(!1),oy.current=!0,oW()},children:(0,a.jsx)("span",{children:ok("upload.prompt_preflight_generate_original","Generate original")})}),(0,a.jsxs)(T.$,{type:"button",className:"min-h-11 w-full rounded-xl bg-violet-600 font-black text-white hover:bg-violet-700 sm:w-auto",onClick:()=>{tZ(!1),oN("preflight")},children:[(0,a.jsx)(m.A,{className:"mr-2 h-4 w-4"}),(0,a.jsx)("span",{children:ok("upload.prompt_optimizer_button","AI Optimize")})]})]})]})}),(0,a.jsx)(S.lG,{open:eW&&tJ,onOpenChange:e=>{!e&&tJ&&er("prompt_optimizer_result_dismissed",{...o_,source:"review",dismissMethod:"close"}),t$(e)},children:(0,a.jsxs)(S.Cf,{className:"flex w-[calc(100vw-16px)] max-w-[760px] max-h-[calc(100svh-16px)] flex-col gap-0 overflow-hidden rounded-3xl border-violet-200 bg-white p-0 text-slate-900 shadow-2xl [overflow-wrap:anywhere] sm:w-[calc(100vw-24px)] sm:max-h-[calc(100svh-24px)]",children:[(0,a.jsx)(S.c7,{className:"shrink-0 border-b border-slate-100 px-4 py-4 sm:px-7 sm:py-6",children:(0,a.jsxs)("div",{className:"flex min-w-0 items-start gap-3 pr-8 sm:items-center",children:[(0,a.jsx)("span",{className:"notranslate grid h-11 w-11 shrink-0 place-items-center rounded-2xl bg-violet-100 text-violet-700",translate:"no",children:(0,a.jsx)(m.A,{className:"h-5 w-5"})}),(0,a.jsxs)("div",{className:"min-w-0 text-left",children:[(0,a.jsx)(S.L3,{className:"text-xl font-black sm:text-2xl",children:(0,a.jsx)("span",{children:ok("upload.prompt_optimizer_title","Review your optimized prompt")})}),(0,a.jsx)(S.rr,{className:"mt-1 text-sm leading-6",children:(0,a.jsx)("span",{children:(null==t1?void 0:t1.mode)==="expand"?ok("upload.prompt_optimizer_expand","Expanded a short idea with model-ready motion, camera, light, and sound direction."):(null==t1?void 0:t1.mode)==="condense"?ok("upload.prompt_optimizer_condense","Condensed an overloaded prompt to fit the selected model and duration."):ok("upload.prompt_optimizer_polish","Cleaned up the prompt without changing its scope.")})})]})]})}),t1&&(0,a.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col","data-clarity-mask":"true",children:[(0,a.jsxs)("div",{className:"min-h-0 flex-1 space-y-4 overflow-y-auto overflow-x-hidden px-4 py-4 overscroll-contain sm:px-7 sm:py-5",children:[(0,a.jsxs)("div",{className:"grid gap-3 md:grid-cols-2",children:[(0,a.jsxs)("div",{className:"rounded-2xl border border-slate-200 bg-slate-50 p-4",children:[(0,a.jsxs)("div",{className:"mb-2 flex items-center justify-between gap-2",children:[(0,a.jsx)("p",{className:"text-xs font-black uppercase tracking-[0.14em] text-slate-500",children:(0,a.jsx)("span",{children:ok("upload.prompt_optimizer_original","Original")})}),(0,a.jsxs)("span",{className:"inline-flex min-w-0 flex-wrap items-center justify-end gap-x-1 text-right text-xs text-slate-500",children:[(0,a.jsx)("span",{className:"notranslate",translate:"no",children:t1.originalPrompt.length}),(0,a.jsx)("span",{children:ok("upload.prompt_optimizer_characters","characters")})]})]}),(0,a.jsx)("p",{className:"whitespace-pre-wrap text-sm leading-6 text-slate-700",children:(0,a.jsx)("span",{className:"notranslate",translate:"no",suppressHydrationWarning:!0,children:t1.originalPrompt})})]}),(0,a.jsxs)("div",{className:"rounded-2xl border border-violet-200 bg-vi
1olet-50/70 p-4",children:[(0,a.jsxs)("div",{className:"mb-2 flex items-center justify-between gap-2",children:[(0,a.jsx)("p",{className:"text-xs font-black uppercase tracking-[0.14em] text-violet-700",children:(0,a.jsx)("span",{children:ok("upload.prompt_optimizer_recommended","Recommended")})}),(0,a.jsxs)("span",{className:"inline-flex min-w-0 flex-wrap items-center justify-end gap-x-1 text-right text-xs text-violet-700",children:[(0,a.jsx)("span",{className:"notranslate",translate:"no",children:t1.optimizedPrompt.length}),(0,a.jsx)("span",{children:ok("upload.prompt_optimizer_characters","characters")})]})]}),(0,a.jsx)("p",{className:"whitespace-pre-wrap text-sm leading-6 text-slate-900",children:(0,a.jsx)("span",{className:"notranslate",translate:"no",suppressHydrationWarning:!0,children:t1.optimizedPrompt})})]})]}),(t1.adjustments.length>0||t1.warnings.length>0)&&(0,a.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[t1.adjustments.length>0&&(0,a.jsxs)("div",{className:"rounded-2xl border border-emerald-200 bg-emerald-50 p-4",children:[(0,a.jsx)("p",{className:"mb-2 text-sm font-black text-emerald-900",children:(0,a.jsx)("span",{children:ok("upload.prompt_optimizer_changes","What changed")})}),(0,a.jsx)("ul",{className:"space-y-2 text-sm leading-5 text-emerald-950",children:t1.adjustments.map((e,t)=>(0,a.jsxs)("li",{className:"flex gap-2",children:[(0,a.jsx)(_.A,{className:"notranslate mt-0.5 h-4 w-4 shrink-0 text-emerald-600","aria-hidden":"true"}),(0,a.jsx)("span",{children:e})]},"".concat(e,"-").concat(t)))})]}),t1.warnings.length>0&&(0,a.jsxs)("div",{className:"rounded-2xl border border-amber-200 bg-amber-50 p-4",children:[(0,a.jsx)("p",{className:"mb-2 text-sm font-black text-amber-900",children:(0,a.jsx)("span",{children:ok("upload.prompt_optimizer_warnings","Needs attention")})}),(0,a.jsx)("ul",{className:"space-y-2 text-sm leading-5 text-amber-950",children:t1.warnings.map((e,t)=>(0,a.jsxs)("li",{className:"flex gap-2",children:[(0,a.jsx)(v.A,{className:"notranslate mt-0.5 h-4 w-4 shrink-0 text-amber-600","aria-hidden":"true"}),(0,a.jsx)("span",{children:e})]},"".concat(e,"-").concat(t)))})]})]})]}),(0,a.jsxs)("div",{className:"flex shrink-0 flex-col-reverse gap-3 border-t border-slate-200 bg-white/95 px-4 pb-[max(1rem,env(safe-area-inset-bottom))] pt-3 shadow-[0_-12px_28px_rgba(15,23,42,0.08)] backdrop-blur sm:flex-row sm:justify-end sm:px-7 sm:pb-5 sm:pt-4",children:[(0,a.jsx)(T.$,{type:"button",variant:"outline",onClick:()=>{er("prompt_optimizer_result_dismissed",{...o_,source:"review",dismissMethod:"keep_original"}),t$(!1)},className:"min-h-11 w-full whitespace-normal rounded-xl border-slate-200 px-5 py-2 text-center font-bold leading-5 sm:w-auto",children:(0,a.jsx)("span",{children:ok("upload.prompt_optimizer_keep_original","Keep original")})}),(0,a.jsxs)(T.$,{type:"button",onClick:()=>{if(!t1)return;let e=t1.optimizedPrompt;td(e),t2([t3.modelType,ot,oo,e.trim()].join("|")),t$(!1),er("prompt_optimizer_result_applied",{...o_,source:"review",optimizedCharacterCount:e.length,resultMode:t1.mode}),R.oR.success(eL(ok("upload.prompt_optimizer_applied","Optimized prompt applied.")))},className:"min-h-11 w-full whitespace-normal rounded-xl bg-violet-600 px-5 py-2 text-center font-black leading-5 text-white hover:bg-violet-700 sm:w-auto",children:[(0,a.jsx)(_.A,{className:"notranslate mr-2 h-4 w-4","aria-hidden":"true"}),(0,a.jsx)("span",{children:ok("upload.prompt_optimizer_use","Use optimized prompt")})]})]})]})]})}),(0,a.jsx)(S.lG,{open:tA,onOpenChange:tM,children:(0,a.jsxs)(S.Cf,{className:"w-[calc(100vw-24px)] max-w-[500px] max-h-[calc(100svh-24px)] overflow-y-auto rounded-3xl border-emerald-200 bg-white p-5 text-slate-900 shadow-2xl sm:p-7",children:[(0,a.jsxs)(S.c7,{className:"items-center text-center",children:[(0,a.jsx)("span",{className:"grid h-14 w-14 place-items-center rounded-2xl bg-emerald-100 text-emerald-600",children:(0,a.jsx)(f.A,{className:"h-7 w-7"})}),(0,a.jsx)("p",{className:"pt-2 text-xs font-black uppercase tracking-[0.16em] text-emerald-600",children:(0,a.jsx)("span",{children:ed("video_credit_fallback.veo_badge")})}),(0,a.jsx)(S.L3,{className:"text-balance text-2xl font-black leading-tight sm:text-3xl",children:(0,a.jsx)("span",{children:ed("video_credit_fallback.veo_title")})}),(0,a.jsx)(S.rr,{className:"max-w-md text-pretty text-sm leading-6 text-slate-600 sm:text-base",children:(0,a.jsx)("span",{children:ed("video_credit_fallback.veo_description",{credits:tG,model:eM[tm]}
1)})})]}),(0,a.jsx)("div",{className:"rounded-2xl border border-emerald-100 bg-emerald-50 px-4 py-3 text-center text-sm font-bold text-emerald-700",children:(0,a.jsx)("span",{children:ed("video_credit_fallback.credits_left",{credits:tG})})}),(0,a.jsxs)("div",{className:"grid gap-3",children:[(0,a.jsx)(T.$,{type:"button",onClick:()=>{tM(!1),oV("veo3_lite"),tp("720p"),tb(oF()),ta(null),ts(null),R.oR.info(eL(ok("video_credit_fallback.veo_switched","Switched to Veo 3.1 Lite. Click Generate Video to continue.")))},className:"min-h-12 h-auto w-full whitespace-normal rounded-xl bg-emerald-500 px-4 py-3 text-center font-extrabold leading-snug text-white shadow-lg shadow-emerald-200 hover:bg-emerald-600",children:(0,a.jsx)("span",{children:ed("video_credit_fallback.veo_primary")})}),(0,a.jsxs)(T.$,{type:"button",variant:"outline",onClick:()=>{tM(!1),eD(!0)},className:"min-h-12 h-auto w-full whitespace-normal rounded-xl border-emerald-200 bg-white px-4 py-3 text-center font-bold leading-snug text-emerald-700 hover:bg-emerald-50",children:[(0,a.jsx)(j.A,{className:"mr-2 h-4 w-4 shrink-0"}),(0,a.jsx)("span",{children:ed("video_credit_fallback.upgrade")})]})]})]})})]})}},96052:(e,t,o)=>{o.d(t,{Xi:()=>n,j7:()=>l,tU:()=>d});var a=o(6855),r=o(59279),s=o(64072),i=o(81871);let d=s.bL,l=r.forwardRef((e,t)=>{let{className:o,...r}=e;return(0,a.jsx)(s.B8,{ref:t,className:(0,i.cn)("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",o),...r})});l.displayName=s.B8.displayName;let n=r.forwardRef((e,t)=>{let{className:o,...r}=e;return(0,a.jsx)(s.l9,{ref:t,className:(0,i.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",o),...r})});n.displayName=s.l9.displayName,r.forwardRef((e,t)=>{let{className:o,...r}=e;return(0,a.jsx)(s.UC,{ref:t,className:(0,i.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",o),...r})}).displayName=s.UC.displayName}}]);

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.