1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[35673],{35673:function(e,t,a){a.d(t,{Z:function(){return ex}});var i=a(76149),o=a(30294),s=a(89178),l=a(44315),n=a(17577),r=a(5399),c=a(78459),p=a(25425),d=a(36279),m=a(16741),u=a(2208),h=a(42611),b=a(55712),g=a(11323),x=a(72621),f=a(11997),v=a(37169),w=a(2210),y=a(92513),j=a(62625),k=a(93589),U=a(41813),N=a(74595),I=a(70005),P=a(29582),T=a(77505),C=a(66231),_=a(4306),z=a(37709),Z=a(92597),L=a(66687),S=a(58912),A=a(16121),F=a(14722),M=a(10321),D=a(23708);function E(){let e=(0,w.useTranslations)(),t=(0,o.useRef)(null),[a,s]=(0,o.useState)(!1),[l,n]=(0,o.useState)(null),c=e=>{let i=t.current;(null==l?void 0:l.audioUrl)===e.audioUrl?a?i.pause():i.play():(i.src=e.audioUrl,i.play(),n(e))};return(0,o.useEffect)(()=>{let e=t.current,a=()=>s(!0),i=()=>s(!1),o=()=>s(!1);return e.addEventListener("play",a),e.addEventListener("pause",i),e.addEventListener("ended",o),()=>{e.removeEventListener("play",a),e.removeEventListener("pause",i),e.removeEventListener("ended",o)}},[]),(0,i.jsxs)("div",{className:"w-full h-full overflow-auto",children:[(0,i.jsx)("audio",{ref:t,preload:"auto"}),(0,i.jsx)("p",{className:"text-gray-400 text-lg mb-4",children:e("public.example")}),(0,i.jsx)("ul",{className:"space-y-3 rounded-lg",children:[{songName:"I Fight My Own Battles",imgUrl:"https://cdn.yestool.ai/public/music/song01/cover.jpeg",audioUrl:"https://cdn.yestool.ai/public/music/song01/song.mp3",tags:"aggressive, black metal, death metal, doom metal, rock, gothic metal, heartfelt, pagan metal, emo",authorName:"Raven",authorImg:"https://cdn.yestool.ai/public/music/song01/avatar.webp"},{songName:"Whisper to Her",imgUrl:"https://cdn.yestool.ai/public/music/song02/cover.jpeg",audioUrl:"https://cdn.yestool.ai/public/music/song02/song.mp3",tags:"cinematic orchestral ballad, opera pop",authorName:"Giaguaro",authorImg:"https://cdn.yestool.ai/public/music/song02/avatar.webp"},{songName:"Wet Money",imgUrl:"https://cdn.yestool.ai/public/music/song03/cover.jpeg",audioUrl:"https://cdn.yestool.ai/public/music/song03/song.mp3",tags:"Female vocals, west coast rap, intricate percussion, harmonizing",authorName:"jimmydsausage",authorImg:"https://cdn.yestool.ai/public/music/song03/avatar.webp"},{songName:"Every Heartbeat",imgUrl:"https://cdn.yestool.ai/public/music/song04/cover.jpeg",audioUrl:"https://cdn.yestool.ai/public/music/song04/song.mp3",tags:"Amazing female vocals, vocal chops, ad libs, FX",authorName:"EllJay",authorImg:"https://cdn.yestool.ai/public/music/song04/avatar.webp"},{songName:"å ã¯ãæã«ã¦",imgUrl:"https://cdn.yestool.ai/public/music/song05/cover.jpeg",audioUrl:"https://cdn.yestool.ai/public/music/song05/song.mp3",tags:"Dark Classical, Neoclassical, Gothic",authorName:"æ¡å",authorImg:"https://cdn.yestool.ai/public/music/song05/avatar.webp"},{songName:"Keep the Spark",imgUrl:"https://cdn.yestool.ai/public/music/song06/cover.jpeg",audioUrl:"https://cdn.yestool.ai/public/music/song06/song.mp3",tags:"cyberpunk pop, ballad rock, synthpop",authorName:"Mr Villain",authorImg:"https://cdn.yestool.ai/public/music/song06/avatar.webp"}].map((e,t)=>(0,i.jsxs)("li",{className:"grid grid-cols-[auto_1fr_auto] gap-3 p-3 sm:gap-4 sm:p-4 bg-gray-800/30 hover:bg-gray-800/50 rounded-lg border border-gray-700/50 transition-all duration-200",children:[(0,i.jsx)("div",{className:"flex-shrink-0 w-16 h-16 sm:w-20 sm:h-20 bg-black rounded-lg overflow-hidden relative",children:(0,i.jsx)(D.default,{className:"object-cover",src:e.imgUrl,alt:e.songName,fill:!0,sizes:"(max-width: 640px) 64px, 80px",loading:"lazy"})}),(0,i.jsxs)("div",{className:"flex flex-col gap-1 sm:gap-1.5 min-w-0 justify-center",children:[(0,i.jsx)("div",{className:"font-medium text-sm sm:text-base text-white truncate",children:e.songName}),(0,i.jsx)("div",{className:"text-xs text-gray-400 uppercase font-semibold truncate",children:e.tags}),(0,i.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,i.jsxs)("span",{className:"text-xs text-gray-500",children:["@",e.authorName]}),(0,i.jsx)("div",{className:"w-4 h-4 sm:w-5 sm:h-5 rounded-full overflow-hidden flex-shrink-0 relative",children:(0,i.jsx)(D.default,{src:e.authorImg,alt:e.authorName,className:"object-cover",fill:!0,sizes:"(max-width: 640px) 16px, 20px",loading:"lazy"})})]})]}),(0,i.jsx)("button",{onClick:()=>c(e),className:"flex-shrink-0 w-10 h-10 sm:w-12 sm:h-12 flex items-center justify-center rounded-lg hover:bg-gray-700/50 transition-colors duration-200 text-white self
1-center",children:(null==l?void 0:l.audioUrl)===e.audioUrl&&a?(0,i.jsx)(r.Z,{size:"large",className:"w-5 h-5 sm:w-6 sm:h-6"}):(0,i.jsx)("svg",{className:"w-5 h-5 sm:w-6 sm:h-6",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,i.jsx)("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor",children:(0,i.jsx)("path",{d:"M6 3L20 12 6 21 6 3z"})})})})]},t))})]})}var R=a(90143),H=a.n(R),V=a(82519),B=a(97009),q=a(87365),W=a(57048),O=a(77276);function Q(e){let{showBottomCarousel:t=!0}=e,a=(0,w.useTranslations)(),[s,l]=(0,W.Z)({loop:!0,dragFree:!0,align:"start",slidesToScroll:"auto"}),[n,r]=(0,o.useState)(0),[c,p]=(0,o.useState)(null),d=[{input:"https://cdn.yestool.ai/public/example/upscaler/demo01_input.mp4",output:"https://cdn.yestool.ai/public/example/upscaler/demo01_output.mp4",poster:"https://cdn.yestool.ai/public/example/upscaler/demo01_input.webp"},{input:"https://cdn.yestool.ai/public/example/upscaler/demo02_input.mp4",output:"https://cdn.yestool.ai/public/example/upscaler/demo02_output.mp4",poster:"https://cdn.yestool.ai/public/example/upscaler/demo02_input.webp"},{input:"https://cdn.yestool.ai/public/example/upscaler/demo03_input.mp4",output:"https://cdn.yestool.ai/public/example/upscaler/demo03_output.mp4",poster:"https://cdn.yestool.ai/public/example/upscaler/demo03_input.webp"},{input:"https://cdn.yestool.ai/public/example/upscaler/demo04_input.mp4",output:"https://cdn.yestool.ai/public/example/upscaler/demo04_output.mp4",poster:"https://cdn.yestool.ai/public/example/upscaler/demo04_input.webp"},{input:"https://cdn.yestool.ai/public/example/upscaler/demo05_input.mp4",output:"https://cdn.yestool.ai/public/example/upscaler/demo05_output.mp4",poster:"https://cdn.yestool.ai/public/example/upscaler/demo05_input.webp"}];(0,o.useEffect)(()=>{d.length>0&&0===n&&!c&&p(d[0])},[]),(0,o.useEffect)(()=>{},[l]);let m=(0,o.useCallback)(()=>{l&&l.scrollPrev()},[l]),u=(0,o.useCallback)(()=>{l&&l.scrollNext()},[l]),h=e=>{r(e),p(d[e])},b=(e,t)=>{e.stopPropagation();let a=d[t];k.Z.emit("setPanelArgumentsEvent",{data:a})};return(0,i.jsxs)("div",{className:"jsx-4e24c9d929aa54e6 h-full grid grid-rows-[1fr_auto] text-white w-full",children:[(0,i.jsx)("h2",{className:"jsx-4e24c9d929aa54e6 text-xl font-bold opacity-0 absolute top-0 left-0 overflow-hidden",children:a("public.example")}),(0,i.jsx)(H(),{id:"4e24c9d929aa54e6",children:".embla.jsx-4e24c9d929aa54e6{overflow:hidden}.embla__container.jsx-4e24c9d929aa54e6{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}.embla__slide.jsx-4e24c9d929aa54e6{-webkit-box-flex:0;-webkit-flex:0 0 40%;-moz-box-flex:0;-ms-flex:0 0 40%;flex:0 0 40%;min-width:0}@media(min-width:768px)and (max-width:1199.98px){.embla__slide.jsx-4e24c9d929aa54e6{-webkit-box-flex:0;-webkit-flex:0 0 38%;-moz-box-flex:0;-ms-flex:0 0 38%;flex:0 0 38%}}@media(min-width:1200px){.embla__slide.jsx-4e24c9d929aa54e6{-webkit-box-flex:0;-webkit-flex:0 0 28%;-moz-box-flex:0;-ms-flex:0 0 28%;flex:0 0 28%}}"}),(0,i.jsx)("div",{className:"jsx-4e24c9d929aa54e6 flex items-center justify-center overflow-hidden w-full p-4",children:(0,i.jsx)("div",{className:"jsx-4e24c9d929aa54e6 w-full max-w-4xl",children:(0,i.jsxs)("div",{className:"jsx-4e24c9d929aa54e6 rounded-lg sm:rounded-xl overflow-hidden bg-gray-800/30 border border-gray-600/30 backdrop-blur-sm min-h-48 sm:min-h-64 lg:min-h-96 w-full relative",children:[c?(0,i.jsx)(O.vx,{itemOne:(0,i.jsx)("video",{src:c.input,poster:d[n].poster,loop:!0,muted:!0,playsInline:!0,autoPlay:!0,style:{maxHeight:"600px"},className:"jsx-4e24c9d929aa54e6 w-full h-full object-contain"},"input-".concat(n)),itemTwo:(0,i.jsx)("video",{src:c.output,poster:d[n].poster,loop:!0,muted:!0,playsInline:!0,autoPlay:!0,style:{maxHeight:"600px"},className:"jsx-4e24c9d929aa54e6 w-full h-full object-contain"},"output-".concat(n)),position:50,className:"h-full"}):(0,i.jsx)("div",{className:"jsx-4e24c9d929aa54e6 flex items-center justify-center h-full text-center text-gray-400 p-2 sm:p-4",children:(0,i.jsxs)("div",{className:"jsx-4e24c9d929aa54e6",children:[(0,i.jsx)("svg",{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",className:"jsx-4e24c9d929aa54e6 w-12 h-12 sm:w-16 sm:h-16 mx-auto mb-2 sm:mb-4 opacity-50",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1,d:"M15 10l4.553-2.276A1 1 0 0121 8.618v6.764a1 1 0 01-1.447.894L15 14M5 18h8a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v8a2 2 0 002 2z",className:"jsx-4e24c9d929aa54e6"})}),(0,i.jsx)("p",{className:"jsx-4e24c9d929aa54e6 text-sm sm:text-lg",children:"Select a video below"})]})}),!t&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("button",{onClick:()=>{h(0===n?d.length-1:n-1)},className:"jsx-4e24c9d929aa54e6 absolute left-2 sm:left-4 top-1/2 -translate-y-1/2 z-30 w-10 h-10 sm:w-12 sm:h-12 bg-black/60 hover:bg-black/80 backdrop-blur-sm rounded-full flex items-center justify-center text-white transition-all duration-300 hover:scale-110 shadow-xl border border-gray-600/50",children:(0,i.jsx)(V.Z,{className:"w-5 h-5 sm:w-6 sm:h-6"})}),(0,i.jsx)("button",{onClick:()=>{h(n===d.length-1?0:n+1)},className:"jsx-4e24c9d929aa54e6 absolute right-2 sm:right-4 top-1/2 -translate-y-1/2 z-30 w-10 h-10 sm:w-12 sm:h-12 bg-black/60 hover:bg-black/80 backdrop-blur-sm rounded-full flex items-center justify-center text-white transition-all duration-300 hover:scale-110 shadow-xl border border-gray-600/50",children:(0,i.jsx)(B.Z,{className:"w-5 h-5 sm:w-6 sm:h-6"})})]})]})})}),t&&(0,i.jsx)("div",{className:"jsx-4e24c9d929aa54e6 flex-shrink-0 border-t border-gray-700/50",children:(0,i.jsx)("div",{className:"jsx-4e24c9d929aa54e6 py-3 sm:py-4",children:(0,i.jsxs)("div",{ref:s,className:"jsx-4e24c9d929aa54e6 embla relative",children:[(0,i.jsx)("div",{className:"jsx-4e24c9d929aa54e6 embla__container",children:d.map((e,t)=>(0,i.jsx)("div",{className:"jsx-4e24c9d929aa54e6 embla__slide",children:(0,i.jsx)("div",{className:"jsx-4e24c9d929aa54e6 px-2 py-2",children:(0,i.jsxs)("div",{onClick:()=>h(t),className:"jsx-4e24c9d929aa54e6 "+"relative cursor-pointer group w-full h-32 sm:h-40 md:h-44 rounded-lg sm:rounded-xl overflow-hidden transition-all duration-300 border ".concat(n===t?"border-blue-500 ring-1 ring-blue-500 ring-offset-0 ring-offset-gray-900 shadow-xl sm:shadow-2xl shadow-blue-500/25 scale-105":"border-gray-600/50 hover:border-gray-500/50 hover:scale-102 shadow-lg shadow-black/20"),children:[(0,i.jsx)("video",{src:e.output,muted:!0,loop:!0,playsInl
1ine:!0,poster:e.poster,preload:"metadata",className:"jsx-4e24c9d929aa54e6 w-full h-full object-cover group-hover:scale-110 transition-transform duration-300"}),(0,i.jsx)("div",{className:"jsx-4e24c9d929aa54e6 absolute inset-0 bg-gradient-to-t from-black/30 via-transparent to-transparent opacity-60"}),n===t&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"jsx-4e24c9d929aa54e6 absolute inset-1 transition-all duration-300 rounded-lg sm:rounded-xl flex items-end justify-center pb-2 sm:pb-4",children:(0,i.jsxs)("button",{onClick:e=>b(e,t),className:"jsx-4e24c9d929aa54e6 bg-gradient-to-r from-blue-500 to-purple-600 hover:from-blue-600 hover:to-purple-700 text-white text-xs sm:text-sm px-3 sm:px-4 py-1.5 sm:py-2 rounded-md sm:rounded-lg transition-all duration-300 flex items-center gap-1 sm:gap-2 shadow-2xl backdrop-blur-sm transform translate-y-2 group-hover:translate-y-0",children:[(0,i.jsx)(q.Z,{size:14,className:"sm:w-4 sm:h-4"}),(0,i.jsx)("span",{className:"jsx-4e24c9d929aa54e6 ",children:a("create")})]})}),(0,i.jsx)("div",{className:"jsx-4e24c9d929aa54e6 absolute top-1 right-1 w-5 h-5 sm:w-6 sm:h-6 bg-gradient-to-r from-blue-500 to-purple-600 rounded-full flex items-center justify-center shadow-xl sm:shadow-2xl shadow-blue-500/50 z-20",children:(0,i.jsx)("svg",{fill:"currentColor",viewBox:"0 0 20 20",className:"jsx-4e24c9d929aa54e6 w-3 h-3 text-white",children:(0,i.jsx)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd",className:"jsx-4e24c9d929aa54e6"})})})]})]})})},t))}),(0,i.jsx)("button",{onClick:m,className:"jsx-4e24c9d929aa54e6 absolute left-2 top-1/2 -translate-y-1/2 z-30 w-8 h-8 sm:w-10 sm:h-10 bg-black/50 hover:bg-black/70 backdrop-blur-sm rounded-full flex items-center justify-center text-white transition-all duration-300 hover:scale-110 shadow-lg",children:(0,i.jsx)(V.Z,{className:"w-4 h-4 sm:w-5 sm:h-5"})}),(0,i.jsx)("button",{onClick:u,className:"jsx-4e24c9d929aa54e6 absolute right-2 top-1/2 -translate-y-1/2 z-30 w-8 h-8 sm:w-10 sm:h-10 bg-black/50 hover:bg-black/70 backdrop-blur-sm rounded-full flex items-center justify-center text-white transition-all duration-300 hover:scale-110 shadow-lg",children:(0,i.jsx)(B.Z,{className:"w-4 h-4 sm:w-5 sm:h-5"})})]})})})]})}function G(){let{user:e,setShowSignModal:t}=(0,N.b)(),a=(0,w.useTranslations)();return(0,i.jsxs)("div",{className:"grid h-full",children:[(0,i.jsx)("p",{className:"text-gray-400 mb-4 text-lg h-max",children:a("public.example")}),(0,i.jsx)("div",{className:"hero h-max relative",children:(0,i.jsx)("div",{className:" text-center",children:(0,i.jsx)("div",{className:"w-full h-[600px]",children:(0,i.jsx)("video",{src:"https://cdn.yestool.ai/public/s2v.mp4",className:"w-full max-h-[600px] object-cover rounded-lg",style:{display:"grid",placeItems:"center"},controls:!0})})})})]})}var Y=a(43797);function J(e){let{modelName:t}=e,{user:a,setShowSignModal:o}=(0,N.b)();return(0,w.useTranslations)(),(0,i.jsxs)("div",{className:"h-full",children:[["lyricsMusic","textMusic","birthdaySong","lullabySong","farewellSong","loveStorySong","petSong","prayerSong","roastSong"].includes(t)&&(0,i.jsx)(E,{}),("text-to-image"===t||"image-to-image"===t)&&(0,i.jsx)(Y.Z,{modelName:t}),("text-to-video"===t||"image-to-video"===t)&&(0,i.jsx)(Y.Z,{modelName:t}),"veo3"===t&&(0,i.jsx)(Y.Z,{modelName:t}),"ai-music-video"===t&&(0,i.jsx)(Y.Z,{modelName:t}),"video-upscaler"===t&&(0,i.jsx)(Q,{}),"speech-to-video"===t&&(0,i.jsx)(G,{}),"nano-banana"===t&&(0,i.jsx)(Y.Z,{modelName:t}),"french-kiss"===t&&(0,i.jsx)(Y.Z,{modelName:t}),"hugging"===t&&(0,i.jsx)(Y.Z,{modelName:t}),"jiggle-up"===t&&(0,i.jsx)(Y.Z,{modelName:t}),"body-shake"===t&&(0,i.jsx)(Y.Z,{modelName:t}),"muscling"===t&&(0,i.jsx)(Y.Z,{modelName:t}),"sexy-me"===t&&(0,i.jsx)(Y.Z,{modelName:t}),"pinch"===t&&(0,i.jsx)(Y.Z,{modelName:t}),"shake-dance"===t&&(0,i.jsx)(Y.Z,{modelName:t}),"wan-animate"===t&&(0,i.jsx)(Y.Z,{modelName:t}),"sora2"===t&&(0,i.jsx)(Y.Z,{modelName:t}),"klingv2_5"===t&&(0,i.jsx)(Y.Z,{modelName:t}),"wan2_5"===t&&(0,i.jsx)(Y.Z,{modelName:t}),"hailuo"===t&&(0,i.jsx)(Y.Z,{modelName:t}),"seedance"===t&&(0,i.jsx)(Y.Z,{modelName:t}),["fluxKontext","seedream-v4","seedream-v4","nanobanana2","qwen-image","gpt-image-2","gpt-image-2-5-flare","gpt-image-2-5-sunburst"].includes(t)&&(0,i.jsx)(Y.Z,{modelName:t})]})}var X=a(36971),K=a(53969),$=a(67115),ee=a(39197),et=a(22350),ea=a(33847),ei=a.n(ea);let eo={},es=new Set,el=e=>!e||"Completed"===e,en=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Please wait for the task to complete",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Notice",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";s.u_.warning({centered:!0,title:t,content:e,okText:a,hasCancel:!1})},er=e=>{var t;return(null==e?void 0:null===(t=e.subscription)||void 0===t?void 0:t.planKey
1)||(null==e?void 0:e.planKey)||"free_plan"},ec=e=>"free_plan"===e||"free"===e,ep=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{waitForCompleteText:i="Please wait for the task to complete",noticeTitle:o="Notice",okText:s="OK"}=a;return ec(er(e))?(k.Z.emit("showPriceModalEvent",{show:!0}),!1):!!el(t)||(en(i,o,s),!1)},ed=async function(e,t,a,i,o){let l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},{taskStatus:n,waitForCompleteText:r="Please wait for the task to complete",noticeTitle:c="Notice",okText:p="OK"}=l;if(!t){a(!0);return}let d=er(i);if(!o&&ec(d)){k.Z.emit("showPriceModalEvent",{show:!0});return}if(!el(n)){en(r,c,p);return}try{s.FN.success("Downloading..."),await (0,U.d)(e)}catch(e){console.error("ä¸è½½å¤±è´¥:",e)}},em=e=>{let{assetId:t,title:a,imgUrl:o,t:l}=e,n="https://yestool.ai/share/"+t,r="".concat(n).concat(n.includes("?")?"&":"?","utm_source=share_link");return[{icon:(0,i.jsx)(C.Z,{size:18}),onClick:()=>{navigator.clipboard.writeText(r),s.FN.success(l("music.copied"))},render:"Copy Link"},{icon:(0,i.jsx)(et.Vq,{size:28,round:!0}),onClick:null,render:(0,i.jsx)(et.Dk,{url:n+"?utm_source=Facebook&utm_medium=social",quote:a,children:"Facebook"})},{icon:(0,i.jsx)(et.cH,{size:28,round:!0}),onClick:null,render:(0,i.jsx)(et.MC,{url:n+"?utm_source=Pinterest&utm_medium=social",media:o||"",description:a,children:"Pinterest"})},{icon:(0,i.jsx)(et.Zm,{size:28,round:!0}),onClick:null,render:(0,i.jsx)(et.B,{url:n+"?utm_source=Twitter&utm_medium=social",title:a,children:"Twitter"})},{icon:(0,i.jsx)(et.ud,{size:28,round:!0}),onClick:null,render:(0,i.jsx)(et.N0,{url:n+"?utm_source=Whatsapp&utm_medium=social",title:a,children:"Whatsapp"})},{icon:(0,i.jsx)(et.YG,{size:28,round:!0}),onClick:null,render:(0,i.jsx)(et.tq,{url:n+"?utm_source=Telegram&utm_medium=social",title:a,children:"Telegram"})}]},eu=e=>{var t,a;let{item:o}=e,r=(0,w.useTranslations)(),c=(0,j.useRouter)(),p=(0,j.useParams)().locale,{user:d,setShowSignModal:m}=(0,N.b)(),[u,h]=(0,x.Z)("userInfo",{defaultValue:{},listenStorageChange:!0}),b=()=>(0,i.jsxs)("svg",{width:"16",height:"16",fill:"#fff",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 58 58",xmlSpace:"preserve",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,i.jsx)("path",{d:"M52.276 30.239a2.99 2.99 0 0 0-4.221 0L32.664 45.63l-2.121 7.779-.519.519a1 1 0 0 0-.006 1.405l-.005.02.019-.005a.994.994 0 0 0 1.406-.005l.52-.52 7.778-2.121 15.39-15.391a2.99 2.99 0 0 0 0-4.222zM34.973 46.15l10.243-10.243 4.243 4.243-10.243 10.243zm-.903 1.925 3.22 3.22-4.428 1.208zm19.641-12.179-2.839 2.839-4.243-4.242 2.839-2.839a.987.987 0 0 1 1.394-.001l2.85 2.85a.985.985 0 0 1-.001 1.393M21.569 15.935c0-3.071-2.498-5.569-5.569-5.569s-5.569 2.498-5.569 5.569 2.498 5.568 5.569 5.568 5.569-2.498 5.569-5.568m-9.138 0c0-1.968 1.601-3.569 3.569-3.569s3.569 1.602 3.569 3.569-1.601 3.568-3.569 3.568-3.569-1.601-3.569-3.568M6.25 39.026a.997.997 0 0 0 1.41.09l16.313-14.362 8.319 8.318a.999.999 0 1 0 1.414-1.414l-2.825-2.824 9.191-10.065 8.262 7.344a.999.999 0 1 0 1.329-1.494l-9-8a.997.997 0 0 0-1.403.073l-9.794 10.727-4.743-4.743a1 1 0 0 0-1.368-.044L6.339 37.614a1 1 0 0 0-.089 1.412"}),(0,i.jsx)("path",{d:"M57 2.365H1a1 1 0 0 0-1 1v44a1 1 0 0 0 1 1h26a1 1 0 1 0 0-2H2v-42h54v24a1 1 0 1 0 2 0v-25a1 1 0 0 0-1-1"})]});return(0,i.jsx)("div",{className:"relative grid sm:grid-cols-2 lg:grid-cols-2 xl:grid-cols-2 gap-x-2 gap-y-2 sm:gap-x-2.5 grid-cols-2",children:null===(a=o.responseData)||void 0===a?void 0:null===(t=a.images)||void 0===t?void 0:t.map((e,t)=>{var a;let h="";return h=ec(er(u))?e.wmUrl||e.url||"":e.url||"",(0,i.jsxs)("div",{className:"relative group flex flex-col gap-2",children:[(0,i.jsx)(s.Ee,{src:h,className:"!grid place-items-center ",imgStyle:{height:"100%",objectFit:"contain",overflow:"hidden"}}),(0,i.jsx)(s.hE,{style:{background:"#000000a3",borderRadius:"4px",WebkitBackdropFilter:"blur(4px)",backdropFilter:"blur(4px)",width:"max-content"},className:"rounded-md ",type:"tertiary",children:"Completed"===o.status&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.J2,{showArrow:!0,content:(0,i.jsx)("div",{children:r("music.share")}),position:"top",children:(0,i.jsx)(s.Lt,{position:"top",clickToHide:!0,render:(0,i.jsx)(s.Lt.Menu,{children:em({assetId:(null==e?void 0:e.assetId)||o.taskId,title:(null===(a=o.requestData)||void 0===a?void 0:a.prompt)||"Generated Image",imgUrl:h,t:r}).map((e,t)=>(0,i.jsx)(s.Lt.Item,{icon:e.icon,onClick:null==e?void 0:e.onClick,children:e.render},t))}),children:(0,i.jsx)(s.zx,{className:"!text-white",icon:(0,i.jsx)(l.Z,{})})})}),(0,i.jsx)(s.J2,{showArrow:!0,content:(0,i.jsx)("div",{children:r("public.generateEffects")}),position:"top",children:(0,i.jsx)(s.zx,{onClick:()=>{let t=encodeURIComponent(e.url||e.wmUrl);c.push("/".concat(p,"/ai/tools/effect/french-kiss?imageUrl=").concat(t))},className:"!text-white",icon:(0,i.jsx)(_.Z,{size:16})})}),(0,i.jsx)(s.J2,{showArrow:!0,content:(0,i.jsx)("div",{children:r("edit")}),position:"top",children:(0,i.jsx)(s.zx,{onClick:()=>{let t=encodeURIComponent(e.url||e.wmUrl);c.push("/".concat(p,"/ai/image-to-image?outImageUrl=").concat(t))},className:"!text-white",icon:(0,i.jsx)(b,{})})}),(0,i.jsx)(s.J2,{showArrow:!0,content:(0,i.jsx)("div",{children:r("public.generateVideo")}),position:"top",children:(0,i.jsx)(s.zx,{onClick:()=>{let t=encodeURIComponent(e.url||e.wmUrl);
1c.push("/".concat(p,"/ai/image-to-video?imageUrl=").concat(t))},className:"!text-white",icon:(0,i.jsx)(X.Z,{size:16})})}),(0,i.jsx)(s.J2,{showArrow:!0,content:(0,i.jsx)("div",{children:"Download Watermark"}),position:"top",children:(0,i.jsx)(s.Lt,{position:"top",render:(0,i.jsxs)(s.Lt.Menu,{children:[(0,i.jsx)(s.Lt.Item,{onClick:()=>ed(h,d,m,u,!0),children:r("public.downloadWithWatermark")}),(0,i.jsxs)(s.Lt.Item,{onClick:()=>ed(h,d,m,u,!1),children:[r("public.downloadWithoutWatermark"),(0,i.jsx)(z.Z,{size:16,className:"text-[yellow] ml-1"})]})]}),children:(0,i.jsx)(s.zx,{className:"!text-white",icon:(0,i.jsx)(n.Z,{})})})})]})})]},t)})})},eh=e=>{var t,a;let{item:c}=e,{user:p,setShowSignModal:d}=(0,N.b)(),[m,u]=(0,x.Z)("userInfo",{defaultValue:{}}),h=(0,w.useTranslations)(),b=(0,j.useRouter)(),g=(0,j.useParams)().locale,[f,v]=(0,o.useState)(null),[y,U]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let e=e=>{U(e.isPlaying),e.isPlaying||v(null)};return k.Z.on("musicPlayingEvent",e),()=>{k.Z.off("musicPlayingEvent",e)}},[]);let I=(e,t)=>{if(f===t&&y)k.Z.emit("closePlayerEvent"),v(null),U(!1);else{var a,i;let o={title:e.title,imgUrl:e.imgUrl,audioUrl:e.audioUrl,streamAudioUrl:e.streamAudioUrl,id:e.id,prompt:e.prompt,timestampedLyricsLrc:e.timestampedLyricsLrc||e.timestampedLyrics||e.lyricsLrc||e.lrc||(null===(a=e.requestData)||void 0===a?void 0:a.timestampedLyricsLrc)||(null===(i=e.requestData)||void 0===i?void 0:i.timestampedLyrics)||"",tags:e.tags,assetId:(null==e?void 0:e.assetId)||"",progress:e.progress};k.Z.emit("playMusicEvent",o),v(t),U(!0)}};return(0,i.jsx)("div",{className:"grid grid-cols-2 gap-3",children:null===(a=c.responseData)||void 0===a?void 0:null===(t=a.songs)||void 0===t?void 0:t.map((e,t)=>{let a=f===t&&y;return c.status,(0,i.jsxs)("div",{className:"relative group flex flex-col gap-2",children:[(0,i.jsxs)("div",{className:"relative cursor-pointer border-2 border-white/20 rounded-[8px] hover:border-[#5b53ff] transition-all duration-300",children:[(0,i.jsx)(s.Ee,{preview:!1,src:e.imgUrl,className:"!grid place-items-center",imgStyle:{height:"100%",objectFit:"contain",overflow:"hidden"}}),(0,i.jsx)("button",{onClick:()=>I(e,t),className:"absolute top-0 left-0 bottom-0 right-0 flex items-center justify-center text-white transition-colors",children:a?(0,i.jsx)(r.Z,{size:"extra-large"}):(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-12 h-12",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 5.653c0-.856.917-1.398 1.667-.986l11.54 6.347a1.125 1.125 0 0 1 0 1.972l-11.54 6.347a1.125 1.125 0 0 1-1.667-.986V5.653Z"})})})]}),"Failed"===c.status?(0,i.jsxs)(s.hE,{children:[(0,i.jsx)(s.J2,{showArrow:!0,content:(0,i.jsx)("div",{children:h("music.wait_for_complete")}),position:"top",children:(0,i.jsx)(s.zx,{className:"!text-[#999]",children:(0,i.jsx)(l.Z,{})})}),(0,i.jsx)(s.J2,{showArrow:!0,content:(0,i.jsx)("div",{children:h("music.wait_for_complete")}),position:"top",children:(0,i.jsx)(s.zx,{className:"!text-[#999]",children:(0,i.jsx)(Z.Z,{size:16})})}),(0,i.jsx)(s.J2,{showArrow:!0,content:(0,i.jsx)("div",{children:h("music.wait_for_complete")}),position:"top",children:(0,i.jsx)(s.zx,{className:"!text-[#999]",children:(0,i.jsx)(n.Z,{})})})]}):(0,i.jsxs)(s.hE,{style:{background:"#000000a3",borderRadius:"4px",WebkitBackdropFilter:"blur(4px)",backdropFilter:"blur(4px)",width:"max-content"},className:"rounded-md",type:"tertiary",children:[(0,i.jsx)(s.J2,{showArrow:!0,content:(0,i.jsx)("div",{children:h("music.share")}),position:"top",children:(0,i.jsx)(s.Lt,{position:"top",clickToHide:!0,render:(0,i.jsx)(s.Lt.Menu,{children:em({assetId:(null==e?void 0:e.assetId)||"",title:(null==e?void 0:e.title)||"",imgUrl:null==e?void 0:e.imgUrl,t:h}).map((e,t)=>(0,i.jsx)(s.Lt.Item,{icon:e.icon,onClick:null==e?void 0:e.onClick,children:e.render},t))}),children:(0,i.jsx)(s.zx,{className:"!text-white",icon:(0,i.jsx)(l.Z,{})})})}),(0,i.jsx)(s.J2,{showArrow:!0,content:(0,i.jsx)("div",{children:h("public.makeMV")}),position:"top",children:(0,i.jsx)(s.Lt,{position:"top",clickToHide:!0,render:(0,i.jsx)(s.Lt.Menu,{children:(0,i.jsx)(s.Lt.Item,{children:(0,i.jsx)("div",{onClick:()=>
1{if("Stream"===c.status||"Failed"===c.status){en(h("music.wait_for_complete"),h("public.notice")||h("public.confirm"),h("public.ok")||h("public.confirm"));return}b.push("/".concat(g,"/ai/tools/ai-music-video?audioUrl=").concat(e.audioUrl,"&randomNum=").concat(Math.random()))},children:h("public.makeMV")})})}),children:(0,i.jsx)(s.zx,{className:"!text-white",icon:(0,i.jsx)(Z.Z,{size:16})})})}),(0,i.jsx)(s.J2,{showArrow:!0,content:(0,i.jsx)("div",{children:h("public.download")}),position:"top",children:(0,i.jsx)(s.Lt,{position:"top",clickToHide:!0,render:(0,i.jsxs)(s.Lt.Menu,{children:[(0,i.jsx)(s.Lt.Item,{icon:(0,i.jsx)(L.Z,{size:20}),onClick:()=>{ed(e.audioUrl,p,d,m,!1,{taskStatus:c.status,waitForCompleteText:h("music.wait_for_complete"),noticeTitle:h("public.notice")||h("public.confirm"),okText:h("public.ok")||h("public.confirm")})},children:h("public.downloadMP3")}),(0,i.jsxs)(s.Lt.Item,{icon:(0,i.jsx)(S.Z,{size:20}),onClick:()=>{ep(m,c.status,{waitForCompleteText:h("music.wait_for_complete"),noticeTitle:h("public.notice")||h("public.confirm"),okText:h("public.ok")||h("public.confirm")})&&(0,T.To)(m,"/japi/music/generate-video",e.assetId,{downloading:h("music.downloading"),generating:h("music.generating"),generating_tip:h("music.generating_tip")})},children:[(0,i.jsx)("span",{className:"pr-1",children:h("public.downloadMP4")}),(0,i.jsx)(M.Z,{count:3})]}),(0,i.jsxs)(s.Lt.Item,{icon:(0,i.jsx)(A.Z,{size:20}),onClick:()=>{ep(m,c.status,{waitForCompleteText:h("music.wait_for_complete"),noticeTitle:h("public.notice")||h("public.confirm"),okText:h("public.ok")||h("public.confirm")})&&(0,T.To)(m,"/japi/music/generate-wav",e.assetId,{downloading:h("music.downloading"),generating:h("music.generating"),generating_tip:h("music.generating_tip")})},children:[(0,i.jsx)("span",{className:"pr-1",children:h("public.downloadWAV")}),(0,i.jsx)(M.Z,{count:2})]}),(0,i.jsxs)(s.Lt.Item,{icon:(0,i.jsx)(F.Z,{size:20}),onClick:()=>{ep(m,c.status,{waitForCompleteText:h("music.wait_for_complete"),noticeTitle:h("public.notice")||h("public.confirm"),okText:h("public.ok")||h("public.confirm")})&&(0,T.To)(m,"/japi/music/generate-midi",e.assetId,{downloading:h("music.downloading"),generating:h("music.generating"),generating_tip:h("music.generating_tip")})},children:[(0,i.jsxs)("span",{className:"pr-1",children:[h("public.download")," MIDI"]}),(0,i.jsx)(M.Z,{count:3})]}),(0,i.jsxs)(s.Lt.Item,{icon:(0,i.jsx)(K.Z,{size:20}),onClick:()=>{ep(m,c.status,{waitForCompleteText:h("music.wait_for_complete"),noticeTitle:h("public.notice")||h("public.confirm"),okText:h("public.ok")||h("public.confirm")})&&(0,T.To)(m,"/japi/music/generate-vocals",e.assetId,{downloading:h("music.downloading"),generating:h("music.generating"),generating_tip:h("music.generating_tip"),wait_for_complete:h("music.wait_for_complete"),type:"separate_vocal"},c)},children:[(0,i.jsxs)("span",{className:"pr-1 whitespace-nowrap",children:[h("public.vocal")," + ",h("public.instrumental")]}),(0,i.jsx)(M.Z,{count:3})]}),(0,i.jsxs)(s.Lt.Item,{icon:(0,i.jsx)(A.Z,{size:20}),onClick:()=>{ep(m,c.status,{waitForCompleteText:h("music.wait_for_complete"),noticeTitle:h("public.notice")||h("public.confirm"),okText:h("public.ok")||h("public.confirm")})&&(0,T.To)(m,"/japi/music/generate-vocals",e.assetId,{downloading:h("music.downloading"),generating:h("music.generating"),generating_tip:h("music.generating_tip"),wait_for_complete:h("music.wait_for_complete"),type:"split_stem"},c)},children:[(0,i.jsx)("span",{className:"pr-1 whitespace-nowrap",children:h("public.allStems")}),(0,i.jsx)(M.Z,{count:10})]})]}),children:(0,i.jsx)(s.zx,{className:"!text-white",icon:(0,i.jsx)(n.Z,{})})})})]})]},t)})})},eb=e=>{var t,a,r,c,p,d,m,u,h,b;let{item:g}=e,f=(0,w.useTranslations)(),v=(0,j.useRouter)(),y=(0,j.useParams)().locale,{user:k,setShowSignModal:U}=(0,N.b)(),[I,P]=(0,x.Z)("userInfo"),[T,C]=(0,o.useState)(!1),_="",Z=null===(r=g.responseData)||void 0===r?void 0:null===(a=r.videos)||void 0===a?void 0:null===(t=a[0])||void 0===t?void 0:t.wmUrl,L=null===(d=g.responseData)||void 0===d?void 0:null===(p=d.videos)||void 0===p?void 0:null===(c=p[
10])||void 0===c?void 0:c.url,S=!!(_=ec(er(I))?Z||L||"":L||"");return(0,i.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(1, 1fr)",gap:"10px"},className:"relative max-w-[660px]",children:(0,i.jsx)("div",{className:"relative",children:S&&(0,i.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,i.jsx)("video",{playsInline:!0,"webkit-playsinline":"true",controlsList:"nodownload",disablePictureInPicture:!0,onContextMenu:e=>e.preventDefault(),className:"w-full h-[350px]",src:_,controls:!0}),"Completed"===g.status&&(0,i.jsxs)(s.hE,{style:{background:"#000000a3",borderRadius:"4px",WebkitBackdropFilter:"blur(4px)",backdropFilter:"blur(4px)",width:"max-content"},className:"rounded-md",type:"tertiary",children:[(0,i.jsx)(s.J2,{showArrow:!0,content:(0,i.jsx)("div",{children:f("music.share")}),position:"top",children:(0,i.jsx)(s.Lt,{position:"top",clickToHide:!0,render:(0,i.jsx)(s.Lt.Menu,{children:em({assetId:(null===(h=g.responseData)||void 0===h?void 0:null===(u=h.videos)||void 0===u?void 0:null===(m=u[0])||void 0===m?void 0:m.assetId)||g.taskId,title:(null===(b=g.requestData)||void 0===b?void 0:b.prompt)||"Generated Video",imgUrl:_,t:f}).map((e,t)=>(0,i.jsx)(s.Lt.Item,{icon:e.icon,onClick:null==e?void 0:e.onClick,children:e.render},t))}),children:(0,i.jsx)(s.zx,{className:"!text-white",icon:(0,i.jsx)(l.Z,{})})})}),(0,i.jsx)(s.J2,{showArrow:!0,content:(0,i.jsx)("div",{children:f("public.videoUpscaler")}),position:"top",children:(0,i.jsx)(s.zx,{onClick:()=>{let e=encodeURIComponent(_);v.push("/".concat(y,"/ai/tools/video-upscaler?videoUrl=").concat(e))},className:"!text-white",icon:(0,i.jsx)($.Z,{size:18})})}),(0,i.jsx)(s.J2,{showArrow:!0,content:(0,i.jsx)("div",{children:"Download"}),position:"top",children:(0,i.jsx)(s.Lt,{position:"top",render:(0,i.jsxs)(s.Lt.Menu,{children:[(0,i.jsx)(s.Lt.Item,{onClick:()=>ed(_,k,U,I,!0),children:f("public.downloadWithWatermark")}),(0,i.jsxs)(s.Lt.Item,{onClick:()=>ed(_,k,U,I,!1),children:[f("public.downloadWithoutWatermark"),(0,i.jsx)(z.Z,{size:16,className:"text-[yellow] ml-1"})]})]}),children:(0,i.jsx)(s.zx,{className:"!text-white",icon:(0,i.jsx)(n.Z,{})})})})]})]})})})},eg=e=>{var t,a,l,n,r,x,f,v,k;let{item:U,reload:I,startPolling:T}=e,{user:C,setShowSignModal:_}=(0,N.b)(),{Paragraph:z}=s.Typography;(0,j.useRouter)();let Z=(0,w.useTranslations)();(0,o.useEffect)(()=>{"Completed"!==U.status&&"Failed"!==U.status&&T(U.taskId,U.createdAt)},[U.taskId,U.status,U.createdAt,T]);let L=async e=>{s.u_.confirm({centered:!0,title:"Delete",content:"Confirm the deletion of this record?",okText:"Delete",cancelText:"Cancel",onOk:()=>y.Z.post("/japi/v1/tasks/task_delete",{taskId:e}).then(e=>200===e.code?(s.FN.success("Delete success"),I(),!0):(s.FN.error("Delete failed"),!1)).catch(e=>(s.FN.error("Delete failed"),!1))})};return(0,i.jsxs)("div",{className:"relative flex flex-col gap-2 bg-[hsl(var(--card))] p-4 rounded-md mb-3",children:[(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{className:" flex place-items-center gap-1",children:["music"===U.taskType&&(0,i.jsx)(c.Z,{size:"large"}),"image"===U.taskType&&(0,i.jsx)(p.Z,{size:"large"}),"video"===U.taskType&&(0,i.jsx)(d.Z,{size:"large"}),(0,i.jsx)("span",{className:"text-base font-semibold",children:U.taskType?U.taskType.charAt(0).toUpperCase()+U.taskType.slice(1):null===(a=U.requestData)||void 0===a?void 0:null===(t=a.jump)||void 0===t?void 0:t.tabKey})]}),(null==U?void 0:U.errorMessage)&&(0,i.jsxs)("div",{className:"text-sm text-red-500 flex items-center gap-1",children:[(0,i.jsx)(m.Z,{}),null==U?void 0:U.errorMessage]})]}),(0,i.jsx)("div",{children:(0,i.jsx)(s.J2,{showArrow:!0,content:(0,i.jsx)("div",{children:Z("delete")}),position:"top",children:(0,i.jsx)(s.zx,{disabled:!C||"Completed"!==U.status&&"Failed"!==U.status,className:"ml-2",theme:"light",type:"tertiary",icon:(0,i.jsx)(u.Z,{onClick:()=>L(U.taskId),className:"cursor-pointer"})})})})]}),(0,i.jsx)(z,{copyable:{content:"music"===U.taskType?null===(r=U.responseData)||void 0===r?void 0:null===(n=r.songs)||void 0===n?void 0:null===(l=n[0])||void 0===l?void 0:l.title:null===(x=U.requestData)||void 0===x?void 0:x.prompt,render:(e,t,a)=>(0,i.jsx)(s.J2,{showArrow:!0,content:(0,i.jsx)("div",{children:Z("copy")}),position:"top",children:(0,i.jsx)(s.zx,{className:"ml-1",icon:e?(0,i.jsx)(h.Z,{style:{color:"green"}}):(0,i.jsx)(b.Z,{}),size:"small",onClick:t,children:e?(0,i.jsx)("span",{style:{color:"green"},children:"success"}):null})})},ellipsis:{rows:3},style:{width:"100%"},children:"music"===U.taskType?null===(k=U.responseData)||void 0===k?void 0:null===(v=k.songs)||void 0===v?void 0:null===(f=v[0])||void 0===f?void 0:f.title:U.requestData.prompt}),(0,i.jsxs)("div",{className:"min-h-[80px] relative",children:[(0,i.jsx)(e=>{let{item:t}=e;return"Stream"===t.status&&"music"===t.taskType?null:"Completed"!==t.status&&"Failed"!==t.status?(0,i.jsx)(s.yC,{spinning:!0,tip:"Being generated...",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"rgba(28, 31, 35, 0.8)",zIndex:999}}):null},{item:U}),"Failed"===U.status&&(0,i.jsxs)("div",{className:"absolute inset-0 flex items-center justify-center bg-black bg-opacity-70 z-10 flex-col",children:[(0,i.jsx)("div",{className:"text-white text-2xl",children:(0,i.jsx)(g.Z,{style:{color:"#E91E63"},size:"extra-large"})}),(0,i.jsx)("div",{className:"text-white text-2xl",children:"Failed"})]}),"music"===U.taskType&&(0,i.jsx)(eh,{item:U}),"image"===U.taskType&&(0,i.jsx)(eu,{item:U}),"video"===U.taskType&&(0,i.jsx)(eb,{item:U})]}),(0,i.jsx)(P.D,{ref:e=>{eo[U.taskId]=e},manualstart:!0,className:"absolute left-0 bottom-0 z-[0] size-full pointer-events-none"})]})};function ex(e){let{modelName:t,hideExample:a=!1,fullHeightScroll:l=!1}=e,n=(0,w.useTranslations)(),{user:r,setShowSignModal:c}=(0,N.b)(),p=(0,f.Z)(),d=p.lg,m=!p.lg,[u,h]=(0,o.useState)(a?"":"example"),[b,g]=(0,o.useState)([]),x=(0,o.useRef)(null),j=(0,o.useRef)(0),U=(0,o.useRef)(!1),P=(0,o.useRef)(new Set),T=(0,o.useRef)(new Map),C=e=>!!e&&ei()(e).isBefore(ei()().subtract(24,"hours")),z=(0,o.useRef)({page:1,size:10,taskType:""}),Z=async e=>{try{let t=await y.Z.post("/japi/v1/tasks/task_detail",{taskId:e});if(200===t.code&&t.data&&("Completed"===t.data.status||"Failed"===t.data.status||"music"===t.data.taskType&&"Stream"===t.data.status))return t.data;return null}catch(e){return console.error("è·åä»»å¡è¯¦æ
失败:",e),null}},L=(0,o.useCallback)((e,t)=>{if(C(t)||P.current.has(e))return;P.current.add(e);let a=async()=>
1{if(C(t)){S(e);return}try{let t=await Z(e);t&&(g(a=>a.map(a=>a.taskId===e?t:a)),("Completed"===t.status||"Failed"===t.status)&&S(e),"music"===t.taskType&&k.Z.emit("headInsertionEvent",{item:t,isOk:!0}),"music"!==t.taskType&&"Completed"===t.status&&k.Z.emit("headInsertionEvent",{item:t,isOk:!0}))}catch(e){console.error("轮询任å¡ç¶æå¤±è´¥:",e)}};a();let i=setInterval(a,5e3);T.current.set(e,i)},[]),S=(0,o.useCallback)(e=>{P.current.delete(e);let t=T.current.get(e);t&&(clearInterval(t),T.current.delete(e))},[]),A=(0,o.useCallback)(()=>{T.current.forEach(e=>{clearInterval(e)}),P.current.clear(),T.current.clear()},[]),F=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(!r||"example"===u)return{list:[],hasMore:!1};try{let t={page:e,size:z.current.size,taskType:z.current.taskType},{content:a,hasNext:i}=(await y.Z.post("/japi/v1/tasks",t)).data;return j.current=e,{list:a||[],hasMore:i||!1}}catch(e){throw e}},{data:M,loading:D,loadMore:E,loadingMore:R,noMore:H,reload:V}=(0,v.Z)(e=>F(e?j.current+1:1),{target:x,isNoMore:e=>!e||!e.hasMore});(0,o.useEffect)(()=>{M&&M.list&&(g(M.list),M.list.forEach(e=>{"Completed"!==e.status&&"Failed"!==e.status&&L(e.taskId,e.createdAt)}))},[M,L]),(0,o.useEffect)(()=>()=>{A()},[A]),(0,o.useEffect)(()=>{let e=e=>{if(z.current.taskType="",h(""),e.isOk){g(t=>t.map(t=>t.taskId===e.item.taskId?e.item:t)),es.has(e.item.taskId)||(es.add(e.item.taskId),setTimeout(()=>{var t;null===(t=eo[e.item.taskId])||void 0===t||t.fire({})},1600));return}if(g(t=>[e.item,...t]),d){var t;null===(t=x.current)||void 0===t||t.scrollTo({top:0,behavior:"smooth"})}else e.mobileScrollTop&&e.mobileScrollTop()};return k.Z.on("headInsertionEvent",e),()=>{k.Z.off("headInsertionEvent",e)}},[]);let B=(0,o.useRef)(!0);return(0,o.useEffect)(()=>{if(B.current){B.current=!1;return}g([]),j.current=1,U.current=!0,V()},[u]),(0,o.useEffect)(()=>{if(a){h("");return}r?h(""):h("example")},[r,a]),(0,o.useEffect)(()=>{a&&r&&(g([]),j.current=1,U.current=!0,V())},[r,a,V]),(0,i.jsxs)("div",{className:l?"h-full flex flex-col":"h-full",children:[r&&(0,i.jsx)(i.Fragment,{children:a?(0,i.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,i.jsxs)("div",{className:"flex items-center gap-2",children:[(0,i.jsx)(s.FX,{onChange:e=>{let t=e.target.value;z.current.taskType=t,h(t)},value:u,type:"button",children:(0,i.jsx)(s.Y8,{value:"",children:(0,i.jsx)("div",{className:"flex items-center gap-1",children:n("public.myCreations")})})}),(0,i.jsx)(ee.Z,{})]}),"example"!==u&&r&&(0,i.jsx)(s.Ph,{optionList:[{label:n("all"),value:""},{label:n("video"),value:"video"},{label:n("image"),value:"image"},{label:n("music.music"),value:"music"}],value:u||"",onChange:e=>{z.current.taskType=e,h(e)}})]}):(0,i.jsxs)("div",{className:"items-center justify-between grid grid-cols-[auto_auto] gap-2",children:[(0,i.jsxs)(s.FX,{onChange:e=>{let t=e.target.value;z.current.taskType=t,h(t)},value:u,type:"button",children:[(0,i.jsx)(s.Y8,{value:"",children:(0,i.jsx)("div",{className:"flex items-center gap-1",children:n("public.myCreations")})}),(0,i.jsx)(s.Y8,{value:"example",children:(0,i.jsxs)("div",{className:"flex items-center gap-1",children:[(0,i.jsx)(_.Z,{size:16})," ",n("public.example")]})})]}),"example"!==u&&r&&(0,i.jsx)(s.Ph,{optionList:[{label:n("all"),value:""},{label:n("video"),value:"video"},{label:n("image"),value:"image"},{label:n("music.music"),value:"music"}],value:u||"",onChange:e=>{z.current.taskType=e,h(e)}}),(0,i.jsx)(ee.Z,{})]})}),(0,i.jsxs)("div",{ref:x,className:l?"overflow-y-auto mt-4 flex-1 min-h-0 yst-audio-safe-space":"overflow-y-auto mt-4 yst-audio-safe-space",style:l?void 0:{height:m?"70vh":"calc(100% - 32px)"},children:[a&&!r&&(0,i.jsx)("div",{className:"w-full h-full min-h-[260px] grid place-items-center px-4",children:(0,i.jsxs)("div",{className:"text-center max-w-[460px]",children:[(0,i.jsx)("div",{className:"text-lg font-semibold mb-2",children:n("login.sign_in_to_your_account")}),(0,i.jsx)("div",{className:"text-sm text-gray-400 mb-4",children:n("public.appearHere")}),(0,i.jsx)(s.zx,{theme:"solid",type:"primary",onClick:()=>c(!0),children:n("login.login")})]})}),"example"!==u&&r&&(0,i.jsxs)(s.yC,{style:{width:"100%"},spinning:D,tip:"Loading...",children:[b&&b.length>0?b.map(e=>(0,i.jsx)(eg,{item:e,reload:V,startPolling:L},e.taskId)):(0,i.jsx)("div",{className:"text-center p-4 text-gray-500",children:"No tasks foun
1d"}),R&&(0,i.jsx)("div",{className:"text-center w-full",children:(0,i.jsx)(s.yC,{style:{width:"100%"},size:"small",tip:"Loading More..."})})]}),"example"===u&&(0,i.jsx)(J,{modelName:t})]}),(0,i.jsx)(I.Z,{isAllowClickLyrics:!0})]})}},43797:function(e,t,a){a.d(t,{Z:function(){return F}});var i=a(76149),o=a(90143),s=a.n(o),l=a(30294),n=a(74595),r=a(2210),c=a(62625),p=a(68541),d=a(82519),m=a(97009),u=a(87365),h=a(23708),b=a(57048);let g={modelName:"ai-music-video",examples:[{imagePreviewUrl:"",videoPreviewUrl:"https://cdn.yestool.ai/public/example/music/demo01/song.mp4",coverUrl:"https://cdn.yestool.ai/public/example/music/demo01/song.webp",inputImages:["https://cdn.yestool.ai/public/example/music/demo01/song.webp"],inputAudio:["https://cdn.yestool.ai/public/example/music/demo01/song.mp3"],prompt:"In the video, a woman is singing. Her expression is very lyrical and intoxicated with music."},{imagePreviewUrl:"",videoPreviewUrl:"https://cdn.yestool.ai/public/example/music/demo02/song.mp4",coverUrl:"https://cdn.yestool.ai/public/example/music/demo02/song.webp",inputImages:["https://cdn.yestool.ai/public/example/music/demo02/song.webp"],inputAudio:["https://cdn.yestool.ai/public/example/music/demo02/song.mp3"],prompt:"In the video, a man is walking beside the railway tracks, singing and expressing his emotions while walking. A train slowly passes by beside him."},{imagePreviewUrl:"",videoPreviewUrl:"https://cdn.yestool.ai/public/example/music/demo3/song.mp4",coverUrl:"https://cdn.yestool.ai/public/example/music/demo3/song.webp",inputImages:["https://cdn.yestool.ai/public/example/music/demo3/song.webp"],inputAudio:["https://cdn.yestool.ai/public/example/music/demo3/song.mp3"],prompt:"The video shows a woman with long hair playing the piano at the seaside. The woman has a long head of silver white hair, and a flame crown is burning on her head. The girls are singing with deep feelings, and their facial expressions are rich. The woman sat sideways in front of the piano, playing attentively."},{imagePreviewUrl:"",videoPreviewUrl:"https://cdn.yestool.ai/public/example/music/demo4/song.mp4",coverUrl:"https://cdn.yestool.ai/public/example/music/demo4/song.webp",inputImages:["https://cdn.yestool.ai/public/example/music/demo4/song.webp"],inputAudio:["https://cdn.yestool.ai/public/example/music/demo4/song.mp3"],prompt:"In the video, a woman stood on the deck of a sailing boat and sang loudly. The background was the choppy sea and the thundering sky. It was raining heavily in the sky, the ship swayed, the camera swayed, and the waves splashed everywhere, creating a heroic atmosphere. The woman has long dark hair, part of which is wet by rain. Her expression is serious and firm, her eyes are sharp, and she seems to be staring at the distance or thinking."}]},x={modelName:"veo3",examples:[{videoPreviewUrl:"https://cdn.yestool.ai/public/example/veo3/demo01/demo.mp4",coverUrl:"https://cdn.yestool.ai/public/example/veo3/demo01/cover.webp",inputImages:[],prompt:'a female singer in a sparkling silver gown performs under a soft spotlight on a moody, dimly lit stage. She holds a vintage microphone and sings with deep emotion, her lips perfectly synced with the vocals:"I keep on dreaming under neon skies, hoping love will find me one more time."The audio features her soulful voice singing these lines. The camera gently pans from a close-up of her face to a wide shot of the stage, highlighting the shimmer of her dress and the atmosphere of the performance.'},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/veo3/demo02/demo.mp4",coverUrl:"https://cdn.yestool.ai/public/example/veo3/demo02/cover.webp",inputImages:[],prompt:'News anchor mid-action, looking straight at the camera. A vintage 1950s black-and-white television broadcast. A serious female news presenter sits at a desk, facing directly toward the audience, with a large old-school microphone in front. She wears a crisp suit, narrow tie, side-parted hair, and wireframe glasses. The presenter moves naturally: leans slightly forward, gestures with one hand, and maintains eye contact with the camera. Her lips are synced to say, "Breaking news: Google Veo 3 is now available on WaveSpeedAI." Contrast, sharp shadows, authentic grainy texture, classic black-and-white 1950s broadcast aesthetic. Vintage TV atmosphere.'},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/veo3/demo03/demo.mp4",coverUrl:"https://cdn.yestool.ai/public/example/veo3/demo03/cover.webp",inputImages:[],prompt:"a young woman walking through a sunlit Parisian street, wearing a beige trench coat, holding a cup of coffee, soft morning light, cinematic movement, shallow depth of field, natural color grading, 4K"},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/veo3/demo04/demo.mp4",coverUrl:"https://cdn.yestool.ai/public/example/veo3/demo04/cover.webp",prompt:"The sequence begins with an extreme close-up of a single gear, slowly turning and reflecting harsh sunlight. The camera gradually pulls back in a continuous movement, reveal
1ing this is but one component of a colossal, mechanical heart half-buried in a desolate, rust-colored desert. A sweeping aerial shot establishes its enormous scale and isolation in the barren landscape. The camera descends to capture pipes hissing steam and the rhythmic thumping that echoes across the empty plains. A subtle shake effect synchronizes with each massive heartbeat. A lateral tracking shot discovers tiny, robed figures scurrying across the metallic surface. The camera follows one such figure in a detailed tracking shot as they perform meticulous maintenance, polishing brass valves and tightening immense bolts. A complex movement circles the entire structure, capturing different maintenance teams working in precarious positions across its rusted exterior. The final shot begins tight on the meticulous work of one tiny figure before executing a dramatic pull-out that reveals the true scale of the heart and the minuscule size of its caretakers, tending to the vital organ of an unseen, sleeping giant that extends beyond the frame."},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/veo3/demo05/demo.mp4",coverUrl:"https://cdn.yestool.ai/public/example/veo3/demo05/cover.webp",prompt:'A dramatic Low-Angle Tracking Shot pulls back slowly from a Black vocalist, bathed in warm, intimate stage lights in a smoky jazz club at night. Their eyes are closed in serene focus as they sing a powerful, uplifting note, microphone held close. The camera recedes, giving them space to fill the frame with their voice. "Let the rhythm lift your soul... set it free!" A soft, resonant bass line and gentle piano chords provide a harmonious backdrop, punctuated by the faint clink of glasses and hushed applause from the audience.'},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/veo3/demo06/demo.mp4",coverUrl:"https://cdn.yestool.ai/public/example/veo3/demo06/cover.webp",prompt:'A gentle close-up on two small, brown macaque monkeys perched on a moss-covered branch in a vibrant, misty rainforest. One monkey tenderly grooms the other\'s fur, making soft "chittering" and "purring" sounds. The camera slowly zooms in further as they lean inand gaze at each other, followed by a soft, content "coo" from one of them. The background is a soft, blurred tapestry of lush green foliage and faint mist. The ambient sounds of the rainforest, including distant bird calls, insect chirps, and the gentle drip of water, are subtly present.'},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/veo3/demo07/demo.mp4",coverUrl:"https://cdn.yestool.ai/public/example/veo3/demo07/cover.webp",prompt:'Claymation (Stop Motion): In a quirky, cluttered garage workshop, a wide shot reveals a crudely built clay robot with mismatching parts, staring forlornly at a broken wrench. The camera slowly zooms in on its face, which expresses a comical frown. A robotic, monotone voice emanates from it, "Unit 734 reports... purpose undefined. Wrench... non-functional." A whirring of internal gears is heard, followed by a sad "boop-beep" sound. An eccentric human inventor with wild, yarn hair enters the frame, looks at the robot, and cheerfully exclaims, "Nonsense, 734! Your purpose is to fetch my coffee!" The robot\'s eyes slowly widen as it responds, "Coffee... new directive detected. Scanning for nearest caffeine source."'}]},f={modelName:"nano-banana",examples:[{coverUrl:"https://cdn.yestool.ai/public/example/nanobanana/demo01/preview01.webp",imagePreviewUrl:"https://cdn.yestool.ai/public/example/nanobanana/demo01/preview01.webp",inputImages:["https://cdn.yestool.ai/public/example/nanobanana/demo01/input01.webp"],prompt:"Turn this photo into a characterfigure. Behind it, place a box withthe character's image printed on it,and a computer showing the Blendermodeling process on its screen. In frontof the box, add a round plastic basewith the character figure standing on it .set the scene indoors if possible."},{coverUrl:"https://cdn.yestool.ai/public/example/nanobanana/demo02/preview01.webp",imagePreviewUrl:"https://cdn.yestool.ai/public/example/nanobanana/demo02/preview01.webp",inputImages:["https://cdn.yestool.ai/public/example/nanobanana/demo02/input01.webp","https://cdn.yestool.ai/public/example/nanobanana/demo02/input02.webp"],prompt:"Create a high-end advertising shot, the man from the reference image drinking drink from the provided bottle image, cinematic lighting, dynamic energy, vibrant mood, ultra-realistic commercial photography style, 8k resolution, Nikon Z9, f/1.8, sharp focus, product-focused composition"},{coverUrl:"https://cdn.yestool.ai/public/example/nanobanana/demo03/preview01.webp",imagePreviewUrl:"https://cdn.yestool.ai/public/example/nanobanana/demo03/preview01.webp",inputImages:["https://cdn.yestool.ai/public/example/nanobanana/demo03/input01.webp"],prompt:"Restore and colorize old images."},{coverUrl:"https://cdn.yestool.ai/public/example/nanobanana/demo04/preview01.webp",imagePreviewUrl:"https://cdn.yestool.ai/public/example/nanobanana/demo04/preview01.webp",inputImages:["https://cdn.yestool.ai/public/example/nanobanana/demo04/input01.webp"],prompt:"Transform into comic style."},{coverUrl:"https://cdn.yestool.ai/public/example/nanobanana/demo05/preview01.webp",imagePreviewUrl:"https://cdn.yestool.ai/public/example/nanobanana/demo05/preview01.webp",inputImages:["https://cdn.yestool.ai/public/example/nanobanana/demo05/input01.webp"],prompt:"A woman stands in front of the Disney castle."},{coverUrl:"https://cdn.yestool.ai/public/example/nanobanana/demo06/preview01.webp",imagePreviewUrl:"https://cdn.yestool.ai/public/example/nanobanana/demo06/preview01.webp",inputImages:["https://cdn.yestool.ai/public/example/nanobanana/demo06/input01.webp"],prompt:"Generate a 3\xd73 grid of this personâs headshots, each with a different hairstyle."},{coverUrl:"https://cdn.yestool.ai/public/example/nanobanana/demo07/preview01.webp",imagePreviewUrl:"https://cdn.yestool.ai/public/example/nanobanana/demo07/preview01.webp",inputImages:["https://cdn.yestool.ai/public/example/nanobanana/demo07/input01.webp"],prompt:"Generate a photo of a girl cosplaying the character from this illustration, set at Comiket."},{coverUrl:"https://cdn.yestool.ai/public/example/nanobanana/demo08/preview01.webp",imagePreviewUrl:"https://cdn.yestool.ai/public/example/nanobanana/demo08/preview01.webp",inputImages:["https://cdn.yestool.ai/public/example/nanobanana/demo08/input01.webp","https://cdn.yestool.ai/public/example/nanobanana/demo08/input02.webp"],prompt:"Select the person from Image 1 and dress them in all the outfits and accessories from Image 2. Capture a series of realistic OOTD-style photos outdoors, using natural lighting, with a fashionable street-style aesthetic and clear full-body shots. Maintain the identity and poses of the person from Image 1, but present the complete clothing and accessories from Image 2 in a cohesive and stylish way."},{coverUrl:"https://cdn.yestool.ai/public/example/nanobanana/demo09/preview01.webp",imagePreviewUrl:"https://cdn.yestool.ai/public/example/nanobanana/demo09/preview01.webp",inputImages:["https://cdn.yestool.ai/public/example/nanobanana/demo09/in
1put01.webp","https://cdn.yestool.ai/public/example/nanobanana/demo09/input02.webp"],prompt:"Replace the person from Image 1 with the pose from Image 2, and shoot in a professional photography studio."},{coverUrl:"https://cdn.yestool.ai/public/example/nanobanana/demo10/preview01.webp",imagePreviewUrl:"https://cdn.yestool.ai/public/example/nanobanana/demo10/preview01.webp",inputImages:["https://cdn.yestool.ai/public/example/nanobanana/demo10/input01.webp"],prompt:"Crop the portrait headshot from the image and turn it into a 2-inch ID photo, with the following requirements:\n\n1. Blue background\n2. Professional business attire\n3. Facing forward\n4. Smiling"}]},v={modelName:"body-shake",examples:[{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/body-shake/demo01.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/body-shake/demo01.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/body-shake/demo01.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/body-shake/demo02.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/body-shake/demo02.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/body-shake/demo02.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/body-shake/demo03.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/body-shake/demo03.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/body-shake/demo03.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/body-shake/demo04.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/body-shake/demo04.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/body-shake/demo04.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/body-shake/demo05.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/body-shake/demo05.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/body-shake/demo05.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/body-shake/demo06.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/body-shake/demo06.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/body-shake/demo06.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/body-shake/demo07.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/body-shake/demo07.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/body-shake/demo07.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/body-shake/demo08.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/body-shake/demo08.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/body-shake/demo08.webp"]}]},w={modelName:"french-kiss",examples:[{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/french-kiss/demo01.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/french-kiss/demo01.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/french-kiss/demo01.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/french-kiss/demo02.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/french-kiss/demo02.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/french-kiss/demo02.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/french-kiss/demo03.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/french-kiss/demo03.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/french-kiss/demo03.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/french-kiss/demo04.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/french-kiss/demo04.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/french-kiss/demo04.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/french-kiss/demo05.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/french-kiss/demo05.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/french-kiss/demo05.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/french-kiss/demo06.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/french-kiss/demo06.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/french-kiss/demo06.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/french-kiss/demo07.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/french-kiss/demo07.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/french-kiss/demo07.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/french-kiss/demo08.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/french-kiss/demo08.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/french-kiss/demo08.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/french-kiss/demo09.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/french-kiss/demo09.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/french-kiss/demo09.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/french-kiss/demo10.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/french-kiss/demo10.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/french-kiss/demo10.webp"]}]},y={modelName:"hugging",examples:[{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/hugging/demo01.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/hugging/demo01.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/hugging/demo01.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/hugging/demo02.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/hugging/demo02.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/hugging/demo02.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/hugging/demo03.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/hugging/demo03.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/hugging/demo03.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/hugging/demo04.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/hugging/demo04.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/hugging/demo04.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/hugging/demo05.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/hugging/demo05.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/hugging/demo05.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/hugging/demo06.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/hugging/demo06.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/hugging/demo06.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/hugging/demo07.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/hugging/demo07.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/hugging/demo07.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/hugging/demo08.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/hugging/demo08.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/hugging/demo08.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/hugging/demo09.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/hugging/demo09.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/hugging/demo09.webp"]}]},j={modelName:"jiggle-up",examples:[{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/jiggle-up/demo01.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/jiggle-up/demo01.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/jiggle-up/demo01.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/jiggle-up/demo02.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/jiggle-up/demo02.
1webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/jiggle-up/demo02.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/jiggle-up/demo03.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/jiggle-up/demo03.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/jiggle-up/demo03.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/jiggle-up/demo04.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/jiggle-up/demo04.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/jiggle-up/demo04.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/jiggle-up/demo05.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/jiggle-up/demo05.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/jiggle-up/demo05.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/jiggle-up/demo06.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/jiggle-up/demo06.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/jiggle-up/demo06.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/jiggle-up/demo07.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/jiggle-up/demo07.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/jiggle-up/demo07.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/jiggle-up/demo08.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/jiggle-up/demo08.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/jiggle-up/demo08.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/jiggle-up/demo09.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/jiggle-up/demo09.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/jiggle-up/demo09.webp"]}]},k={modelName:"muscling",examples:[{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/muscling/demo01.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/muscling/demo01.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/muscling/demo01.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/muscling/demo02.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/muscling/demo02.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/muscling/demo02.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/muscling/demo03.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/muscling/demo03.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/muscling/demo03.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/muscling/demo04.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/muscling/demo04.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/muscling/demo04.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/muscling/demo05.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/muscling/demo05.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/muscling/demo05.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/muscling/demo06.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/muscling/demo06.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/muscling/demo06.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/muscling/demo07.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/muscling/demo07.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/muscling/demo07.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/muscling/demo08.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/muscling/demo08.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/muscling/demo08.webp"]}]},U={modelName:"pinch",examples:[{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/pinch/demo01.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/pinch/demo01.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/pinch/demo01.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/pinch/demo02.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/pinch/demo02.
1webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/pinch/demo02.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/pinch/demo03.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/pinch/demo03.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/pinch/demo03.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/pinch/demo04.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/pinch/demo04.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/pinch/demo04.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/pinch/demo05.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/pinch/demo05.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/pinch/demo05.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/pinch/demo06.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/pinch/demo06.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/pinch/demo06.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/pinch/demo07.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/pinch/demo07.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/pinch/demo07.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/pinch/demo08.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/pinch/demo08.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/pinch/demo08.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/pinch/demo09.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/pinch/demo09.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/pinch/demo09.webp"]}]},N={modelName:"sexy-me",examples:[{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/sexy-me/demo01.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/sexy-me/demo01.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/sexy-me/demo01.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/sexy-me/demo02.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/sexy-me/demo02.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/sexy-me/demo02.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/sexy-me/demo03.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/sexy-me/demo03.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/sexy-me/demo03.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/sexy-me/demo04.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/sexy-me/demo04.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/sexy-me/demo04.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/sexy-me/demo05.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/sexy-me/demo05.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/sexy-me/demo05.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/sexy-me/demo06.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/sexy-me/demo06.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/sexy-me/demo06.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/sexy-me/demo07.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/sexy-me/demo07.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/sexy-me/demo07.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/sexy-me/demo08.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/sexy-me/demo08.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/sexy-me/demo08.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/sexy-me/demo09.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/sexy-me/demo09.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/sexy-me/demo09.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/sexy-me/demo10.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/sexy-me/demo10.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/sexy-me/demo10.webp"]}]},I={modelName:"shake-dance",examples:[{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/shake-dance/demo01.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/shake-dance/demo01.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/shake-dance/demo01.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/shake-dance/demo02.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/shake-dance/demo02.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/shake-dance/demo02.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/shake-dance/demo03.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/shake-dance/demo03.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/shake-dance/demo03.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/shake-dance/demo04.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/shake-dance/demo04.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/shake-dance/demo04.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/shake-dance/demo05.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/shake-dance/demo05.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/shake-dance/demo05.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/shake-dance/demo06.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/shake-dance/demo06.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/shake-dance/demo06.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/shake-dance/demo07.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/shake-dance/demo07.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/shake-dance/demo07.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/shake-dance/demo08.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/shake-dance/demo08.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/shake-dance/demo08.webp"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/shake-dance/demo09.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/shake-dance/demo09.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/shake-dance/demo09.webp"]}]},P={modelName:"wan-animate",examples:[{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/animate/demo01/demo.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/animate/demo01/cover.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/animate/demo01/inputImage.webp"],inputVideos:["https://cdn.yestool.ai/public/example/videoeffect/animate/demo01/inputVideo.mp4"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/animate/demo05/demo.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/animate/demo05/cover.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/animate/demo05/inputImage.webp"],inputVideos:["https://cdn.yestool.ai/public/example/videoeffect/animate/demo05/inputVideo.mp4"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/animate/demo06/demo.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/animate/demo06/cover.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/animate/demo06/inputImage.webp"],inputVideos:["https://cdn.yestool.ai/public/example/videoeffect/animate/demo06/inputVideo.mp4"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/animate/demo02/demo.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/animate/demo02/cover.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/animate/demo02/inputImage.webp"],inputVideos:["https://cdn.yestool.ai/public/example/videoeffect/animate/demo02/inputVideo.mp4"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/animate/demo03/demo.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/animate/demo03/cover.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/animate/demo03/inputImage.webp"],inputVideos:["https://cdn.yestool.ai/public/example/videoeffect/animate/demo03/inputVideo.mp4"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/animate/demo04/demo.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/animate/demo04/cover.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/animate/demo04/inputImage.webp"],inputVideos:["https://cdn.yestool.ai/public/example/videoeffect/animate/demo04/inputVideo.mp4"]},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/videoeffect/animate/demo07/demo.mp4",coverUrl:"https://cdn.yestool.ai/public/example/videoeffect/animate/demo07/cover.webp",inputImages:["https://cdn.yestool.ai/public/example/videoeffect/animate/demo07/inputImage.webp"],inputVideos:["https://cdn.yestool.ai/public/example/videoeffect/animate/demo07/inputVideo.mp4"]}]},T={modelName:"sora",examples:[{videoPreviewUrl:"https://cdn.yestool.ai/public/example/sora/demo01/demo.mp4",coverUrl:"https://cdn.yestool.ai/public/example/sora/demo01/preview.webp",prompt:"a dalmatian deftly walks runs and hops his way through a complex obstacle course in burano italy"},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/sora/demo02/demo.mp4",coverUrl:"https://cdn.yestool.ai/public/example/sora/demo02/preview.webp",prompt:"a gymnast flips on a balance beam. cinematic"},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/sora/demo03/demo.mp4",coverUrl:"https://cdn.yestool.ai/public/example/sora/demo03/preview.webp",prompt:"skateboarder does a kickflip"},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/sora/demo04/demo.mp4",coverUrl:"https://cdn.yestool.ai/public/example/sora/demo04/preview.webp",prompt:"in the style of a japanese anime, the hero with white hair awakens his dormant powers. his body is enveloped in a blue and black fiery aura and markings grow to cover his face and body, a deep ancient power finally awakened..."},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/sora/demo05/demo.mp4",coverUrl:"https://cdn.yestool.ai/public/example/sora/demo05/preview.webp",prompt:"in the style of a studio ghibli anime, a boy and his dog run up a grassy sce
1nic mountain with gorgeous clouds, overlooking a village in the distant background"},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/sora/demo06/demo.mp4",coverUrl:"https://cdn.yestool.ai/public/example/sora/demo06/preview.webp",prompt:"a claymation conductor conducts a claymation orchestra"},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/sora/demo07/demo.mp4",coverUrl:"https://cdn.yestool.ai/public/example/sora/demo07/preview.webp",prompt:"Two mountain explorers in bright technical shells, ice crusted faces, eyes narrowed with urgency shout in the snow, one at a time"},{videoPreviewUrl:"https://cdn.yestool.ai/public/example/sora/demo08/demo.mp4",coverUrl:"https://cdn.yestool.ai/public/example/sora/demo08/preview.webp",prompt:"a guy does a backflip"}]},C={modelName:"nanobanana2",examples:[{coverUrl:"https://cdn.yestool.ai/public/example/m/banana2/other13.webp",imagePreviewUrl:"https://cdn.yestool.ai/public/example/m/banana2/other13.webp",inputImages:["https://cdn.yestool.ai/public/example/m/banana2/other15.webp"],prompt:"Translate the anime subject into cinematic photorealism. Natural skin texture, accurate facial anatomy, grounded proportions. High-dynamic-range lighting, shallow depth of field, filmic contrast. 35mm lens perspective, subtle grain, live-action production design, true-to-life color grading. Frame as a live-action movie still."},{coverUrl:"https://cdn.yestool.ai/public/example/m/banana2/other16.webp",imagePreviewUrl:"https://cdn.yestool.ai/public/example/m/banana2/other16.webp",inputImages:["https://cdn.yestool.ai/public/example/m/banana2/other18.webp"],prompt:"Become a figure style."},{coverUrl:"https://cdn.yestool.ai/public/example/m/banana2/other19.webp",imagePreviewUrl:"https://cdn.yestool.ai/public/example/m/banana2/other19.webp",inputImages:["https://cdn.yestool.ai/public/example/m/banana2/other21.webp"],prompt:"3D modeling design drawing of a room"},{coverUrl:"https://cdn.yestool.ai/public/example/m/banana2/other22.webp",imagePreviewUrl:"https://cdn.yestool.ai/public/example/m/banana2/other22.webp",prompt:"High-quality flat lay photography creating a DIY infographic that simply explains how solar energy works, arranged on a clean, light gray textured background. The visual story flows from left to right in clear steps: Content is based on this:https://wavespeed.ai/. Simple, clean black arrows are hand-drawn onto the background to guide the viewer's eye from the sun to the house, clearly marking the flow of energy. The overall mood is educational, modern, and easy to understand. The image is shot from a top-down, bird's-eye view with soft, even lighting that minimizes shadows and keeps the focus on the process. Format 16:9"},{coverUrl:"https://cdn.yestool.ai/public/example/m/banana2/other24.webp",imagePreviewUrl:"https://cdn.yestool.ai/public/example/m/banana2/other24.webp",prompt:"Candid behind-the-scenes photo from a high-budget live-action Naruto movie set. The actor playing Naruto (spiky blonde hair, dirty orange tactical jumpsuit) and the actor playing Sasuke (dark blue vest, Uchiha crest) are sitting on wooden apple boxes, laughing and eating takeout lunch boxes together. Naruto is holding a pair of chopsticks. Behind them is a massive green screen wall and a film crew member adjusting a light stand. Realistic lighting, unposed, 35mm film grain, high resolution."},{coverUrl:"https://cdn.yestool.ai/public/example/m/banana2/other26.webp",imagePreviewUrl:"https://cdn.yestool.ai/public/example/m/banana2/other26.webp",prompt:"On-set documentary photo of filming a flying sequence. The actor playing Levi Ackerman is hanging upside down mid-air, suspended by a complex wire rigging harness against a gigantic green screen wall. He looks bored and is talking to the director down below. His ODM gear looks heavy, metallic, and weathered, with gas tanks and spare blades. Thick cables are visible attached to his waist. Industrial film lighting."},{coverUrl:"https://cdn.yestool.ai/public/example/m/banana2/other28.webp",imagePreviewUrl:"https://cdn.yestool.ai/public/example/m/banana2/other28.webp",prompt:"Aerial cinematic shot, Solarpunk aesthetic. The ruins of a futuristic cyber-city are being reclaimed by nature. Massive ancient banyan trees are growing out of shattered glass skyscrapers, their roots wrapping around the steel beams. Waterfalls are cascading from broken penthouse windows into flooded streets below. Bioluminescent moss covers the concrete. Soft morning mist, volumetric sunbeams piercing through the canopy, vibrant greens and steel greys, masterpiece, 8k."}]},_={modelName:"nanobanana2",examples:[{coverUrl:"https://cdn.yestool.ai/public/example/m/banana2/other13.webp",imagePreviewUrl:"https://cdn.yestool.ai/public/example/m/banana2/other13.webp",inputImages:["https://cdn.yestool.ai/public/example/m/banana2/other15.webp"],prompt:"Translate the anime subject into cinematic photorealism. Natural skin texture, accurate facial anatomy, grounded proportions. High-dynamic-range lighting, shallow depth of field, filmic contrast. 35mm lens perspective, subtle grain, live-action production design, true-to-life color grading. Frame as a live-action movie still."},{coverUrl:"https://cdn.yestool.ai/public/example/m/banana2/other16.webp",imagePreviewUrl:"https://cdn.yestool.ai/public/example/m/banana2/other16.webp",inputImages:["https://cdn.yestool.ai/public/example/m/banana2/other18.webp"],prompt:"Become a figure style."},{coverUrl:"https://cdn.yestool.ai/public/example/m/banana2/other19.webp",imagePreviewUrl:"https://cdn.yestool.ai/public/example/m/banana2/other19.webp",inputImages:["https://cdn.yestool.ai/public/example/m/banana2/other21.webp"],prompt:"3D modeling design drawing of a room"},{coverUrl:"https://cdn.yestool.ai/public/example/m/banana2/other22.webp",imagePreviewUrl:"https://cdn.yestool.ai/public/example/m/banana2/other22.webp",prompt:"High-quality flat lay photography creating a DIY infographic that simply explains how solar energy works, arranged on a clean, light gray textured background. The visual story flows from left to right in clear steps: Content is based on this:https://wavespeed.ai/. Simple, clean black arrows are hand-drawn onto the background to guide the viewer's eye from the sun to the house, clearly marking the flow of energy. The overall mood is educational, modern, and easy to understand. The image is shot from a to
1p-down, bird's-eye view with soft, even lighting that minimizes shadows and keeps the focus on the process. Format 16:9"},{coverUrl:"https://cdn.yestool.ai/public/example/m/banana2/other24.webp",imagePreviewUrl:"https://cdn.yestool.ai/public/example/m/banana2/other24.webp",prompt:"Candid behind-the-scenes photo from a high-budget live-action Naruto movie set. The actor playing Naruto (spiky blonde hair, dirty orange tactical jumpsuit) and the actor playing Sasuke (dark blue vest, Uchiha crest) are sitting on wooden apple boxes, laughing and eating takeout lunch boxes together. Naruto is holding a pair of chopsticks. Behind them is a massive green screen wall and a film crew member adjusting a light stand. Realistic lighting, unposed, 35mm film grain, high resolution."},{coverUrl:"https://cdn.yestool.ai/public/example/m/banana2/other26.webp",imagePreviewUrl:"https://cdn.yestool.ai/public/example/m/banana2/other26.webp",prompt:"On-set documentary photo of filming a flying sequence. The actor playing Levi Ackerman is hanging upside down mid-air, suspended by a complex wire rigging harness against a gigantic green screen wall. He looks bored and is talking to the director down below. His ODM gear looks heavy, metallic, and weathered, with gas tanks and spare blades. Thick cables are visible attached to his waist. Industrial film lighting."},{coverUrl:"https://cdn.yestool.ai/public/example/m/banana2/other28.webp",imagePreviewUrl:"https://cdn.yestool.ai/public/example/m/banana2/other28.webp",prompt:"Aerial cinematic shot, Solarpunk aesthetic. The ruins of a futuristic cyber-city are being reclaimed by nature. Massive ancient banyan trees are growing out of shattered glass skyscrapers, their roots wrapping around the steel beams. Waterfalls are cascading from broken penthouse windows into flooded streets below. Bioluminescent moss covers the concrete. Soft morning mist, volumetric sunbeams piercing through the canopy, vibrant greens and steel greys, masterpiece, 8k."},{coverUrl:"https://cdn.yestool.ai/public/example/nanobanana/demo01/preview01.webp",imagePreviewUrl:"https://cdn.yestool.ai/public/example/nanobanana/demo01/preview01.webp",inputImages:["https://cdn.yestool.ai/public/example/nanobanana/demo01/input01.webp"],prompt:"Turn this photo into a characterfigure. Behind it, place a box withthe character's image printed on it,and a computer showing the Blendermodeling process on its screen. In frontof the box, add a round plastic basewith the character figure standing on it .set the scene indoors if possible."},{coverUrl:"https://cdn.yestool.ai/public/example/nanobanana/demo02/preview01.webp",imagePreviewUrl:"https://cdn.yestool.ai/public/example/nanobanana/demo02/preview01.webp",inputImages:["https://cdn.yestool.ai/public/example/nanobanana/demo02/input01.webp","https://cdn.yestool.ai/public/example/nanobanana/demo02/input02.webp"],prompt:"Create a high-end advertising shot, the man from the reference image drinking drink from the provided bottle image, cinematic lighting, dynamic energy, vibrant mood, ultra-realistic commercial photography style, 8k resolution, Nikon Z9, f/1.8, sharp focus, product-focused composition"},{coverUrl:"https://cdn.yestool.ai/public/example/nanobanana/demo03/preview01.webp",imagePreviewUrl:"https://cdn.yestool.ai/public/example/nanobanana/demo03/preview01.webp",inputImages:["https://cdn.yestool.ai/public/example/nanobanana/demo03/input01.webp"],prompt:"Restore and colorize old images."},{coverUrl:"https://cdn.yestool.ai/public/example/nanobanana/demo04/preview01.webp",imagePreviewUrl:"https://cdn.yestool.ai/public/example/nanobanana/demo04/preview01.webp",inputImages:["https://cdn.yestool.ai/public/example/nanobanana/demo04/input01.webp"],prompt:"Transform into comic style."},{coverUrl:"https://cdn.yestool.ai/public/example/nanobanana/demo05/preview01.webp",imagePreviewUrl:"https://cdn.yestool.ai/public/example/nanobanana/demo05/preview01.webp",inputImages:["https://cdn.yestool.ai/public/example/nanobanana/demo05/input01.webp"],prompt:"A woman stands in front of the Disney castle."},{coverUrl:"https://cdn.yestool.ai/public/example/nanobanana/demo06/preview01.webp",imagePreviewUrl:"https://cdn.yestool.ai/public/example/nanobanana/demo06/preview01.webp",inputImages:["https://cdn.yestool.ai/public/example/nanobanana/demo06/input01.webp"],prompt:"Generate a 3\xd73 grid of this personâs headshots, each with a different hairstyle."},{coverUrl:"https://cdn.yestool.ai/public/example/nanobanana/demo07/preview01.webp",imagePreviewUrl:"https://cdn.yestool.ai/public/example/nanobanana/demo07/preview01.webp",inputImages:["https://cdn.yestool.ai/public/example/nanobanana/demo07/input01.webp"],prompt:"Generate a photo of a girl cosplaying the character from this illustration, set at Comiket."}]},z={modelName:"seedance",examples:[{coverUrl:"https://cdn.yestool.ai/public/example/m/seedance/1-04-cover.webp",videoPreviewUrl:"https://cdn.yestool.ai/public/example/m/seedance/1-04.mp4",inputImages:[],prompt:"A skier skiing down the slope, kicking up large clouds of snow as they turn, gradually accelerating along the mountainside with smooth camera movement."},{coverUrl:"https://cdn.yestool.ai/public/example/m/seedance/1-05-cover.webp",videoPreviewUrl:"https://cdn.yestool.ai/public/example/m/seedance/1-05.mp4",inputImages:[],prompt:"Scene setting: A vast sci-fi hangar or docking bay overlooking a futuristic skyline - towering spires bathed in cold daylight. The floor is polished metal, reflecting subtle architectural details. The camera begins from deep within the shadow-covered hangar interior, positioned low and center, gazing outward. The camera slowly pu
1shes forward, gradually revealing more of the bright skyline framed by the open bay doors. As it advances, soft blue reflections shimmer and extend across the floor. The distant towering cityscape becomes increasingly clear - abstract, impossibly tall massive structures. The light on the skyline subtly changes, suggesting the beginning of some movement - perhaps something arriving, or about to depart."},{coverUrl:"https://cdn.yestool.ai/public/example/m/seedance/1-06-cover.webp",videoPreviewUrl:"https://cdn.yestool.ai/public/example/m/seedance/1-06.mp4",inputImages:[],prompt:"A model in an elegant black backless gown gracefully walks on a vibrant red runway. The lighting showcases the fluid movement of the fabric. Eyes from the audience follow the model, and the lights gradually dim at the end."},{coverUrl:"https://cdn.yestool.ai/public/example/m/seedance/2-04-cover.webp",videoPreviewUrl:"https://cdn.yestool.ai/public/example/m/seedance/2-04.mp4",inputImages:[],prompt:"The camera starts with a robot's footsteps advancing through ruins, cuts to a close-up of the head's optical lens scanning, then transitions to the city silhouette scan image from its perspective, finally freezing on wall graffiti reading 'HUMANITY?'."},{coverUrl:"https://cdn.yestool.ai/public/example/m/seedance/3-04-cover.webp",videoPreviewUrl:"https://cdn.yestool.ai/public/example/m/seedance/3-04.mp4",inputImages:[],prompt:"Realistic style, a glass staircase spiraling upward against a lavender sky. A barefoot dancer ascends step by step, with the camera rising alongside her."},{coverUrl:"https://cdn.yestool.ai/public/example/m/seedance/4-04-cover.webp",videoPreviewUrl:"https://cdn.yestool.ai/public/example/m/seedance/4-04.mp4",inputImages:[],prompt:"Scene setting: A man in warm clothing enjoys cheese fondue at a snowy campsite, with a dog gazing longingly at the melting cheese. The camera opens with a handheld close-up focused on the bubbling fondue pot, with stringy cheese slowly stretching under the heat source. As he picks up a piece of cheese-covered bread, the dog's ears droop with longing in its eyes. The camera then pulls back slightly to reveal the cozy camping environment: falling snow, surrounding trees, and a jeep parked in the background."}]},Z={modelName:"wan2_5",examples:[{coverUrl:"https://cdn.yestool.ai/public/example/m/wan25/afc0c0a0-9ab9-4f8c-8fbf-9b9e72804611.webp",videoPreviewUrl:"https://cdn.yestool.ai/public/example/m/wan25/e08c8172-b740-486f-a360-3ae96c2a3857.mp4",inputImages:[],prompt:"3D cartoon style, this is a surreal dream where everything is made of corn, with protagonists riding a corn train through giant corn cobs and kernels. The scene is bathed in warm golden light, enhancing its dreamlike quality. Characters wear rustic clothing and show expressions of wonder and curiosity as they navigate this peculiar world. The corn train moves smoothly with wheels made of perfectly shaped corn kernels, creating a whimsical and enchanting atmosphere."},{coverUrl:"https://cdn.yestool.ai/public/example/m/wan25/cfddf8d9-e116-4d91-8280-0f331be20aeb.webp",videoPreviewUrl:"https://cdn.yestool.ai/public/example/m/wan25/9556f72f-753f-49fb-9a0a-bcbfcdbb20ae.mp4",inputImages:[],prompt:"Backlit, medium shot, sunset, soft light, silhouette, centered composition, circular camera movement, following the character from behind to front view, showcasing a rugged cowboy gripping his gun holster, vigilantly surveying the desolate western ghost town. The cowboy wears weathered brown leather, a bullet belt around his waist, hat brim pulled low, his silhouette softly outlined by the setting sun. Behind him are dilapidated wooden buildings with broken windows, glass shards scattered on the ground, dust swirling in the wind. The camera slowly circles from behind to front, with light streaming from behind, creating strong dramatic contrast in warm tones that enhance the desolate atmosphere."},{coverUrl:"https://cdn.yestool.ai/public/example/m/wan25/83eb3e90-ef37-47a4-b737-141aad580b63.webp",videoPreviewUrl:"https://cdn.yestool.ai/public/example/m/wan25/05b10de8-c872-437d-9e
108-4b7176432ca5.mp4",inputImages:[],prompt:"Dimly lit indoor environment, detective sitting at desk opening a file folder, the moment he sees the document clearly, camera pushes in for close-up showing his pupils contracting 30%, expression becoming tense"},{coverUrl:"https://cdn.yestool.ai/public/example/m/wan25/fd4ccead-8c89-4bd9-a7af-ef9b96f652a6.webp",videoPreviewUrl:"https://cdn.yestool.ai/public/example/m/wan25/9b63609a-2a0d-4aa0-81ad-05481751d5ac.mp4",inputImages:[],prompt:"A young girl pushes open the door with a surprised expression on her face, seeing a completely unexpected scene."},{coverUrl:"https://cdn.yestool.ai/public/example/m/wan25/49967dcb-b1ff-46a5-a161-7041baaba26a.webp",videoPreviewUrl:"https://cdn.yestool.ai/public/example/m/wan25/7bc9f204-de4a-4c2c-97b3-b17608d34d25.mp4",inputImages:[],prompt:"A hand presses keys sequentially on a keyboard made of various cookies and candiesï¼. Each time a fingertip touches down, the corresponding cookie key slightly depresses then quickly springs backï¼producingâclick-clackãclick-clackâ soundsï¼that combine the crunchy texture of cookies with the sharp feedback of a mechanical keyboardãThe coffee surface ripples slightlyï¼and sunlight creates gentle dancing shadows on the desk and cupãThe coffee cupoccasionally makes very softâååâsoundsãFingers continue pressing different keys in fluid, steady rhythmã"},{coverUrl:"https://cdn.yestool.ai/public/example/m/wan25/b4009133-23fc-44c8-83bd-6346f85379e9.webp",videoPreviewUrl:"https://cdn.yestool.ai/public/example/m/wan25/b3c38bdc-601c-454d-b885-9ea40e274e26.mp4",inputImages:[],prompt:"Dusk, silhouette, mixed color tones, wide shot, firelight, establishing shot, high contrast. The video follows a runner traversing different terrains. Starting from the desert, the camera slowly pans right as the runner transitions to climbing mountain paths. The scene captures this solitary figure persisting through difficult terrain with steady steps, occasionally using hands to grip rocks for support. The background gradually changes from rolling sand dunes to steep rocky peaks, showcasing the journey's hardships. The runner remains centered in the frame with smooth camera movement and no dramatic changes."}]},L={modelName:"seedream4",examples:[{coverUrl:"https://cdn.yestool.ai/s/img/TB6R5FyGfi0vXQnfNQHOeqUV7fC2gCDY/ee460951-4f94-412c-8f19-f95d5d0edc4e.jpeg",imagePreviewUrl:"https://cdn.yestool.ai/s/img/TB6R5FyGfi0vXQnfNQHOeqUV7fC2gCDY/ee460951-4f94-412c-8f19-f95d5d0edc4e.jpeg",inputImages:[],prompt:"Generate a set of 4 consecutive illustrations, in a whimsical, fantasy art style, personifying the changing of seasons, depicting the gentle Autumn Spirit handing over a golden leaf to the sleeping Winter Spirit, who then awakens, blanketing the landscape in frost and snow, followed by the energetic Spring Spirit arriving to melt the ice with a touch, and finally the vibrant Summer Spirit laughing as they bring forth a bounty of flowers and sunshine."},{coverUrl:"https://cdn.yestool.ai/s/img/TB6R5FyGfi0vXQnfNQHOeqUV7fC2gCDY/5d0ae2cb-3cd2-4609-9bf5-dfdcd9119246.jpeg",imagePreviewUrl:"https://cdn.yestool.ai/s/img/TB6R5FyGfi0vXQnfNQHOeqUV7fC2gCDY/5d0ae2cb-3cd2-4609-9bf5-dfdcd9119246.jpeg",inputImages:["https://cdn.yestool.ai/public/example/nanobanana/demo08/input01.webp"],prompt:"Transform it into 3D pixel art."},{coverUrl:"https://cdn.yestool.ai/s/img/TB6R5FyGfi0vXQnfNQHOeqUV7fC2gCDY/f9580c31-250c-4e98-8ebb-0ae4dfd2026b.jpeg",imagePreviewUrl:"https://cdn.yestool.ai/s/img/TB6R5FyGfi0vXQnfNQHOeqUV7fC2gCDY/f9580c31-250c-4e98-8ebb-0ae4dfd2026b.jpeg",inputImages:["https://cdn.yestool.ai/public/example/nanobanana/demo08/input01.webp"],prompt:"Turn this photo into a clay-style image. Place it in a Polaroid photo with a hand holding the Polaroid paper."},{coverUrl:"https://cdn.yestool.ai/s/img/TB6R5FyGfi0vXQnfNQHOeqUV7fC2gCDY/9f0c23fa-d787-4de9-b3bf-b2103131d534.jpeg",imagePreviewUrl:"https://cdn.yestool.ai/s/img/TB6R5FyGfi0vXQnfNQHOeqUV7fC2gCDY/9f0c23fa-d787-4de9-b3bf-b2103131d534.jpeg",inputImages:[],prompt:"Generate a set of 6 consecutive illustrations, in a slapstick cartoon style, detailing a comical chain of events started by a cat chasing a mouse, showing the mouse darting under a table, the cat crashing into the table leg, which causes a vase of water to tip over, spilling on a sleeping dog, who then jumps up in surprise and runs through the house, leaving a trail of wet paw prints everywhere."},{coverUrl:"https://cdn.yestool.ai/s/img/TB6R5FyGfi0vXQnfNQHOeqUV7fC2gCDY/3dd8b2f9-be8e-4653-8fa4-0ea8ed7b8e43.jpeg",imagePreviewUrl:"https://cdn.yestool.ai/s/img/TB6R5FyGfi0vXQnfNQHOeqUV7fC2gCDY/3dd8b2f9-be8e-4653-8fa4-0ea8ed7b8e43.jpeg",inputImages:[],prompt:"Homepage UI design for a classic international chess game."},{coverUrl:"https://cdn.yestool.ai/public/example/m/seedream/output18.webp",imagePreviewUrl:"https://cdn.yestool.ai/public/example/m/seedream/output18.webp",inputImages:[],prompt:"Draw a timeline from the Qin Dynasty to the Qing Dynasty. Mark the Qin, Han, Tang, Song, Yuan, Ming, and Qing dynasties in a clear order. Each dynasty should be accompanied by a small icon, and the characteristics of each dynasty should be written in Chinese."}]};var S=a(93589),A=a(40291);function F(e){let{modelName:t,showBottomCarousel:a=!0,examplesObj:o,showIsCreate:F=!0}=e,{user:M,setShowSignModal:D}=(0,n.b)(),E=(0,r.useTranslations)();(0,c.useRouter)();let R=(0,c.useParams)(),[H,V]=(0,b.Z)({loop:!0,dragFree:!0,align:"start",slidesToScroll:"auto"}),[B,q]=(0,l.useState)(0),[W,O]=(0,l.useState)(""),[Q,G]=(0,l.useState)(!1),Y={"ai-music-video":g,veo3:x,"french-kiss":w,hugging:y,"jiggle-up":j,"body-shake":v,muscling:k,"sexy-me":N,pinch:U,"shake-dance":I,"wan-animate":P,sora2:T,"text-to-image":_,"
1image-to-image":_,"text-to-video":T,"image-to-video":T,"nano-banana":f,nanobanana2:C,"nano-banana-pro":C,seedance:z,hailuo:T,wan2_5:Z,klingv2_5:T,fluxKontext:C,"seedream-v4":L,"qwen-image":_,"gpt-image-2":_,"gpt-image-2-5-flare":_,"gpt-image-2-5-sunburst":_},J=(0,l.useRef)([]),X=(0,l.useMemo)(()=>{var e;let a=[];return((null==o?void 0:o.examples)&&o.examples.length>0?a=o.examples:t&&(null===(e=Y[t])||void 0===e?void 0:e.examples)&&(a=Y[t].examples),a.length>0)?(J.current=a,a):J.current},[o,t]),[K,$]=(0,l.useState)(!1),ee=(0,l.useRef)([]);(0,l.useEffect)(()=>{X.length>0&&X!==ee.current&&(q(0),O(""),G(!1),$(!1),ee.current=X)},[X]),(0,l.useEffect)(()=>{if(X.length>0&&0===B&&!W&&!K){let e=X[0];e.videoPreviewUrl?(O(e.videoPreviewUrl),G(!0),$(!0)):e.imagePreviewUrl&&(O(e.imagePreviewUrl),G(!1),$(!0))}},[X,B,W,K]);let et=(0,l.useCallback)(()=>{V&&V.scrollPrev()},[V]),ea=(0,l.useCallback)(()=>{V&&V.scrollNext()},[V]),ei=e=>{q(e);let t=X[e];t.videoPreviewUrl?(O(t.videoPreviewUrl),G(!0)):t.imagePreviewUrl&&(O(t.imagePreviewUrl),G(!1)),K||$(!0)},eo=(e,t)=>{e.stopPropagation();let a=X[t];S.Z.emit("setPanelArgumentsEvent",{data:a})},es=()=>{ei(0===B?X.length-1:B-1)},el=()=>{ei(B===X.length-1?0:B+1)};return(0,i.jsxs)("div",{className:"jsx-4e24c9d929aa54e6 h-full grid grid-rows-[1fr_auto] text-white w-full",children:[(0,i.jsx)("h2",{className:"jsx-4e24c9d929aa54e6 text-xl font-bold opacity-0 absolute top-0 left-0 overflow-hidden",children:E("public.example")}),(0,i.jsx)(s(),{id:"4e24c9d929aa54e6",children:".embla.jsx-4e24c9d929aa54e6{overflow:hidden}.embla__container.jsx-4e24c9d929aa54e6{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}.embla__slide.jsx-4e24c9d929aa54e6{-webkit-box-flex:0;-webkit-flex:0 0 40%;-moz-box-flex:0;-ms-flex:0 0 40%;flex:0 0 40%;min-width:0}@media(min-width:768px)and (max-width:1199.98px){.embla__slide.jsx-4e24c9d929aa54e6{-webkit-box-flex:0;-webkit-flex:0 0 38%;-moz-box-flex:0;-ms-flex:0 0 38%;flex:0 0 38%}}@media(min-width:1200px){.embla__slide.jsx-4e24c9d929aa54e6{-webkit-box-flex:0;-webkit-flex:0 0 28%;-moz-box-flex:0;-ms-flex:0 0 28%;flex:0 0 28%}}"}),(0,i.jsx)("div",{className:"jsx-4e24c9d929aa54e6 grid grid-cols-1 lg:grid-cols-[1fr_auto_1fr] gap-4 overflow-hidden w-full p-4",children:(()=>{var e,t,o,s,l;let n=(null===(e=X[B])||void 0===e?void 0:e.inputImages)||[],r=(null===(t=X[B])||void 0===t?void 0:t.inputVideos)||[],c=n.length>0||r.length>0;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"jsx-4e24c9d929aa54e6 flex flex-col gap-4 min-w-0",children:[c&&(0,i.jsxs)("div",{className:"jsx-4e24c9d929aa54e6 flex-1 overflow-hidden",children:[(0,i.jsxs)("h3",{className:"jsx-4e24c9d929aa54e6 text-sm sm:text-lg font-bold mb-2 sm:mb-3 text-white flex items-center gap-2 sm:gap-3",children:[(0,i.jsx)("div",{className:"jsx-4e24c9d929aa54e6 w-1 h-4 sm:h-6 bg-blue-500 rounded-full"}),E("public.input")]}),(0,i.jsx)("div",{className:"jsx-4e24c9d929aa54e6 grid grid-cols-2 sm:grid-cols-3 gap-2 sm:gap-3 h-full overflow-auto w-full",children:[...n.map((e,t)=>({type:"image",url:e,index:t})),...r.map((e,t)=>({type:"video",url:e,index:n.length+t}))].map(e=>(0,i.jsx)("div",{className:"jsx-4e24c9d929aa54e6 aspect-square rounded-lg sm:rounded-xl overflow-hidden bg-gray-700/50 border border-gray-600/30 hover:border-blue-500/50 transition-all duration-300 group w-full relative",children:"image"===e.type?(0,i.jsx)(h.default,{src:e.url,alt:"Input ".concat(e.index+1),className:"object-contain group-hover:scale-105 transition-transform duration-300",fill:!0,sizes:"(max-width: 640px) 50vw, (max-width: 768px) 33vw, 25vw",loading:"lazy",placeholder:"empty"}):(0,i.jsx)("video",{src:e.url,controls:!0,preload:"metadata",style:{width:"100%",height:"100%",objectFit:"contain"},className:"jsx-4e24c9d929aa54e6 w-full h-full object-contain group-hover:scale-105 transition-transform duration-300"})},"".concat(e.type,"-").concat(e.index)))})]}),(null===(o=X[B])||void 0===o?void 0:o.prompt)&&(0,i.jsxs)("div",{className:"jsx-4e24c9d929aa54e6 ",children:[(0,i.jsxs)("h3",{className:"jsx-4e24c9d929aa54e6 text-sm sm:text-lg font-bold mb-2 text-white flex items-center gap-2",children:[(0,i.jsx)("div",{className:"jsx-4e24c9d929aa54e6 w-1 h-4 sm:h-6 bg-green-500 rounded-full"}),E("public.prompt")]}),(0,i.jsx)("div",{className:"jsx-4e24c9d929aa54e6 p-2 bg-gray-800/50 border border-gray-600/30 rounded-lg sm:rounded-xl backdrop-blur-sm h-auto overflow-y-auto",children:(0,i.jsx)("p",{className:"jsx-4e24c9d929aa54e6 text-gray-200 leading-relaxed text-xs sm:text-sm",children:(null===(s=X[B])||void 0===s?void 0:s.prompt)||"
1No prompt available"})})]})]}),(0,i.jsx)("div",{className:"jsx-4e24c9d929aa54e6 flex items-center justify-center ",children:(0,i.jsx)("div",{className:"jsx-4e24c9d929aa54e6 text-blue-400/80",children:(0,i.jsx)(A.Z,{size:"extra-large",style:{fontSize:48},className:"rotate-90 lg:rotate-0 transition-transform"})})}),(0,i.jsxs)("div",{className:"jsx-4e24c9d929aa54e6 flex flex-col gap-4 min-w-0 min-h-0 mt-6 lg:mt-0 relative",children:[(0,i.jsxs)("h3",{className:"jsx-4e24c9d929aa54e6 text-sm sm:text-lg font-bold mb-2 sm:mb-3 text-white flex items-center gap-2 sm:gap-3",children:[(0,i.jsx)("div",{className:"jsx-4e24c9d929aa54e6 w-1 h-4 sm:h-6 bg-purple-500 rounded-full"}),E("public.output")]}),(0,i.jsxs)("div",{className:"jsx-4e24c9d929aa54e6 flex-1 rounded-lg sm:rounded-xl overflow-hidden bg-gray-800/30 border border-gray-600/30 flex items-center justify-center backdrop-blur-sm min-h-48 max-h-48 sm:min-h-64 sm:max-h-64 lg:min-h-80 lg:max-h-80 w-full relative",children:[W?(0,i.jsx)("div",{className:"jsx-4e24c9d929aa54e6 relative w-full h-full p-1 sm:p-2",children:Q?(0,i.jsx)("video",{src:W,controls:!0,poster:null===(l=X[B])||void 0===l?void 0:l.coverUrl,preload:"metadata",className:"jsx-4e24c9d929aa54e6 w-full h-full object-contain rounded-md sm:rounded-lg"},W):(0,i.jsx)(h.default,{src:W,alt:"Output Preview",className:"object-contain rounded-md sm:rounded-lg",fill:!0,sizes:"(max-width: 1024px) 100vw, 50vw",priority:0===B,placeholder:"empty",unoptimized:!1},W)}):(0,i.jsxs)("div",{className:"jsx-4e24c9d929aa54e6 text-center text-gray-400 p-2 sm:p-4",children:[(0,i.jsx)("svg",{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",className:"jsx-4e24c9d929aa54e6 w-12 h-12 sm:w-16 sm:h-16 mx-auto mb-2 sm:mb-4 opacity-50",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z",className:"jsx-4e24c9d929aa54e6"})}),(0,i.jsx)("p",{className:"jsx-4e24c9d929aa54e6 text-sm sm:text-lg",children:"Select an example below"})]}),!a&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("button",{onClick:es,className:"jsx-4e24c9d929aa54e6 absolute left-2 sm:left-4 top-1/2 -translate-y-1/2 z-30 w-10 h-10 sm:w-12 sm:h-12 bg-black/60 hover:bg-black/80 backdrop-blur-sm rounded-full flex items-center justify-center text-white transition-all duration-300 hover:scale-110 shadow-xl border border-gray-600/50",children:(0,i.jsx)(d.Z,{className:"w-5 h-5 sm:w-6 sm:h-6"})}),(0,i.jsx)("button",{onClick:el,className:"jsx-4e24c9d929aa54e6 absolute right-2 sm:right-4 top-1/2 -translate-y-1/2 z-30 w-10 h-10 sm:w-12 sm:h-12 bg-black/60 hover:bg-black/80 backdrop-blur-sm rounded-full flex items-center justify-center text-white transition-all duration-300 hover:scale-110 shadow-xl border border-gray-600/50",children:(0,i.jsx)(m.Z,{className:"w-5 h-5 sm:w-6 sm:h-6"})})]})]}),(0,i.jsx)("div",{className:"jsx-4e24c9d929aa54e6 absolute bottom-0 left-0 right-0 flex justify-center ",children:(0,i.jsx)(p.default,{href:"/".concat(null==R?void 0:R.locale,"/nano-banana-prompts"),className:"text-[#5b53ff] text-sm sm:text-base font-medium transition-all duration-300 border-b border-[#5b53ff] hover:opacity-80 pb-0.5",children:"More Prompts"})})]})]})})()}),a&&(0,i.jsx)("div",{className:"jsx-4e24c9d929aa54e6 flex-shrink-0 border-t border-gray-700/50",children:(0,i.jsx)("div",{className:"jsx-4e24c9d929aa54e6 py-3 sm:py-4",children:(0,i.jsxs)("div",{ref:H,className:"jsx-4e24c9d929aa54e6 embla relative",children:[(0,i.jsx)("div",{className:"jsx-4e24c9d929aa54e6 embla__container",children:X.map((e,t)=>(0,i.jsx)("div",{className:"jsx-4e24c9d929aa54e6 embla__slide",children:(0,i.jsx)("div",{className:"jsx-4e24c9d929aa54e6 px-2 py-2",children:(0,i.jsxs)("div",{onClick:()=>ei(t),className:"jsx-4e24c9d929aa54e6 "+"relative cursor-pointer group w-full h-32 sm:h-40 md:h-44 rounded-lg sm:rounded-xl overflow-hidden transition-all duration-300 border ".concat(B===t?"border-blue-500 ring-1 ring-blue-500 ring-offset-0 ring-offset-gray-900 shadow-xl sm:shadow-2xl shadow-blue-500/25 scale-105":"border-gray-600/50 hover:border-gray-500/50 hover:scale-102 shadow-lg shadow-black/20"),children:[(0,i.jsx)(h.default,{src:e.coverUrl,alt:"Example ".concat(t+1),className:"object-contain group-hover:scale-110 transition-transform duration-300",fill:!0,sizes:"(max-width: 768px) 40vw, (max-width: 1200px) 38vw, 28vw",priority:t>=Math.max(0,B-2)&&t<=Math.min(X.length-1,B+2),placeholder:"empty",unoptimized:!1},e.coverUrl),(0,i.jsx)("div",{className:"jsx-4e24c9d929aa54e6 absolute inset-0 bg-gradient-to-t from-black/30 via-trans
1parent to-transparent opacity-60"}),F&&B===t&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"jsx-4e24c9d929aa54e6 absolute inset-1 transition-all duration-300 rounded-lg sm:rounded-xl flex items-end justify-center pb-2 sm:pb-4",children:(0,i.jsxs)("button",{onClick:e=>eo(e,t),className:"jsx-4e24c9d929aa54e6 bg-gradient-to-r from-blue-500 to-purple-600 hover:from-blue-600 hover:to-purple-700 text-white text-xs sm:text-sm px-3 sm:px-4 py-1.5 sm:py-2 rounded-md sm:rounded-lg transition-all duration-300 flex items-center gap-1 sm:gap-2 shadow-2xl backdrop-blur-sm transform translate-y-2 group-hover:translate-y-0",children:[(0,i.jsx)(u.Z,{size:14,className:"sm:w-4 sm:h-4"}),(0,i.jsx)("span",{className:"jsx-4e24c9d929aa54e6 ",children:E("create")})]})}),(0,i.jsx)("div",{className:"jsx-4e24c9d929aa54e6 absolute top-1 right-1 w-5 h-5 sm:w-6 sm:h-6 bg-gradient-to-r from-blue-500 to-purple-600 rounded-full flex items-center justify-center shadow-xl sm:shadow-2xl shadow-blue-500/50 z-20",children:(0,i.jsx)("svg",{fill:"currentColor",viewBox:"0 0 20 20",className:"jsx-4e24c9d929aa54e6 w-3 h-3 text-white",children:(0,i.jsx)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd",className:"jsx-4e24c9d929aa54e6"})})})]})]})})},t))}),(0,i.jsx)("button",{onClick:et,className:"jsx-4e24c9d929aa54e6 absolute left-2 top-1/2 -translate-y-1/2 z-30 w-8 h-8 sm:w-10 sm:h-10 bg-black/50 hover:bg-black/70 backdrop-blur-sm rounded-full flex items-center justify-center text-white transition-all duration-300 hover:scale-110 shadow-lg",children:(0,i.jsx)(d.Z,{className:"w-4 h-4 sm:w-5 sm:h-5"})}),(0,i.jsx)("button",{onClick:ea,className:"jsx-4e24c9d929aa54e6 absolute right-2 top-1/2 -translate-y-1/2 z-30 w-8 h-8 sm:w-10 sm:h-10 bg-black/50 hover:bg-black/70 backdrop-blur-sm rounded-full flex items-center justify-center text-white transition-all duration-300 hover:scale-110 shadow-lg",children:(0,i.jsx)(m.Z,{className:"w-4 h-4 sm:w-5 sm:h-5"})})]})})})]})}},39197:function(e,t,a){a.d(t,{Z:function(){return c}});var i=a(76149),o=a(30294),s=a(89178),l=a(84261),n=a(92553),r=a(99883);function c(){let[e,t]=(0,o.useState)(!1);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("button",{onClick:()=>{t(!0)},className:"btn btn-soft btn-xs gap-1 border-none border-0",children:[(0,i.jsx)(l.Z,{size:20}),(0,i.jsx)("span",{className:"text-sky-100",children:"Earn Credits"})]}),(0,i.jsx)(s.u_,{title:null,visible:e,onCancel:()=>{t(!1)},footer:null,width:"90%",centered:!0,bodyStyle:{maxHeight:"80vh",overflow:"auto"},children:(0,i.jsx)("div",{className:"relative rounded-lg w-full",children:(0,i.jsxs)("div",{className:"rounded-lg max-w-2xl w-full mx-auto",children:[(0,i.jsxs)("div",{className:"relative text-center mb-8",children:[(0,i.jsx)("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-4 rounded-full bg-gradient-to-br from-yellow-400 to-orange-500 shadow-lg ",children:(0,i.jsx)(l.Z,{size:32,className:"text-white"})}),(0,i.jsx)("h2",{className:"text-2xl font-bold text-white mb-2",children:"Share to Earn Credits"}),(0,i.jsx)("p",{className:"text-gray-300 text-sm leading-relaxed max-w-md mx-auto",children:"You can earn credits when other users like your shared content for the first time."})]}),(0,i.jsx)("div",{className:"mx-auto max-w-xl",children:(0,i.jsxs)("div",{className:"rounded-xl border border-gray-700/50 ",children:[(0,i.jsx)("h3",{className:"text-lg font-semibold text-white mb-4 flex items-center gap-2 justify-center",children:"How it works:"}),(0,i.jsxs)("div",{className:"space-y-4",children:[(0,i.jsxs)("div",{className:"flex gap-4 items-start",children:[(0,i.jsx)("div",{className:"flex-shrink-0 w-8 h-8 rounded-full flex items-center justify-center shadow-lg ",children:(0,i.jsx)(n.Z,{size:16,className:"text-white"})}),(0,i.jsx)("div",{className:"flex-1",children:(0,i.jsxs)("p",{className:"text-gray-200 text-sm leading-relaxed",children:["Each"," ",(0,i.jsx)("span",{className:"font-semibold text-blue-400",children:"first-time like"})," ","from a user earns you credits"]})})]}),(0,i.jsxs)("div",{className:"flex gap-4 items-start",children:[(0,i.jsx)("div",{className:"flex-shrink-0 w-8 h-8 rounded-full flex items-center justify-center shadow-lg ",children:(0,i.jsx)(r.Z,{size:16,className:"text-white"})}),(0,i.jsx)("div",{className:"flex-1",children:(0,i.jsxs)("p",{className:"text-gray-200 text-sm leading-relaxed",children:[(0,i.jsx)("span",{className:"font-semibold text-purple-400",children:"No channel restrictions"})," ","â likes from in-app or external shares both count"]})})]}),(0,i.jsx)("div",{className:"flex gap-4 items-start",children:(0,i.jsx)("div",{className:"flex-1",children:(0,i.jsxs)("p",{className:"text-gray-200 text-sm leading-relaxed",children:["Click ",(0,i.jsx)("span",{className:"font-semibold ",children:"Share"})," to spread your content and get more likes"]}
1)})})]})]})}),(0,i.jsx)("div",{className:"mt-6 flex justify-center w-full",children:(0,i.jsx)("div",{className:"bg-gradient-to-r from-purple-600 to-pink-600 text-white px-6 py-3 rounded-lg font-semibold text-sm shadow-lg text-center",children:"Create more. Share more. Earn more credits."})})]})})})]})}},7633:function(e,t,a){a.d(t,{d:function(){return r},z:function(){return c}});var i=a(76149),o=a(30294),s=a(76788),l=a(53117),n=a(41813);let r=(0,l.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),c=o.forwardRef((e,t)=>{let{className:a,variant:o,size:l,asChild:c=!1,...p}=e,d=c?s.g7:"button";return(0,i.jsx)(d,{className:(0,n.cn)(r({variant:o,size:l,className:a})),ref:t,...p})});c.displayName="Button"},29582:function(e,t,a){a.d(t,{D:function(){return r}});var i=a(76149),o=a(52594),s=a(30294);a(7633);let l=(0,s.createContext)({}),n=(0,s.forwardRef)((e,t)=>{let{options:a,globalOptions:n={resize:!0,useWorker:!0},manualstart:r=!1,children:c,...p}=e,d=(0,s.useRef)(null),m=(0,s.useCallback)(e=>{null!==e?d.current||(d.current=o.Z.create(e,{...n,resize:!0})):d.current&&(d.current.reset(),d.current=null)},[n]),u=(0,s.useCallback)(async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{var t;await (null===(t=d.current)||void 0===t?void 0:t.call(d,{...a,...e}))}catch(e){console.error("Confetti error:",e)}},[a]),h=(0,s.useMemo)(()=>({fire:u}),[u]);return(0,s.useImperativeHandle)(t,()=>h,[h]),(0,s.useEffect)(()=>{r||(async()=>{try{await u()}catch(e){console.error("Confetti effect error:",e)}})()},[r,u]),(0,i.jsxs)(l.Provider,{value:h,children:[(0,i.jsx)("canvas",{ref:m,...p}),c]})});n.displayName="Confetti";let r=n}}]);
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.