PageSourceSearch

https://app.aieasypic.com/_next/static/chunks/5589.05f66e6109da6f3d.js

js aieasypic.com collected 2026-10-04 13:25:44 UTC 16,866 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5589],{15589:(e,i,t)=>{t.r(i),t.d(i,{default:()=>V});var a=t(6029),n=t(74536),r=t(50433),l=t(13445),o=t(99690),s=t(66179),d=t(37948),u=t(26500),c=t(69943),p=t(63887),m=t(52482),g=t(13692),h=t(13347),v=t(84335),f=t(74738),x=t(74422),b=t(50016),y=t(80340),w=t(34417),j=t(1751),_=t(58943),I=t(37514),z=t(93258),E=t(81278),S=t(55729),F=t(57613),A=t(90402),O=t(34029),P=t(94338),R=t(66659),C=t(82562),N=t(34494);let H=[{value:_.FJ.HEY_AI_V4_MAX,label:"HeyAI V4 Max",description:"Best in-class uncensored model at maximum resolution with rich native audio.",version:3,modelName:"HeyAI V4 Max",timeEstimate:{min:6,max:14},image:"https://imaginary.aieasypic.com/resize?url=https://gencdn.aieasypic.com/original/6fbf5dbb-eea2-4bc6-9f52-61dc904b2d05.jpeg&width=600&quality=80&blur=false&fullImage=false",canUseImgToImg:!0,moderation:!1,durationOptions:[5,10],creditsPerSecond:70,audioCapable:!0,isNew:!0},{value:_.FJ.HEY_AI_V4_PRO,label:"HeyAI V4 Pro",description:"Next-gen uncensored model with extra detail and native audio, up to 15s.",version:2,modelName:"HeyAI V4 Pro",timeEstimate:{min:2,max:7},image:"https://imaginary.aieasypic.com/resize?url=https://gencdn.aieasypic.com/original/6fbf5dbb-eea2-4bc6-9f52-61dc904b2d05.jpeg&width=600&quality=80&blur=false&fullImage=false",canUseImgToImg:!0,moderation:!1,durationOptions:[5,10,15],creditsPerSecond:40,audioCapable:!0,isNew:!0},{value:_.FJ.HEY_AI_V4,label:"HeyAI V4",description:"Fast uncensored in-house model with native audio. Fast and affordable, up to 15s.",version:1,modelName:"HeyAI V4",timeEstimate:{min:1,max:4},image:"https://imaginary.aieasypic.com/resize?url=https://gencdn.aieasypic.com/original/6fbf5dbb-eea2-4bc6-9f52-61dc904b2d05.jpeg&width=600&quality=80&blur=false&fullImage=false",canUseImgToImg:!0,moderation:!1,durationOptions:[5,10,15],creditsPerSecond:20,audioCapable:!0,isNew:!0},{value:_.FJ.SEED_AI_PRO,label:"SeedAI v1.5 Pro",description:"720p image-to-video generation with audio support.",version:2,modelName:"SeedAI v1.5 Pro",timeEstimate:{min:3,max:5},image:"https://imaginary.aieasypic.com/resize?url=https://cdnr2.aieasypic.com/video-models/seedance_pro.webp&width=600&quality=80&blur=false&fullImage=false",canUseImgToImg:!0,moderation:!0,durationOptions:[5,10],audioCapable:!0,isNew:!0},{value:_.FJ.SEED_AI_LITE,label:"SeedAI v1.5",description:"480p image-to-video generation. Fast and affordable.",version:1,modelName:"SeedAI v1.5",timeEstimate:{min:2,max:4},image:"https://imaginary.aieasypic.com/resize?url=https://cdnr2.aieasypic.com/video-models/seedance_lite.webp&width=600&quality=80&blur=false&fullImage=false",canUseImgToImg:!0,moderation:!0,durationOptions:[5,10],audioCapable:!1,isNew:!0},{value:_.FJ.HEY_AI,label:"HeyAI",compactName:"HeyAI",description:"Previous gen. in-house model. (Deprecated, will be removed soon).",version:2,modelName:"HeyAI",timeEstimate:{min:2,max:4},image:"https://imaginary.aieasypic.com/resize?url=https://gencdn.aieasypic.com/original/6fbf5dbb-eea2-4bc6-9f52-61dc904b2d05.jpeg&width=600&quality=80&blur=false&fullImage=false",canUseImgToImg:!0,durationOptions:[3,5,10,20,30],moderation:!1,audioCapable:!1}],T=e=>{let{textToVideoForm:i}=e,t=null==H?void 0:H.find(e=>e.value===i.values.model),[n,r]=(0,C.j)(!1);return(0,a.jsxs)(O.W,{...r,width:"target",shadow:"lg",withinPortal:!0,children:[(0,a.jsx)(O.W.Target,{children:(0,a.jsx)(P.N,{w:"100%",children:(0,a.jsx)(N.aj,{currentModelSelected:t,selected:!0})})}),(0,a.jsx)(O.W.Dropdown,{sx:e=>({backgroundColor:e.colors.blue[3]}),children:(0,a.jsx)(R.F,{h:220,offsetScrollbars:!0,children:null==H?void 0:H.map(e=>(0,a.jsx)(O.W.Item,{p:2,m:0,onClick:()=>{i.setFieldValue("model",e.value)},children:(0,a.jsx)(N.aj,{currentModelSelected:e})},e.value))})})]})},V=()=>{var e,i,t,O,P,R,C;let N=(0,f.m)({initialValues:{prompt:"",model:_.FJ.HEY_AI_V4,batch_size:1,base_uploaded_image:"",video_length_seconds:5}}),{data:V}=(0,w.P)();(0,x.U)("(max-width: 768px)"),(0,E.useRouter)();let W=(0,y.Pj)(e=>e.setIsVideoGenerating);(0,y.Pj)(e=>e.isVideoGenerating);let B=(0,z.jE)(),L=H.find(e=>e.value===N.values.model);(0,S.useEffect)(()=>{let e=N.values.video_length_seconds;if(null==L?void 0:L.durationOptions){if(!e||!L.durationOptions.includes(e)){let e=Math.min(...L.durationOptions);N.setFieldValue("video_length_seconds",e)}}else N.setFieldValue("video_length_seconds",5)},[L]);let[U,k]=(0,S.useState)({source:{preview:null,uploaded:!1,uploadedId:"",type:""},target:{preview:null,uploaded:!1,uploadedId:"",type:""}}),{mutate:M,data:Y,error:D,isLoading:q}=(0,j.CJn)({mutation:{onSuccess:e=>{B.setQueryData((0,j.Jqy)({status:_.zU.R,has_videos:!1,only_owned:!0,mins_created:10,ordering:"-end_time"}),i=>(null==i?void 0:i.results)?{...i,results:[e,...null==i?void 0:i.results]}:{...i,results:[e]}),W(!0),B.invalidateQueries((0,j.ev4)())},onError:e=>{(0,I.A)(e)}}});return(0,S.useEffect)(()=>{U.source.uploadedId&&U.source.uploaded&&N.setFieldValue("base_uploaded_image",U.source.uploadedId),U.source.uploaded||U.source.uploadedId||N.setFieldValue("base_uploaded_image","")},[U]),(0,a.jsx)("form",{onSubmit:e=>{e.preventDefault();let i=JSON.parse(JSON.stringify(N.values));(null==i?void 0:i.base_uploaded_image)&&(null==i?void 0:i.base_uploaded_image)!==""||(i.base_uploaded_image=void 0),M({data:{...i,parameters:{...i.parameters}}})},style:{width:"100%"},children:(0,a.jsx)(n.Z,{p:"xs",children:(0,a.jsxs)(r.a,{sx:e=>({[e.fn.largerThan("md")]:{minHeight:"calc(100vh - 500px)",maxHeight:"calc(100vh - 200px)",paddingBottom:"20px",overflowY:"scroll",scrollbarGutter:"stable",display:"flex",flexDirection:"column"},h3:{color:"rgb(57, 20, 60)"}}),px:3,children:[(0,a.jsxs)(l.B,{spacing:10,children:[(null==V?void 0:V.email)&&(0,a.jsx)(o.Y,{position:"apart",spacing:2,children:(0,a.jsx)(F.Ay,{meData:V})}),(0,a.jsx)(T,{textToVideoForm:N}),(0,a.jsx)(s.T,{label:"Prompt",size:"sm",sx:e=>({textarea:{[e.fn.smallerThan("md")]:{fontSize:"16px !important"}}}),autosize:!0,description:(0,a.jsxs)(o.Y,{position:"apart",p:0,mt:-25,align:"flex-end",children:[(0,a.jsx)(d.E,{children:"What you want in the video."}),(0,a.jsx)(o.Y,{children:(0,a.jsxs)(l.B,{align:"center",spacing:2,onClick:()=>{N.setFieldValue("prompt","")},children:[(0,a.jsx)(u.M,{children:(0,a.jsx)(b.raE,{transform:"scale(1.3)"})}),"Clear"]})})]}),maxRows:5,minRows:3,placeholder:"woman smiling at the camera",required:!0,...
1N.getInputProps("prompt")}),(null==L?void 0:L.moderation)?(0,a.jsx)(d.E,{size:"xs",weight:400,color:"dimmed",children:"* Your prompt will be moderated to prevent NSFW generations. Only HeyAI doesn't have moderation."}):(0,a.jsxs)(d.E,{size:"xs",weight:400,color:"dimmed",children:["* Your prompt will be ",(0,a.jsx)("b",{children:"not"})," be moderated with this model. Please ensure your prompt is appropriate."]}),(null==L?void 0:L.canUseImgToImg)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.x,{align:"center",gutter:2,children:(0,a.jsx)(p.f,{span:12,children:(0,a.jsx)(l.B,{spacing:2,children:(0,a.jsxs)(o.Y,{noWrap:!0,align:"flex-start",children:[(0,a.jsx)(d.E,{size:"md",weight:700,children:"Image Reference (optional)"}),!(null==L?void 0:L.moderation)&&(0,a.jsx)(r.a,{children:(0,a.jsx)(m.E,{color:"blue",variant:"filled",size:"sm",children:"New"})})]})})})}),(0,a.jsxs)(r.a,{children:[(0,a.jsx)(A.A,{images:U,setImages:k,type:"source",setProcessedImageUrl:()=>{},placeholderComponent:()=>(0,a.jsx)(r.a,{sx:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:(0,a.jsxs)(l.B,{spacing:2,align:"center",justify:"center",py:20,mx:5,children:[(0,a.jsx)(b.xfq,{transform:"scale(1.5)"}),(0,a.jsx)(d.E,{align:"center",size:"md",children:"Upload image to use as base"})]})}),imageRenderComponent:e=>{let{imageUrl:i}=e;return(0,a.jsx)(r.a,{children:(0,a.jsx)(g._,{src:i,alt:"Uploaded image",height:"200px"})})}}),(null==L?void 0:L.moderation)&&(0,a.jsx)(d.E,{size:"xs",weight:400,color:"dimmed",children:"* NSFW image not allowed. If uploaded, your generation will fail and no credits will be refunded."})]})]}),(null==L?void 0:L.durationOptions)&&L.durationOptions.length>1&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.E,{size:"md",weight:700,children:"Video Length (seconds)"}),(0,a.jsx)(h.I,{fullWidth:!0,data:null==L||null==(e=L.durationOptions)?void 0:e.map(e=>({value:e.toString(),label:e.toString()})),value:null==(i=N.values.video_length_seconds)?void 0:i.toString(),onChange:e=>{N.setFieldValue("video_length_seconds",Number(e))}})]})]}),(0,a.jsxs)(l.B,{spacing:3,mt:"auto",children:[(0,a.jsx)(o.Y,{position:"right",children:(0,a.jsxs)(d.E,{size:"sm",weight:500,color:"dimmed",children:["Costs"," ",(()=>{var e;let i=null==H?void 0:H.find(e=>e.value===N.values.model);return((null==i?void 0:i.creditsPerSecond)||20*((null==i?void 0:i.version)||1))*(N.values.video_length_seconds||1)*((null==(e=N.values)?void 0:e.batch_size)||1)})()," ","credits"]})}),(0,a.jsx)(v.$,{type:"submit",fullWidth:!0,size:"lg",loading:q,disabled:(null==V?void 0:V.credits)===void 0||(null==V?void 0:V.credits)<0||1>(N.values.batch_size||0),children:(0,a.jsxs)(l.B,{align:"center",spacing:1,my:10,children:[(0,a.jsxs)(d.E,{size:"md",weight:700,children:["Generate ",N.values.batch_size," ",(N.values.batch_size||1)>1?"videos":"video"," "]}),(0,a.jsxs)(d.E,{size:"xs",weight:500,color:"dimmed",children:["Time -"," ","(".concat(((null==H||null==(O=H.find(e=>e.value===N.values.model))||null==(t=O.timeEstimate)?void 0:t.min)||1)*(N.values.video_length_seconds||5)*((null==(P=N.values)?void 0:P.batch_size)||1)," - ").concat(((null==H||null==(R=H.find(e=>e.value===N.values.model))?void 0:R.timeEstimate.max)||1)*(N.values.video_length_seconds||5)*((null==(C=N.values)?void 0:C.batch_size)||1)," mins)")]})]})})]})]})})})}},66179:(e,i,t)=>{t.d(i,{T:()=>H});var a=t(55729),n=t(99410),r=t(1983),l=a.useLayoutEffect,o=function(e){var i=a.useRef(e);return l(function(){i.current=e}),i},s=function(e,i){if("function"==typeof e)return void e(i);e.current=i},d=function(e,i){var t=a.useRef();return a.useCallback(function(a){e.current=a,t.current&&s(t.current,null),t.current=i,i&&s(i,a)},[i])},u={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},c=function(e){Object.keys(u).forEach(function(i){e.style.setProperty(i,u[i],"important")})},p=null,m=function(e,i){var t=e.scrollHeight;return"border-box"===i.sizingStyle.boxSizing?t+i.borderSize:t-i.paddingSize},g=function(){},h=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],v=!!document.documentElement.currentStyle,f=function(e){var i=window.getComputedStyle(e);
1if(null===i)return null;var t=h.reduce(function(e,t){return e[t]=i[t],e},{}),a=t.boxSizing;if(""===a)return null;v&&"border-box"===a&&(t.width=parseFloat(t.width)+parseFloat(t.borderRightWidth)+parseFloat(t.borderLeftWidth)+parseFloat(t.paddingRight)+parseFloat(t.paddingLeft)+"px");var n=parseFloat(t.paddingBottom)+parseFloat(t.paddingTop),r=parseFloat(t.borderBottomWidth)+parseFloat(t.borderTopWidth);return{sizingStyle:t,paddingSize:n,borderSize:r}},x=function(e){var i=o(e);(0,a.useLayoutEffect)(function(){var e=function(e){i.current(e)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}},[])},b=(0,a.forwardRef)(function(e,i){var t=e.cacheMeasurements,l=e.maxRows,o=e.minRows,s=e.onChange,u=void 0===s?g:s,h=e.onHeightChange,v=void 0===h?g:h,b=(0,r.A)(e,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]),y=void 0!==b.value,w=(0,a.useRef)(null),j=d(w,i),_=(0,a.useRef)(0),I=(0,a.useRef)(),z=function(){var e=w.current,i=t&&I.current?I.current:f(e);if(i){I.current=i;var a,n,r,s,d,u,g,h,x,b,y,j=(a=e.value||e.placeholder||"x",void 0===(n=o)&&(n=1),void 0===(r=l)&&(r=1/0),p||((p=document.createElement("textarea")).setAttribute("tabindex","-1"),p.setAttribute("aria-hidden","true"),c(p)),null===p.parentNode&&document.body.appendChild(p),s=i.paddingSize,d=i.borderSize,g=(u=i.sizingStyle).boxSizing,Object.keys(u).forEach(function(e){p.style[e]=u[e]}),c(p),p.value=a,h=m(p,i),p.value="x",b=(x=p.scrollHeight-s)*n,"border-box"===g&&(b=b+s+d),h=Math.max(b,h),y=x*r,"border-box"===g&&(y=y+s+d),[h=Math.min(y,h),x]),z=j[0],E=j[1];_.current!==z&&(_.current=z,e.style.setProperty("height",z+"px","important"),v(z,{rowHeight:E}))}};return(0,a.useLayoutEffect)(z),x(z),(0,a.createElement)("textarea",(0,n.A)({},b,{onChange:function(e){y||z(),u(e)},ref:j}))}),y=t(62842),w=t(61946),j=(0,t(38169).r)(e=>({input:{paddingTop:e.spacing.xs,paddingBottom:e.spacing.xs}})),_=t(79326),I=t(70503),z=Object.defineProperty,E=Object.defineProperties,S=Object.getOwnPropertyDescriptors,F=Object.getOwnPropertySymbols,A=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,P=(e,i,t)=>i in e?z(e,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[i]=t,R=(e,i)=>{for(var t in i||(i={}))A.call(i,t)&&P(e,t,i[t]);if(F)for(var t of F(i))O.call(i,t)&&P(e,t,i[t]);return e},C=(e,i)=>E(e,S(i));let N={autosize:!1,size:"sm",__staticSelector:"Textarea"},H=(0,a.forwardRef)((e,i)=>{let t=(0,w.a1)("Textarea",N,e),{autosize:n,maxRows:r,minRows:l,label:o,error:s,description:d,id:u,className:c,required:p,style:m,wrapperProps:g,classNames:h,styles:v,size:f,__staticSelector:x,sx:z,errorProps:E,descriptionProps:S,labelProps:P,inputWrapperOrder:H,inputContainer:T,unstyled:V,withAsterisk:W,variant:B}=t,L=((e,i)=>{var t={};for(var a in e)A.call(e,a)&&0>i.indexOf(a)&&(t[a]=e[a]);if(null!=e&&F)for(var a of F(e))0>i.indexOf(a)&&O.call(e,a)&&(t[a]=e[a]);return t})(t,["autosize","maxRows","minRows","label","error","description","id","className","required","style","wrapperProps","classNames","styles","size","__staticSelector","sx","errorProps","descriptionProps","labelProps","inputWrapperOrder","inputContainer","unstyled","withAsterisk","variant"]),U=(0,y.B)(u),{classes:k,cx:M}=j(),{systemStyles:Y,rest:D}=(0,_.z)(L),q=R({required:p,ref:i,error:s,id:U,classNames:C(R({},h),{input:M(k.input,null==h?void 0:h.input)}),styles:v,__staticSelector:x,size:f,multiline:!0,unstyled:V,variant:B},D);return a.createElement(I.p.Wrapper,R(R({label:o,error:s,id:U,description:d,required:p,style:m,className:c,classNames:h,styles:v,size:f,__staticSelector:x,sx:z,errorProps:E,labelProps:P,descriptionProps:S,inputContainer:T,inputWrapperOrder:H,unstyled:V,withAsterisk:W,variant:B},Y),g),n?a.createElement(I.p,C(R({},q),{component:b,maxRows:r,minRows:l})):a.createElement(I.p,C(R({},q),{component:"textarea",rows:l})))});H.displayName="@mantine/core/Textarea"},90402:(e,i,t)=>{t.d(i,{A:()=>v});var a=t(6029),n=t(50433),r=t(26500),l=t(13445),o=t(56266),s=t(56233),d=t(12638),u=t(18090),c=t(50016),p=t(26312),m=t
1(1751),g=t(82108),h=t(55729);let v=e=>{var i,t,v;let{type:f,setImages:x,images:b,description:y,setProcessedImageUrl:w,imageRenderComponent:j,placeholderComponent:_,disabled:I}=e,z=(0,m.wrX)(),E=(0,h.useMemo)(()=>{var e,i,t,a;return(null==b||null==(e=b[f])?void 0:e.preview)?(null==b||null==(i=b[f])?void 0:i.preview)instanceof Blob?URL.createObjectURL(null==b||null==(a=b[f])?void 0:a.preview):(0,g.lv)({url:null==b||null==(t=b[f])?void 0:t.preview,width:512,height:512,nocrop:!1,imaginaryHost:"imaginary.aieasypic.com"}):""},[null==b||null==(i=b[f])?void 0:i.preview]);return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(n.a,{sx:{position:"relative"},h:"100%",children:[b[f].preview&&(0,a.jsx)(r.M,{sx:{position:"absolute",top:"0px",right:"0px",zIndex:2},variant:"filled",color:"red",onClick:e=>{e.preventDefault(),e.stopPropagation(),x(e=>({...e,[f]:{preview:null,uploaded:!1,uploadedId:"",type:""}}))},children:(0,a.jsx)(c.raE,{style:{transform:"scale(1.3)"}})}),(0,a.jsxs)(s.mR,{onDrop:(e=>async i=>{let t=i[0];x(i=>({...i,[e]:{...i[e],preview:t,uploading:!0,uploaded:!1}})),w(null);try{let{id:i}=await z.mutateAsync({data:{image:t}},{onSuccess:t=>{x(a=>({...a,[e]:{...a[e],uploaded:!0,uploading:!1,url:(null==t?void 0:t.image)||"",uploadedId:i}}))}})}catch(e){(0,u.Ds)({title:"Error",message:"Failed to upload image",color:"red"})}x(i=>({...i,[e]:{...i[e],uploading:!1}}))})(f),accept:d.Oq,maxSize:4194304,padding:0,disabled:I,children:[E?null:_(),b[f].preview&&(0,a.jsxs)(n.a,{sx:{position:"relative",padding:"2px 2px"},children:[j&&E?j({imageUrl:E}):_(),(0,a.jsx)(n.a,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},children:(null==(t=b[f])?void 0:t.uploaded)?(0,a.jsx)(l.B,{justify:"center",align:"center",children:(0,a.jsx)(p.A,{})}):(null==(v=b[f])?void 0:v.uploading)&&(0,a.jsx)(l.B,{justify:"center",align:"center",children:(0,a.jsx)(o.a,{size:"md",color:"green"})})})]})]})]})})}}}]);

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.