PageSourceSearch

https://app.aieasypic.com/_next/static/chunks/pages/tools/text-to-video-e29a3c1147474778.js

js aieasypic.com collected 2026-10-04 13:25:10 UTC 12,985 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4215],{1169:(e,o,l)=>{"use strict";l.r(o),l.d(o,{ADVANCED_TEXT_TO_VIDEO_PAGE_COUNT:()=>en,default:()=>es});var t=l(6029),r=l(63887),i=l(50433),n=l(87462),s=l(69943),a=l(80014),d=l(51638),c=l(55729),u=l(37948),h=l(74536),m=l(13445),p=l(52482),g=l(99690),x=l(26500),v=l(94338),b=l(74422),f=l(7232),j=l(18090),y=l(50016),w=l(1751),k=l(93258),_=l(71024),C=l.n(_);l(99988);let I=C()(()=>l.e(9086).then(l.bind(l,49086)),{loadableGenerated:{webpack:()=>[49086]},ssr:!1}),E=c.memo(e=>{let{videoUrl:o}=e;return(0,t.jsx)(I,{autoPlay:!0,options:{autoplay:!0,muted:!0,controls:["play","progress","current-time","fullscreen","volume","mute"],loop:{active:!0}},source:{type:"video",sources:[{src:o,type:"video/mp4",size:720}]}})}),z=c.memo(e=>{let{video:o,prompt:l,id:n}=e,[a,d]=(0,c.useState)(!1),[_,C]=(0,c.useState)(!1);(0,b.U)("(min-width: 768px)");let I=(0,k.jE)(),{mutate:z}=(0,w.OCm)(),A=async()=>{try{C(!0);let e=await fetch(o.video),t=await e.blob(),r=window.URL.createObjectURL(t),i=document.createElement("a");i.href=r,i.download="".concat(l.slice(0,30),".mp4"),document.body.appendChild(i),i.click(),window.URL.revokeObjectURL(r),document.body.removeChild(i)}catch(e){console.error("Error downloading video:",e)}finally{C(!1)}};
1return(0,t.jsxs)(h.Z,{shadow:"sm",radius:"lg",p:0,mb:"md",sx:e=>({backgroundColor:"dark"===e.colorScheme?e.colors.dark[7]:e.white,overflow:"hidden",transition:"transform 200ms ease"}),children:[(0,t.jsxs)(s.x,{sx:e=>({background:e.fn.linearGradient(180,"rgba(0,0,0,0.8)","rgba(0,0,0,0.6)")}),children:[(0,t.jsx)(r.f,{span:2,children:(0,t.jsx)(m.B,{sx:{position:"absolute",top:10,left:10},children:(0,t.jsx)(p.E,{color:"blue",children:o.model})})}),(0,t.jsx)(r.f,{span:8,children:(0,t.jsx)(u.E,{size:"sm",weight:500,px:"md",py:5,ta:"center",lineClamp:2,sx:e=>({color:e.white,borderBottom:"1px solid rgba(255,255,255,0.1)"}),children:l})}),(0,t.jsx)(r.f,{span:2,children:(0,t.jsxs)(p.E,{my:10,color:"red",children:[o.video_length_seconds," sec"]})})]}),(0,t.jsxs)(i.a,{sx:{position:"relative","& .plyr":{"--plyr-color-main":"#FF1493",borderRadius:0},"& .plyr--video":{background:"transparent"}},children:[(0,t.jsxs)(g.Y,{noWrap:!0,sx:{position:"absolute",top:10,right:10},children:[(0,t.jsx)(x.M,{variant:"filled",color:"blue",onClick:()=>{(0,f.GE)({title:"Delete video",children:(0,t.jsx)(u.E,{size:"sm",children:"Are you sure you want to delete this video?"}),labels:{confirm:"Confirm",cancel:"Cancel"},onCancel:()=>console.log("Cancel"),confirmProps:{color:"red"},onConfirm:()=>{z({id:n},{onSuccess:()=>{(0,j.Ds)({title:"Video deleted",message:"The video has been deleted successfully",color:"green"}),I.invalidateQueries({queryKey:(0,w.H9X)()})}})},centered:!0})},title:"Download video",size:"xl",loading:_,sx:e=>({zIndex:10,backgroundColor:e.fn.rgba(e.colors.red[5],.5),"&:hover":{backgroundColor:e.fn.rgba(e.black,.7)}}),children:(0,t.jsx)(y.ucK,{style:{color:"white"}})}),(0,t.jsx)(x.M,{variant:"filled",color:"blue",onClick:A,title:"Download video",size:"xl",loading:_,sx:e=>({zIndex:10,backgroundColor:e.fn.rgba(e.black,.5),"&:hover":{backgroundColor:e.fn.rgba(e.black,.7)}}),children:(0,t.jsx)(y.s3U,{style:{color:"white"}})})]}),a?(0,t.jsx)(E,{videoUrl:o.video}):(0,t.jsx)(v.N,{onClick:()=>d(!0),sx:{position:"relative",width:"100%",display:"block",cursor:"pointer"},children:(0,t.jsx)(i.a,{sx:{position:"relative",width:"100%",paddingBottom:"56.25%",backgroundImage:"url(".concat((null==o?void 0:o.base_uploaded_image)||"",")"),backgroundSize:"cover",backgroundPosition:"center"},children:(0,t.jsx)(x.M,{variant:"filled",size:"xl",radius:"xl",sx:e=>({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:48,height:48,backgroundColor:e.fn.rgba(e.black,.5),transition:"all 200ms ease","&:hover":{backgroundColor:e.fn.rgba(e.black,.7),transform:"translate(-50%, -50%) scale(1.1)"}}),children:(0,t.jsx)(y.udU,{width:24,height:24,style:{marginLeft:2,color:"white"}})})})})]})]})},(e,o)=>e.video.id===o.video.id&&e.video.video===o.video.video&&e.prompt===o.prompt&&e.id===o.id);var A=l(56266),S=l(84335),T=l(34417),U=l(58943),G=l(74176),P=l(37514),N=l(74312),F=l.n(N),O=l(22348),V=l.n(O);let L=c.memo(e=>{let{job:o,index:l,base_uploaded_image:n}=e,s=(0,c.useMemo)(()=>G.q[V()(0,(null===G.q||void 0===G.q?void 0:G.q.length)-1)],[]),[a,d]=(0,c.useState)(!1),{mutate:p}=(0,w.Mps)(),{refetch:g}=(0,T.P)(),x=(0,c.useMemo)(()=>o.status===U.e3.R&&F()().diff(F()(o.created_at),"minute")>10,[o]);return(0,t.jsx)(r.f,{span:60,xs:60,sm:60,md:30,lg:30,xl:20,children:(0,t.jsxs)(h.Z,{shadow:"sm",radiu
1s:"lg",p:0,mb:"md",sx:e=>({backgroundColor:"dark"===e.colorScheme?e.colors.dark[7]:e.white,overflow:"hidden"}),children:[(0,t.jsx)(u.E,{size:"sm",weight:500,px:"md",py:8,ta:"center",sx:e=>({background:e.fn.linearGradient(180,"rgba(0,0,0,0.8)","rgba(0,0,0,0.6)"),color:e.white,borderBottom:"1px solid rgba(255,255,255,0.1)"}),children:o.prompt}),(0,t.jsx)(i.a,{sx:{position:"relative",paddingTop:"56.25%",backgroundColor:"#1A1B1E"},children:(0,t.jsx)(i.a,{sx:e=>({position:"absolute",top:0,left:0,width:"100%",height:"100%",backgroundImage:n?"url(".concat(n,")"):"none",backgroundSize:"cover",backgroundPosition:"center",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:n?"transparent":e.colors.dark[8],"&::before":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,background:n?e.fn.rgba(e.black,.6):"transparent"}}),children:(0,t.jsxs)(m.B,{spacing:"md",align:"center",sx:{position:"relative",zIndex:1,width:"100%",padding:"0 20px"},children:[(0,t.jsx)(A.a,{size:"lg",color:"pink",variant:"bars"}),(0,t.jsx)(u.E,{size:"sm",color:"white",weight:500,ta:"center",sx:{maxWidth:"80%",margin:"0 auto"},children:s})]})})}),x&&(0,t.jsx)(h.Z.Section,{children:(0,t.jsxs)(S.$.Group,{sx:{display:"flex"},children:[(0,t.jsx)(S.$,{color:"red",onClick:()=>{a?(p({id:o.id},{onError:e=>{(0,P.A)(e)}}),g()):d(!0)},fullWidth:!0,variant:"subtle",sx:{flex:1},children:a?"Confirm Cancel":"Cancel Generation"}),a&&(0,t.jsx)(S.$,{color:"blue",onClick:()=>d(!1),variant:"subtle",sx:{flex:1},children:"Back"})]})})]})},o.id)}),M=c.memo(()=>(0,t.jsx)(r.f,{span:60,children:(0,t.jsxs)(i.a,{children:[(0,t.jsx)(n.h,{order:2,align:"center",my:20,children:"Your Generated Videos Will Appear Here"}),(0,t.jsx)(i.a,{my:30,sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:(0,t.jsx)(n.h,{order:4,children:'No videos yet. Click "Generate" to start Creating!'})})]})})),R=c.memo(e=>{var o;let{loadingInferences:l}=e;return(0,t.jsx)(t.Fragment,{children:null==(o=l.results)?void 0:o.map(e=>Array.from({length:(null==e?void 0:e.batch_size)||0}).map((o,l)=>(0,t.jsx)(L,{job:e,index:l,base_uploaded_image:e.base_uploaded_image||""},"".concat(e.id,"-").concat(l))))})}),q=c.memo(e=>{let{videos:o}=e;return(0,t.jsx)(t.Fragment,{children:o.map(e=>(0,t.jsx)(r.f,{span:60,xs:60,sm:60,md:30,lg:30,xl:20,children:(0,t.jsx)(z,{video:e,prompt:e.prompt,id:e.job_id})},e.id))})}),D=c.memo(e=>{var o;let{prediction_videos:l,isLoading:i,loadingInferences:n}=e,u=(0,c.useMemo)(()=>!i&&!(null==l?void 0:l.length),[i,null==l?void 0:l.length]);return(0,t.jsxs)(s.x,{px:10,mx:0,columns:60,children:[i&&(0,t.jsx)(r.f,{span:12,children:(0,t.jsx)(a.g,{ratio:1,mx:"auto",maw:"100%",children:(0,t.jsx)(d.p,{visible:!0,opacity:.5})})}),(null==n?void 0:n.results)&&(null==n||null==(o=n.results)?void 0:o.length)>0&&(0,t.jsx)(R,{loadingInferences:n}),u&&(0,t.jsx)(M,{}),(null==l?void 0:l.length)>0&&(0,t.jsx)(q,{videos:l})]})});var B=l(61946),W=l(9004),Y=l(7006),Z=l(13347),H=l(75318),X=l(53551),K=l(6058),$=l(18142),J=l(20358),Q=l(27835),ee=l(80340),eo=l(92907),el=l(78138),et=l(81278),er=l(67051);let ei=C()(()=>Promise.all([l.e(182),l.e(4494),l.e(5589)]).then(l.bind(l,15589)),{loadableGenerated:{webpack:()=>[15589]},ssr:!1}),en=40,es=function(){var e,o;let{data:l}=(0,T.P)(),r=(0,B.xd)(),n=(0,b.U)("(max-width: 768px)"),[s,a]=(0,c.useState)(1),[d,h]=(0,c.useState)(!1),[m,p]=(0,$.M)(en,500);(0,et.useRouter)();let x=(0,ee.Pj)(e=>e.isVideoGenerating),v=(0,ee.Pj)(e=>e.setIsVideoGenerating),[f,j]=(0,c.useState)(!0),[y,k]=(0,c.useState)(""),[_,C]=(0,c.useState)(null),{data:I}=(0,w.Z0p)({status:U.zU.R,has_videos:!1,only_owned:f,mins_created:10,ordering:"-end_time"},{query:{enabled:x,refetchInterval:e=>{if(x)if((null==e?void 0:e.count)!==0)return 1e3;else return 1e4;return 1e5}}}),E=(0,J.Z)(null==I||null==(e=I.results)?void 0:e.length),{data:z,isLoading:A,refetch:S}=(0,w.JcS)({page:s,has_videos:!0,itemsPerPage:Number(m)||en,only_owned:f,user_type:(null==l?void 0:l.is_staff)?y:void 0},{query:{refetchInterval:1e6}});(0,c.useEffect)(()=>{var e,o;(null==I||null==(e=I.results)?void 0:e.length)===0&&(v(!1),S(),er.Ay.event({category:"Free Generation",action:"Completed Free Generation, Text To Image",label:"Success"})),(E||0)>((null==I||null==(o=I.results)?void 0:o.length)||0)&&S()},[I]),(0,c.useEffect)(()=>{var e;(null==z||null==(e=z.results)?void 0:e.length)===0&&h(!0);let o=setInterval(()=>{var e;let l=null==z||null==(e=z.results)?void 0:e.filter(e=>e.status!==U.zU.S&&e.status!==U.zU.FL&&e.status!==U.zU.P);(null==l?void 0:l.length)!==0?S():clearInterval(o)},1e3);return()=>clearInterval(o)},[null==z?void 0:z.results]);let G=(0,c.useMemo)(()=>{var e,o,l;return null!=(l=null==z||null==(o=z.results)||null==(e=o.map(e=>{var o;return null==e||null==(o=e.prediction_videos)?void 0:o.map(o=>({...o,prompt:(null==e?void 0:e.prompt)||"",model:(null==e?void 0:e.model)||"",base_uploaded_image:(null==e?void 0:e.base_uploaded_image)||"",job_id:null==e?void 0:e.id,video_length_seconds:(null==e?void 0:e.video_length_seconds)||5}))}))?void 0:e.flat())?l:[]},[null==z?void 0:z.results]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(Q.A,{url:"".concat(eo._g.frontendUrl).concat(el.J.aieasypic.toolsTextToVideo),title:"Text to Video - ".concat(eo._g.fullSiteName),description:"Generate videos from text using AI. Upload your own images and generate videos from images or simply type something and watch it come to life using AI. "}),(0,t.jsx)(i.a,{pt:5,children:(0,t.jsx)(i.a,{children:(0,t.jsx)(W.z,{smallerThan:"sm",styles:{display:"flex",flexDirection:"column"},children:(0,t.jsxs)(i.a,{sx:{display:"grid",gridTemplateColumns:"385px 1fr",gridGap:r.spacing.xl,margin:"0 auto"},children:[(0,t.jsx)(i.a,{sx:e=>({[e.fn.largerThan("md")]:{position:"sticky",top:"90px",height:"calc(100vh - 90px)"}}),children:(0,t.jsx)(ei,{})}),(0,t.jsxs)(i.a,{children:[(0,t.jsxs)(g.Y,{position:"right",my:5,mx:20,children:[(null==l?void 0:l.is_staff)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(Y.d,{checked:f,onChange:()=>j(!f),label:"Only Owned"}),(0,t.jsx)(Z.I,{my:10,data:[{label:"All",value:""},...null==(o=Object.values(U.Kr))?void 0:o.map(e=>({label:(null==e?void 0:e.toUpperCase())||"ALL",value:e}))],value:y,onChange:e=>{k(e)}})]}),(0,t.jsxs)(g.Y,{position:"right",spacing:2,children:[(0,t.jsx)(u.E,{size:"xs",weight:500,color:"dimmed",w:"35%",children:"Videos per page"}),(0,t.jsx)(H.Q,{max:100,min:1,w:50,size:"sm",hideControls:!0,defaultValue:m,onChange:e=>p(Number(e))})]})]}),(0,t.jsx)(D,{isLoading:A,loadingInferences:I,prediction_videos:G}),((null==z?void 0:z.count)||0)>m&&(0,t.jsx)(X.o,{pt:10,children:(0,t.jsx)(K.d,{size:"xl",onChange:e=>{a(e),n||window.scrollTo(0,0)},total:Math.floor(((null==z?void 0:z.count)||0)/m)+1,value:s})})]})]})})})})]})}},32817:(e,o,l)=>
1{(window.__NEXT_P=window.__NEXT_P||[]).push(["/tools/text-to-video",function(){return l(1169)}])},74176:(e,o,l)=>{"use strict";l.d(o,{g:()=>t,q:()=>r});let t=["Check 'High Res Fix' if you're seeing double body parts in the picture","The more detailed your prompt is, the better the results will be","Add 'detailed eyes, high resolution, masterpiece' to your prompt for better results","If you cancel your image generation before image is generated, your credits will be refunded.","Add photo related terms like 'photorealistic, vibrant color film, masterclass, heavy (film grain), Fujicolor 400, Nikon F401', to get photorealistic results","Make the AI focus on specific thing by putting brackets on it. example: (looking at camera)","Pictures you like will be available in your dashboard","Loras are models trained on a specific person or style.","When using Loras, you can increase the resemblance by increasing the 'Weight' slider","If the image turns out too noisy or not detailed, increase 'Steps' slider in 'Advanced' section","You can make the AI use a photo as reference by using 'Controlnet' option","Each image you generate will cost you 1 credit. You can buy more credits from the pricing page","V3 models have the most details, and follow the prompt more closely"],r=["The more detailed your prompt is, the better the results will be","V2 models have the most details, and follow the prompt more closely","NSFW is only allowed on HeyAI and OVI. Other models might cause generations to fail"]},99988:()=>{}},e=>{e.O(0,[796,6058,4003,7904,636,6593,8792],()=>e(e.s=32817)),_N_E=e.O()}]);

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.