PageSourceSearch

https://zopia.ai/_next/static/chunks/8701-a3304022a494b503.js

js zopia.ai collected 2026-10-05 13:21:12 UTC 29,564 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4a287958-f54a-4c17-8d48-f0843be7912b",e._sentryDebugIdIdentifier="sentry-dbid-4a287958-f54a-4c17-8d48-f0843be7912b")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8701],{68701:function(e,t,r){r.r(t),r.d(t,{__N_SSG:function(){return z},default:function(){return B}});var a=r(85893),s=r(67294),n=r(9008),i=r.n(n),o=r(98826),l=r(7210),d=r(11163),c=r(33299),u=r(37871),p=r(57854),m=r(31784),h=r(62755),x=r(24344),g=r(82166),b=r(64712),f=r(79821),v=r(4844),F=r(36316),w=r(58058),j=r(57216),y=r(58918),N=r(7770),C=r(15319),k=r(10176),_=r(20062),S=r(37252),T=r(99288),I=r(20060),L=r(86504),M=r(47276),O=r(22271),P=r(81110),E=r(8396),A=r(32502);function q(e){var t;let{example:r,t:n,locale:i,onSelectVideo:o,onUsePrompt:l}=e,d=(0,s.useRef)(null);return(0,a.jsxs)(w.Zb,{className:"group h-full overflow-hidden rounded-none border border-white/[0.06] bg-gradient-to-br from-white/[0.08] via-white/[0.03] to-transparent backdrop-blur-sm transition-all duration-500 hover:border-[#FFFF9C]/30 hover:shadow-[0_0_40px_-10px_rgba(255,255,156,0.15)] hover:-translate-y-1.5 flex flex-col",children:[(0,a.jsxs)("div",{className:"relative aspect-video w-full overflow-hidden cursor-pointer flex-shrink-0",onMouseEnter:()=>{var e;return null===(e=d.current)||void 0===e?void 0:e.play()},onMouseLeave:()=>{var e;null===(e=d.current)||void 0===e||e.pause(),d.current&&(d.current.currentTime=0)},onClick:e=>{var t;e.stopPropagation(),o((null===(t=r.thumbnail)||void 0===t?void 0:t.url)||null)},children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/40 via-transparent to-transparent z-10 opacity-0 group-hover:opacity-100 transition-opacity duration-300"}),(null===(t=r.thumbnail)||void 0===t?void 0:t.url)?(0,a.jsx)("video",{ref:d,src:r.thumbnail.url,"aria-label":"Seedance 2.0 example: ".concat((0,h.N)(r.prompt,i).slice(0,100)),className:"h-full w-full object-cover transition-transform duration-700 group-hover:scale-105",muted:!0,playsInline:!0,loop:!0,preload:"metadata"}):(0,a.jsx)("div",{className:"flex h-full w-full items-center justify-center bg-gradient-to-br from-white/[0.03] to-transparent",children:(0,a.jsx)("div",{className:"w-12 h-12 border border-white/10 flex items-center justify-center",children:(0,a.jsx)("div",{className:"w-0 h-0 border-t-[5px] border-t-transparent border-l-[8px] border-l-white/30 border-b-[5px] border-b-transparent ml-0.5"})})}),(0,a.jsx)("div",{className:"absolute top-0 left-0 right-0 h-px bg-gradient-to-r from-transparent via-[#FFFF9C]/30 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-500"})]}),(0,a.jsxs)(w.aY,{className:"p-5 flex flex-col flex-grow",children:[(0,a.jsxs)("p",{className:"text-base leading-relaxed text-white/80 line-clamp-3 group-hover:text-white transition-colors",children:[(0,a.jsxs)("span",{className:"text-white/50",children:[n("seedance:card.prompt"),": "]}),(0,h.N)(r.prompt,i)]}),(0,a.jsx)("div",{className:"flex-grow min-h-4"}),(0,a.jsxs)("div",{className:"flex items-center justify-between pt-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[r.original_url&&(0,a.jsx)("a",{href:r.original_url,target:"_blank",rel:"noopener noreferrer",className:"group/source flex items-center justify-center w-7 h-7 border border-white/[0.08] bg-white/[0.03] text-white/70 transition-all duration-200 hover:bg-[#FFFF9C]/10 hover:border-[#FFFF9C]/30 hover:text-[#FFFF9C]",onClick:e=>e.stopPropagation(),title:n("seedance:card.viewSource"),children:(0,a.jsx)(v.Z,{className:"w-3.5 h-3.5"})}),(0,a.jsx)(j.k,{prompt:r.prompt,locale:i})]}),(0,a.jsxs)("button",{className:"group/btn flex items-center gap-1.5 border border-white/[0.08] bg-white/[0.03] px-3 py-1.5 text-[11px] font-medium text-white/70 transition-all duration-200 hover:bg-[#FFFF9C]/10 hover:border-[#FFFF9C]/30 hover:text-[#FFFF9C]",onClick:e=>{e.stopPropagation(),l(r,i)},children:[(0,a.jsx)("span",{children:n("seedance:card.usePrompt")}),(0,a.jsx)("svg",{className:"w-3 h-3 transition-transform duration-200 group-hover/btn:translate-x-0.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]})]})]})}function R(e){let{item:t,t:r,onUsePrompt:n,onDelete:i,onToggleFavorite:o,onSelectVideo:l}
1=e,[d,c]=(0,s.useState)(!1),u=((e,t)=>{switch(e){case"pending":return{label:r("seedance:history.status.pending"),className:"bg-white/[0.08] text-white/60 border-white/[0.1]"};case"queued":return{label:r("seedance:history.status.queued",{position:t||1}),className:"bg-[#FFFF9C]/10 text-[#FFFF9C] border-[#FFFF9C]/30"};case"generating":return{label:r("seedance:history.status.generating"),className:"bg-[#FFFF9C]/20 text-[#FFFF9C] border-[#FFFF9C]/40"};case"completed":return{label:r("seedance:history.status.completed"),className:"bg-[#FFFF9C]/15 text-[#FFFF9C] border-[#FFFF9C]/30"};case"failed":return{label:r("seedance:history.status.failed"),className:"bg-white/[0.08] text-white/50 border-white/[0.1]"};default:return{label:r("seedance:history.status.unknown"),className:"bg-white/[0.08] text-white/50 border-white/[0.1]"}}})(t.status,t.queuePosition),p="completed"===t.status&&t.resultUrl,m=(0,s.useRef)(null);return(0,a.jsxs)(w.Zb,{className:"group h-full overflow-hidden rounded-none border border-white/[0.06] bg-gradient-to-br from-white/[0.08] via-white/[0.03] to-transparent backdrop-blur-sm transition-all duration-500 hover:border-[#FFFF9C]/30 hover:shadow-[0_0_40px_-10px_rgba(255,255,156,0.15)] hover:-translate-y-1.5 flex flex-col",children:[(0,a.jsxs)("div",{className:"relative aspect-video w-full overflow-hidden flex-shrink-0 bg-gradient-to-br from-white/[0.03] to-transparent ".concat(p?"cursor-pointer":""),onMouseEnter:()=>{var e;return p&&(null===(e=m.current)||void 0===e?void 0:e.play())},onMouseLeave:()=>{p&&m.current&&(m.current.pause(),m.current.currentTime=0)},onClick:e=>{p&&(e.stopPropagation(),l(t.resultUrl||null))},children:[p?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/40 via-transparent to-transparent z-10 opacity-0 group-hover:opacity-100 transition-opacity duration-300"}),(0,a.jsx)("video",{ref:m,src:t.resultUrl,"aria-label":"Seedance 2.0 generated video: ".concat(t.prompt.slice(0,100)),className:"h-full w-full object-cover transition-transform duration-700 group-hover:scale-105",muted:!0,playsInline:!0,loop:!0,preload:"metadata"})]}):"failed"===t.status?(0,a.jsx)(f.Z,{error:t.error}):(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"absolute inset-0 flex flex-col items-center justify-center bg-black/20 gap-2",children:["queued"===t.status&&(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[#FFFF9C] animate-pulse"}),(0,a.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[#FFFF9C] animate-pulse [animation-delay:0.2s]"}),(0,a.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[#FFFF9C] animate-pulse [animation-delay:0.4s]"})]}),"generating"===t.status&&(0,a.jsx)(F.Z,{className:"w-6 h-6 text-[#FFFF9C] animate-spin"}),(0,a.jsx)("span",{className:"text-xs text-[#FFFF9C]/80",children:u.label})]})}),(0,a.jsx)("div",{className:"absolute top-0 left-0 right-0 h-px bg-gradient-to-r from-transparent via-[#FFFF9C]/30 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-500"})]}),(0,a.jsxs)(w.aY,{className:"p-5 flex flex-col flex-grow",children:[(0,a.jsxs)("p",{className:"text-base leading-relaxed text-white/80 line-clamp-3 group-hover:text-white transition-colors",children:[(0,a.jsxs)("span",{className:"text-white/50",children:[r("seedance:card.prompt"),": "]}),t.prompt]}),(0,a.jsxs)("div",{className:"mt-3 flex flex-wrap gap-2",children:[(0,a.jsx)("span",{className:"text-[10px] text-white/40 px-2 py-0.5 bg-white/[0.05] border border-white/[0.08]",children:t.videoModel.includes("seedance")?"Seedance":"Wan"}),(0,a.jsx)("span",{className:"text-[10px] text-white/40 px-2 py-0.5 bg-white/[0.05] border border-white/[0.08]",children:t.aspectRatio}),(0,a.jsxs)("span",{className:"text-[10px] text-white/40 px-2 py-0.5 bg-white/[0.05] border border-white/[0.08]",children:[t.duration,"s"]}),(0,a.jsx)("span",{className:"text-[10px] text-white/40 px-2 py-0.5 bg-white/[0.05] border border-white/[0.08]",children:t.resolution})]}),(0,a.jsx)("div",{className:"flex-grow min-h-4"}),(0,a.jsxs)("div",{className:"flex items-center justify-between pt-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("button",{className:"p-1.5 transition-all duration-200 border ".concat(t.isFavorite?"bg-[#FFFF9C]/20 border-[#FFFF9C]/50 text-[#FFFF9C]":"bg-white/[0.03] border-white/[0.08] text-white/40 hover:text-[#FFFF9C] hover:border-[#FFFF9C]/30"),onClick:e=>{e.stopPropagation(),o(t.id)}
1,title:t.isFavorite?r("seedance:history.unfavorite"):r("seedance:history.favorite"),children:(0,a.jsx)("svg",{className:"w-3.5 h-3.5",fill:t.isFavorite?"currentColor":"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"})})}),(0,a.jsxs)(k.J2,{open:d,onOpenChange:c,children:[(0,a.jsx)(k.xo,{asChild:!0,children:(0,a.jsx)("button",{className:"p-1.5 bg-white/[0.03] border border-white/[0.08] text-white/40 transition-all duration-200 hover:text-white/70 hover:border-white/20",onClick:e=>e.stopPropagation(),title:r("seedance:history.delete"),children:(0,a.jsx)("svg",{className:"w-3.5 h-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})})})}),(0,a.jsxs)(k.yk,{className:"w-56 p-3 bg-[#1f1f1f] border border-white/[0.08] rounded-lg shadow-xl",side:"top",align:"center",sideOffset:8,onClick:e=>e.stopPropagation(),children:[(0,a.jsx)("p",{className:"text-[12px] text-white/70 mb-3",children:r("seedance:history.deleteConfirm")}),(0,a.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[(0,a.jsx)("button",{onClick:()=>c(!1),className:"px-3 py-1.5 text-[11px] font-medium text-white/50 hover:text-white/70 hover:bg-white/[0.06] rounded transition-all duration-200",children:r("seedance:common.cancel")}),(0,a.jsx)("button",{onClick:()=>{i(t.id),c(!1)},className:"px-3 py-1.5 text-[11px] font-medium bg-red-500/90 text-white hover:bg-red-500 rounded transition-all duration-200",children:r("seedance:common.confirm")})]})]})]})]}),(0,a.jsxs)("button",{className:"group/btn flex items-center gap-1.5 border border-white/[0.08] bg-white/[0.03] px-3 py-1.5 text-[11px] font-medium text-white/70 transition-all duration-200 hover:bg-[#FFFF9C]/10 hover:border-[#FFFF9C]/30 hover:text-[#FFFF9C]",onClick:e=>{e.stopPropagation(),n(t.prompt,t.mediaItems,t)},children:[(0,a.jsx)("span",{children:r("seedance:history.usePrompt")}),(0,a.jsx)("svg",{className:"w-3 h-3 transition-transform duration-200 group-hover/btn:translate-x-0.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]})]})]})}function Z(e){let{onUsePrompt:t,onSelectVideo:r,refreshKey:n,t:i}=e,[o,l]=(0,s.useState)([]),[d,c]=(0,s.useState)(!0),[u,p]=(0,s.useState)(!1);(0,s.useEffect)(()=>
1{l((0,I.rt)())},[n]);let m=e=>{(0,I.sl)(e),l((0,I.rt)())},h=e=>{(0,I.mN)(e),l(t=>t.map(t=>t.id===e?{...t,isFavorite:!t.isFavorite}:t))},x=[...o].sort((e,t)=>e.isFavorite&&!t.isFavorite?-1:!e.isFavorite&&t.isFavorite?1:new Date(t.createdAt).getTime()-new Date(e.createdAt).getTime());return 0===o.length?null:(0,a.jsxs)("section",{className:"relative mx-auto max-w-6xl px-6 pb-10",children:[(0,a.jsxs)("div",{className:"mb-6 flex items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)("div",{className:"h-px w-8 bg-gradient-to-r from-[#FFFF9C]/50 to-transparent"}),(0,a.jsx)("span",{className:"text-xs font-medium tracking-widest text-white/40 uppercase",children:i("seedance:history.title")}),(0,a.jsx)("span",{className:"px-2 py-0.5 text-[10px] bg-[#FFFF9C]/10 text-[#FFFF9C] border border-[#FFFF9C]/30",children:o.length})]}),(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsxs)("button",{onClick:()=>{p(!0)},className:"text-[11px] text-white/40 hover:text-white/70 transition-colors flex items-center gap-1",children:[(0,a.jsx)("svg",{className:"w-3 h-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})}),i("seedance:history.clear")]}),(0,a.jsx)("button",{onClick:()=>c(!d),className:"p-1.5 border border-white/[0.08] bg-white/[0.03] text-white/50 hover:text-white/80 hover:border-[#FFFF9C]/30 transition-all duration-200",children:(0,a.jsx)("svg",{className:"w-4 h-4 transition-transform duration-300 ".concat(d?"rotate-180":""),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})})})]})]}),(0,a.jsx)("div",{className:"grid gap-6 sm:grid-cols-2 lg:grid-cols-3 overflow-hidden transition-all duration-500 ".concat(d?"max-h-[2000px] opacity-100":"max-h-0 opacity-0"),children:x.map(e=>(0,a.jsx)(R,{item:e,t:i,onUsePrompt:t,onDelete:m,onToggleFavorite:h,onSelectVideo:r},e.id))}),(0,a.jsx)(C.Vq,{open:u,onOpenChange:p,children:(0,a.jsxs)(C.cZ,{className:"max-w-md bg-[#1f1f1f] border border-white/[0.08] rounded-xl p-0 overflow-hidden shadow-2xl",children:[(0,a.jsxs)("div",{className:"p-5 pb-3",children:[(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[(0,a.jsx)("div",{className:"flex-shrink-0 w-8 h-8 rounded-full bg-red-500/15 flex items-center justify-center",children:(0,a.jsx)("svg",{className:"w-4 h-4 text-red-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),(0,a.jsx)("div",{className:"flex-1 min-w-0",children:(0,a.jsx)("h3",{className:"text-[15px] font-medium text-white/90",children:i("seedance:history.clearConfirmTitle")})})]}),(0,a.jsx)("p",{className:"mt-3 text-[13px] text-white/50 leading-relaxed",children:i("seedance:history.clearConfirmMessage")})]}),(0,a.jsxs)("div",{className:"flex items-center justify-end gap-2 px-5 py-4 bg-white/[0.02]",children:[(0,a.jsx)("button",{onClick:()=>p(!1),className:"px-4 py-2 text-[13px] font-medium text-white/60 hover:text-white/80 hover:bg-white/[0.06] rounded-lg transition-all duration-200",children:i("seedance:common.cancel")}),(0,a.jsx)("button",{onClick:()=>{(0,I.lJ)(),l([]),p(!1),b.Am.success(i("seedance:history.clearSuccess"))},className:"px-4 py-2 text-[13px] font-medium bg-red-500/90 text-white hover:bg-red-500 rounded-lg transition-all duration-200 shadow-lg shadow-red-500/20",children:i("seedance:common.confirm")})]})]})})]})}var z=!0;function B(e){let{examples:t}=e,{t:r,i18n:n}=(0,u.$G)(),f=(0,d.useRouter)(),{status:v}=(0,c.useSession)(),F=n.language||f.locale||"en",{setBaseInfo:w}=(0,L.E)();(0,s.useEffect)(()=>{w("seedance","Seedance",M.Bm.PRIVATE,!0,!1)},[w]);
1let[j,k]=(0,s.useState)(null),[R,z]=(0,s.useState)({model_id:"generate_video_by_seedance_20",aspect_ratio:"16:9",duration:"5",resolution:"720p",prompt:"",generate_audio:!0}),B=(0,s.useRef)(null),W=(0,s.useRef)(0),U=(0,s.useRef)(null),V=(0,s.useMemo)(()=>t,[t]),[D,G]=(0,s.useState)(0);(0,s.useEffect)(()=>{let e=async()=>{let e=(0,I.rt)(),t=e.filter(e=>"pending"===e.status||"queued"===e.status||"generating"===e.status);if(0===t.length)return;let r=!1;await Promise.all(t.map(async e=>{if(e.taskId)try{var t,a;let s=new URL("/api/base/task/status",window.location.origin);s.searchParams.append("task_id",e.taskId);let n=await fetch(s.toString());if(!n.ok)return;let i=await n.json(),o=e.status;if("succeeded"===i.status?o="completed":"failed"===i.status?o="failed":(null===(t=i.queue_info)||void 0===t?void 0:t.position)?o="queued":"processing"===i.status&&(o="generating"),o!==e.status&&(r=!0,(0,I.Yr)(e.id,o,(null===(a=i.queue_info)||void 0===a?void 0:a.position)||void 0,i.error)),"completed"===o&&i.result_url&&!e.resultUrl){r=!0;let t=(0,I.rt)().map(t=>t.id===e.id?{...t,resultUrl:i.result_url,updatedAt:new Date().toISOString()}:t);localStorage.setItem("seedance_video_history",JSON.stringify(t))}}catch(e){console.error("Poll task status error:",e)}})),r&&G(e=>e+1)};e();let t=setInterval(e,3e3);return()=>{clearInterval(t)}},[D]);let H=(0,s.useCallback)(async e=>{let t=Date.now();if(t-W.current<3e3){b.Am.error(r("base:generation.rateLimitTooFrequent"));return}let a=JSON.stringify(e);if(U.current===a){let e=window.confirm(r("base:generation.sameParamsConfirm"));if(!e)return}W.current=t,U.current=a,z(e);let s="authenticated"===v;if(!s){b.Am.error("请先登录后再生成视频"),(0,c.signIn)();return}try{var n,i,o,l,d,u;let t;let a=T.bg[e.model_id],s=null!==(d=e.ref_assets)&&void 0!==d?d:[],c=null===(n=a.options)||void 0===n?void 0:n.inputFileFormat,p=null!==(u=null===(i=a.options)||void 0===i?void 0:i.supportImageInput)&&void 0!==u?u:0,m=s.filter(e=>{if(!c||0===c.length)return"image"===e.type&&p>0;let t=c.find(t=>"image"===e.type?t.startsWith("image/"):"video"===e.type?t.includes(".mp4")||t.includes(".mov"):"audio"===e.type&&(t.includes(".wav")||t.includes(".mp3")));return!!t}),h={...e,ref_assets:m.length>0?m:void 0,input_images:m.filter(e=>"image"===e.type).map(e=>e.url)},x=await fetch("/api/base/task",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({generation_params:h,from:"seo"})});if(!x.ok){let e=await x.json();throw Error(e.error||"提交失败")}let g=await x.json(),f="pending";g.queue_info&&(g.queue_info.position?(f="queued",t=g.queue_info.position):"processing"===g.queue_info.status&&(f="generating")),(0,I.SH)({prompt:(null===(o=e.prompt)||void 0===o?void 0:o.trim())||"",status:f,aspectRatio:e.aspect_ratio||"16:9",duration:parseInt(e.duration||"5"),resolution:e.resolution||"720p",videoModel:e.model_id,queuePosition:t,taskId:g.task_id,mediaItems:m.map(e=>({url:e.url,name:e.name,type:e.type}))}),b.Am.success(r("seedance:success.videoTaskSubmitted")),null===(l=B.current)||void 0===l||l.setPrompt("")}catch(e){console.error("Generate error:",e),b.Am.error(e instanceof Error?e.message:r("seedance:errors.submitFailed"))}},[v]),J=r("seedance:faqSection.items",{returnObjects:!0})||[],Y="".concat(m._O).concat((0,x.Vz)("/m/seedance/seedance-2-0","zh"===F||"ja"===F?F:"en")),$=Y.replace("".concat(m._O,"/m/seedance/seedance-2-0"),""),Q=(0,s.useMemo)(()=>{let e=r("seedance:hero.subtitleParts",{returnObjects:!0});return Array.isArray(e)?e:[]},[r]),K=(0,s.useMemo)(()=>{let e=(t||[]).map(e=>({example:e,media:(0,g.f)(e)})).filter(e=>!!e.media).slice(0,6);return 0===e.length?null:{"@context":"https://schema.org","@graph":e.map(e=>{let{example:t,media:r}=e,a=(0,h.N)(t.prompt,F),s="Seedance 2.0 example: ".concat(a.slice(0,80));return{"@type":"VideoObject",name:s,description:a,...r}})}},[t,F]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(i(),{children:[(0,o.$)({title:r("seedance:title"),description:r("seedance:description"),canonical:Y,openGraph:{url:Y,title:r("seedance:title"),description:r("seedance:description"),images:[{url:m.R9,width:m.oL,height:m.V5,alt:"Seedance 2.0 - AI Video Generator"}]}}),(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"SoftwareApplication",name:"Seedance 2.0",applicationCategory:"MultimediaApplication",operatingSystem:"Web",description:r("seedance:description"),url:Y,offers:{"@type":"Offer",price:"0",priceCurrency:"USD"},creator:{"@type":"Organization",name:"ByteDance"},isPartOf:{"@type":"WebSite",name:"Zopia",url:m._O}})}},"seedance-software-jsonld"),Array.isArray(J)&&J.length>0&&(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:J.map(e=>
1({"@type":"Question",name:e.q,acceptedAnswer:{"@type":"Answer",text:e.a}}))})}},"seedance-faq-jsonld"),K&&(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(K)}},"seedance-video-jsonld")]}),(0,a.jsx)(l.gR,{items:[{name:r("blog:home"),item:"".concat(m._O).concat($||"")},{name:"Seedance",item:Y}]}),(0,a.jsx)(y.Z,{variant:"authenticated"===v?"default":"landing"}),(0,a.jsx)(N.Z,{}),(0,a.jsxs)("main",{className:(0,p.cn)("relative min-h-[calc(100vh-64px)] text-white overflow-hidden","authenticated"!==v&&"pt-4"),style:{background:"radial-gradient(ellipse 120% 80% at 50% -10%, #16111f 0%, #0d0a13 38%, #07070a 78%)"},children:[(0,a.jsxs)("div",{className:"absolute inset-0 pointer-events-none",children:[(0,a.jsx)("div",{className:"absolute -top-[15%] -right-[10%] w-[55%] h-[55%] bg-gradient-radial from-[#FFFF9C]/20 via-[#FFFF9C]/5 to-transparent blur-3xl"}),(0,a.jsx)("div",{className:"absolute top-[18%] -left-[15%] w-[50%] h-[60%] bg-gradient-radial from-[#A78BFA]/16 via-[#7C3AED]/4 to-transparent blur-3xl"}),(0,a.jsx)("div",{className:"absolute -bottom-[20%] -right-[15%] w-[55%] h-[55%] bg-gradient-radial from-[#F472B6]/12 via-[#EC4899]/3 to-transparent blur-3xl"}),(0,a.jsx)("div",{className:"absolute -bottom-[30%] -left-[15%] w-[45%] h-[50%] bg-gradient-radial from-[#67E8F9]/8 via-[#06B6D4]/2 to-transparent blur-3xl"}),(0,a.jsx)("div",{className:"absolute top-[5%] left-1/2 -translate-x-1/2 w-[80%] h-[35%] bg-gradient-to-b from-white/[0.04] to-transparent blur-2xl"})]}),(0,a.jsx)("div",{className:"absolute inset-0 pointer-events-none opacity-[0.015]",style:{backgroundImage:"url(\"data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E\")"}}),(0,a.jsxs)("section",{className:"relative mx-auto max-w-6xl px-6 pt-16 pb-12",children:[(0,a.jsxs)("div",{className:"text-center space-y-6",children:[(0,a.jsxs)("div",{className:"flex items-center justify-center gap-4 mb-8",children:[(0,a.jsx)("div",{className:"h-px w-16 bg-gradient-to-r from-transparent via-[#FFFF9C]/50 to-[#FFFF9C]"}),(0,a.jsx)("div",{className:"w-2 h-2 rotate-45 bg-[#FFFF9C]/80"}),(0,a.jsx)("div",{className:"h-px w-16 bg-gradient-to-l from-transparent via-[#FFFF9C]/50 to-[#FFFF9C]"})]}),(0,a.jsx)("h1",{className:"cursor-default",style:{fontFamily:"var(--zp-font-display)",fontWeight:600,fontSize:"clamp(26px, 3.4vw, 42px)",letterSpacing:"-0.025em",lineHeight:1.12},children:(0,a.jsx)("span",{className:"relative inline-block text-[#FFFF9C]/85",onMouseMove:e=>{let t=e.currentTarget.getBoundingClientRect(),r=e.clientX-t.left,a=e.clientY-t.top;e.currentTarget.style.backgroundImage="radial-gradient(circle 100px at ".concat(r,"px ").concat(a,"px, #FFFFCC, #FFFF9C 40%, rgba(255, 255, 156, 0.8))"),e.currentTarget.style.webkitBackgroundClip="text",e.currentTarget.style.backgroundClip="text",e.currentTarget.style.color="transparent"},onMouseLeave:e=>{e.currentTarget.style.backgroundImage="none",e.currentTarget.style.webkitBackgroundClip="initial",e.currentTarget.style.backgroundClip="initial",e.currentTarget.style.color=""},children:r("seedance:hero.title")})}),Q.length>0?(0,a.jsx)("div",{className:"mx-auto flex flex-wrap items-center justify-center gap-x-3 gap-y-2",style:{fontFamily:"var(--zp-font-heading)",fontWeight:400,fontSize:"clamp(14px, 1.05vw, 17px)",lineHeight:1.5,color:"var(--zp-fg-2)",maxWidth:760},children:Q.map((e,t)=>(0,a.jsxs)(s.Fragment,{children:[(0,a.jsx)("span",{children:e}),t<Q.length-1&&(0,a.jsx)("span",{"aria-hidden":"true",style:{color:"#FFFF9C",opacity:.55,fontFamily:"var(--zp-font-mono)"},children:"\xb7"})]},t))}):(0,a.jsx)("p",{className:"mx-auto",style:{fontFamily:"var(--zp-font-heading)",fontWeight:300,fontSize:"clamp(13px, 1vw, 15px)",lineHeight:1.65,color:"var(--zp-fg-3)",maxWidth:760},children:r("seedance:hero.subtitle")})]}),(0,a.jsxs)("div",{id:"generator",className:"mt-10 relative scroll-mt-24",children:[(0,a.jsx)("div",{className:"absolute -inset-1 bg-gradient-to-r from-[#FFFF9C]/10 via-white/5 to-[#FFFF9C]/10 rounded-2xl blur-xl opacity-40"}),(0,a.jsx)("div",{className:"relative rounded-2xl p-[1px]",style:{background:"linear-gradient(135deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.05) 45%, rgba(255,255,255,0.18) 100%)",boxShadow:"0 12px 40px -16px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.02)"},children:(0,a.jsx)("div",{className:"rounded-2xl overflow-hidden [&_.bg-secondary]:!bg-transparent [&_.bg-secondary]:backdrop-blur-xl [&_.bg-secondary]:!border-0",style:{background:"linear-gradient(140deg, rgba(36,36,42,0.92) 0%, rgba(20,20,24,0.92) 55%, rgba(30,30,36,0.92) 100%)"},children:(0,a.jsx)(_.Z,{ref:B,handleGenerate:H,generationParams:R,setGenerationParams:z,previewType:"video"})})})]})]}),(0,a.jsx)(Z,{refreshKey:D,t:r,onUsePrompt:(e,t,r)=>{var a;let s={model_id:(null==r?void 0:r.videoModel)||"generate_video_by_seedance_20",prompt:e,aspect_ratio:(null==r?void 0:r.aspectRatio)||"16:9",duration:(null==r?void 0:null===(a=r.duration)||void 0===a?void 0:a.toString())||"5",resolution:(null==r?void 0:r.resolution)||"720p",generate_audio:!0,ref_assets:null==t?void 0:t.map(e=>({url:e.url,name:e.name||"",type:e.type,ref_type:S.Zr.GENERAL_REF}))};z(s)},onSelectVideo:e=>k(e)}),(0,a.jsxs)("section",{className:"relative mx-auto max-w-6xl px-6 pb-20",children:[(0,a.jsx)("div",{className:"mb-8 flex items-center justify-between",children:(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)("div",{className:"h-px w-8 bg-gradient-to-r from-[#FFFF9C]/50 to-transparent"}),(0,a.jsx)("span",{className:"text-xs font-medium tracking-widest text-white/40 uppercase",children:r("seedance:gallery.title")})]})}),(0,a.jsx)("div",{className:"mt-10 grid gap-6 sm:grid-cols-2 lg:grid-cols-3",children:V.map(e=>(0,a.jsx)(q,{example:e,t:r,locale:F,onSelectVideo:k,onUsePrompt:(e,t)=>
1{let r=(0,h.N)(e.prompt,t),a=e.media_items||[],s={model_id:e.model||"generate_video_by_seedance_20",prompt:r,aspect_ratio:"16:9",duration:"5",resolution:"720p",generate_audio:!0,ref_assets:a.map(e=>({url:e.url,name:e.name||"",type:e.type,ref_type:S.Zr.GENERAL_REF}))};z(s),setTimeout(()=>{var e;null===(e=B.current)||void 0===e||e.setPrompt(r)},150)}},e.id))})]})]}),(0,a.jsx)(P.Z,{title:r("seedance:comparison.title"),subtitle:r("seedance:comparison.subtitle"),ourLabel:r("seedance:comparison.ourLabel"),rows:r("seedance:comparison.rows",{returnObjects:!0})||[]}),(0,a.jsx)(O.Z,{whatIs:{title:r("seedance:whatIs.title"),body:r("seedance:whatIs.body")},features:{title:r("seedance:features.title"),subtitle:r("seedance:features.subtitle"),items:r("seedance:features.items",{returnObjects:!0})||[]},howToUse:{title:r("seedance:howToUse.title"),subtitle:r("seedance:howToUse.subtitle"),steps:r("seedance:howToUse.steps",{returnObjects:!0})||[]},capabilities:{title:r("seedance:capabilities.title"),items:r("seedance:capabilities.items",{returnObjects:!0})||[]},promptTips:{title:r("seedance:promptTips.title"),body:r("seedance:promptTips.body")},faq:{title:r("seedance:faqSection.title"),items:r("seedance:faqSection.items",{returnObjects:!0})||[]},finalCta:{title:r("seedance:finalCta.title"),subtitle:r("seedance:finalCta.subtitle"),button:r("seedance:finalCta.button"),href:"#generator"}}),(0,a.jsx)(E.Z,{title:r("seedance:specs.title"),subtitle:r("seedance:specs.subtitle",{defaultValue:""}),rows:r("seedance:specs.rows",{returnObjects:!0})||[]}),(0,a.jsx)(A.Z,{currentSlug:"seedance",title:r("seedance:relatedModels.title"),subtitle:r("seedance:relatedModels.subtitle",{defaultValue:""})}),(0,a.jsx)(C.Vq,{open:!!j,onOpenChange:()=>k(null),children:(0,a.jsxs)(C.cZ,{className:"max-w-5xl w-[90vw] p-0 bg-[#0a0a0a]/98 border border-white/[0.08] rounded-2xl overflow-hidden shadow-2xl",children:[(0,a.jsx)(C.$N,{className:"sr-only",children:r("seedance:modal.videoPreview")}),(0,a.jsx)("div",{className:"absolute -inset-px bg-gradient-to-r from-[#FFFF9C]/10 via-trans
1parent to-[#FFFF9C]/10 rounded-2xl pointer-events-none"}),(0,a.jsx)("div",{className:"absolute top-0 left-0 right-0 h-px bg-gradient-to-r from-transparent via-[#FFFF9C]/30 to-transparent"}),(0,a.jsx)("div",{className:"relative",children:j&&(0,a.jsx)("video",{src:j,"aria-label":"Seedance 2.0 video preview",className:"w-full max-h-[80vh] object-contain",controls:!0,autoPlay:!0,playsInline:!0})})]})})]})}B.noLayout=!0}}]);

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.