1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6168],{2093:(e,t,s)=>{"use strict";s.d(t,{$m:()=>d,As:()=>n,nD:()=>l,ub:()=>c});var i=s(51129);s(65133);var a=s(66552),r=s(22755),o=s(55730);function l(e){let{...t}=e;return(0,i.jsx)(a.bL,{"data-slot":"accordion",...t})}function n(e){let{className:t,...s}=e;return(0,i.jsx)(a.q7,{"data-slot":"accordion-item",className:(0,o.cn)("border-b last:border-b-0",t),...s})}function d(e){let{className:t,children:s,...l}=e;return(0,i.jsx)(a.Y9,{className:"flex",children:(0,i.jsxs)(a.l9,{"data-slot":"accordion-trigger",className:(0,o.cn)("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",t),...l,children:[s,(0,i.jsx)(r.A,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"})]})})}function c(e){let{className:t,children:s,...r}=e;return(0,i.jsx)(a.UC,{"data-slot":"accordion-content",className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...r,children:(0,i.jsx)("div",{className:(0,o.cn)("pt-0 pb-4",t),children:s})})}},2375:(e,t,s)=>{Promise.resolve().then(s.bind(s,11109)),Promise.resolve().then(s.bind(s,47375)),Promise.resolve().then(s.bind(s,63526)),Promise.resolve().then(s.bind(s,47934)),Promise.resolve().then(s.bind(s,38333)),Promise.resolve().then(s.bind(s,72518)),Promise.resolve().then(s.bind(s,46117)),Promise.resolve().then(s.bind(s,62496)),Promise.resolve().then(s.bind(s,25210))},8896:(e,t,s)=>{"use strict";s.d(t,{Nu:()=>n,kp:()=>a,nd:()=>l,pP:()=>r,y5:()=>o});let i="seed3d20_hero_prefill";function a(e){try{window.sessionStorage.setItem(i,JSON.stringify(e))}catch(e){console.warn("[hero-session-storage] ä¿å失败:",e)}}function r(){try{let e=window.sessionStorage.getItem(i);if(!e)return null;let t=JSON.parse(e);if(t&&("text-to-video"===t.mode||"image-to-video"===t.mode))return t;return null}catch(e){return console.warn("[hero-session-storage] 读å/è§£æå¤±è´¥:",e),null}}function o(){try{window.sessionStorage.removeItem(i)}catch(e){}}function l(e){return new Promise((t,s)=>{let i=new FileReader;i.onload=()=>t(i.result),i.onerror=()=>{var e;return s(null!==(e=i.error)&&void 0!==e?e:Error("read file failed"))},i.readAsDataURL(e)})}function n(e,t,s){try{let i=e.indexOf(",");if(i<0)return null;let a=e.slice(i+1),r=atob(a),o=new Uint8Array(r.length);for(let e=0;e<r.length;e++)o[e]=r.charCodeAt(e);return new File([o],t,{type:s})}catch(e){return console.warn("[hero-session-storage] Base64 è§£ç
1失败:",e),null}}},18564:(e,t,s)=>{"use strict";s.d(t,{AM:()=>o,Wv:()=>l,hl:()=>n});var i=s(51129);s(65133);var a=s(83475),r=s(55730);function o(e){let{...t}=e;return(0,i.jsx)(a.bL,{"data-slot":"popover",...t})}function l(e){let{...t}=e;return(0,i.jsx)(a.l9,{"data-slot":"popover-trigger",...t})}function n(e){let{className:t,align:s="center",sideOffset:o=4,...l}=e;return(0,i.jsx)(a.ZL,{children:(0,i.jsx)(a.UC,{"data-slot":"popover-content",align:s,sideOffset:o,className:(0,r.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",t),...l})})}},33811:(e,t,s)=>{"use strict";s.d(t,{T:()=>r});var i=s(51129);s(65133);var a=s(55730);function r(e){let{className:t,...s}=e;return(0,i.jsx)("textarea",{"data-slot":"textarea",className:(0,a.cn)("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),...s})}},38333:(e,t,s)=>{"use strict";s.d(t,{default:()=>L});var i=s(51129),a=s(8896),r=s(76553),o=s(65133),l=s(86592),n=s(67334),d=s(18654),c=s(97973),m=s(5593),u=s(18564),x=s(33811),p=s(87852),h=s(87714),g=s(32764),f=s(55730),v=s(78267),b=s(70966),j=s(7403),w=s(63376),N=s(22755),y=s(54061),_=s(84582),A=s(79522),O=s(32247);function k(e){let{value:t,options:s,onChange:a,className:r}=e,[l,n]=(0,o.useState)(!1);return(0,i.jsxs)(u.AM,{open:l,onOpenChange:n,children:[(0,i.jsx)(u.Wv,{asChild:!0,children:(0,i.jsxs)(c.$,{variant:"outline",size:"sm",className:(0,f.cn)("h-9 bg-muted/50 border border-muted-foreground/40 hover:bg-muted hover:border-muted-foreground/60",r),children:[(0,i.jsx)("span",{className:"text-xs",children:t}),(0,i.jsx)(N.A,{className:"ml-1 h-3 w-3"})]})}),(0,i.jsx)(u.hl,{className:"w-[220px] p-0 bg-popover border-border",align:"start",sideOffset:8,children:(0,i.jsx)("div",{className:"p-2",children:(0,i.jsx)("div",{className:"grid grid-cols-3 gap-2",children:s.map(e=>{let s=t===e.value;return(0,i.jsxs)("button",{type:"button",onClick:()=>{a(e.value),n(!1)},className:(0,f.cn)("flex flex-col items-center justify-center gap-1.5 p-2 rounded-md cursor-pointer transition-colors",s?"bg-accent ring-1 ring-primary":"hover:bg-accent/50"),children:[(0,i.jsx)("div",{className:(0,f.cn)(function(e){switch(e){case"16:9":return"w-7 h-4";case"9:16":return"w-4 h-7";case"4:3":default:return"w-6 h-4";case"3:4":return"w-4 h-6";case"1:1":return"w-5 h-5";case"21:9":return"w-8 h-3"}}(e.value),"border-2 rounded-sm",s?"border-primary bg-primary/20":"border-muted-foreground/60")}),(0,i.jsxs)("span",{className:(0,f.cn)("text-xs flex items-center gap-0.5",s?"text-foreground font-medium":"text-muted-foreground"),children:[e.label,s&&(0,i.jsx)(O.A,{className:"h-3 w-3"})]})]},e.value)})})})})]})}var I=s(10528);async function T(e){let t={prompt:e.prompt.trim(),modelId:e.modelId,versionId:e.versionId,aspectRatio:e.aspectRatio,videoLength:e.videoLength,savedAt:Date.now()};if("text-to-video"===e.mode)return{mode:"text-to-video",...t};if(e.imageFile)try{let s=await (0,a.nd)(e.imageFile);return{mode:"image-to-video",imageSource:"file",imageBase64:s,imageName:e.imageFile.name,imageType:e.imageFile.type,...t}}catch(e){return console.warn("[useHeroCreateFlow] å¾ç Base64 转æ¢å¤±è´¥:",e),null}return e.sampleImageUrl?{mode:"image-to-video",imageSource:"url",imageUrl:e.sampleImageUrl,...t}:{mode:"image-to-video",imageSource:"url",imageUrl:"",...t}}function S(e){var t,s,O,S,R;
1let{mode:E,preset:P,className:U}=e,C=(0,r.c3)("HomePage.hero.form"),L=(0,r.c3)("Common"),F=(0,o.useMemo)(()=>p.Nn.filter(e=>{var t;return null===(t=e.supportedModes)||void 0===t?void 0:t.includes(E)}),[E]),[V,D]=(0,o.useState)(F[0]);(0,o.useEffect)(()=>{F.some(e=>e.id===V.id)||D(F[0])},[F,V.id]);let[M,z]=(0,o.useState)(""),[H,q]=(0,o.useState)(null!==(O=null===(t=V.defaultParams.aspectRatios[0])||void 0===t?void 0:t.value)&&void 0!==O?O:"16:9"),[W,X]=(0,o.useState)(null!==(S=null===(s=V.defaultParams.videoLengths[0])||void 0===s?void 0:s.value)&&void 0!==S?S:"");(0,o.useEffect)(()=>{var e,t,s,i;q(null!==(s=null===(e=V.defaultParams.aspectRatios[0])||void 0===e?void 0:e.value)&&void 0!==s?s:"16:9"),X(null!==(i=null===(t=V.defaultParams.videoLengths[0])||void 0===t?void 0:t.value)&&void 0!==i?i:"")},[V]);let B=(0,o.useRef)(null),[G,$]=(0,o.useState)(null),[J,Q]=(0,o.useState)(null),[Y,K]=(0,o.useState)(null);(0,o.useEffect)(()=>{$(null),(null==J?void 0:J.startsWith("blob:"))&&URL.revokeObjectURL(J),Q(null),K(null),B.current&&(B.current.value="")},[E]),(0,o.useEffect)(()=>()=>{(null==J?void 0:J.startsWith("blob:"))&&URL.revokeObjectURL(J)},[J]),(0,o.useEffect)(()=>{if(P){if(z(P.prompt),P.modelId){let e=F.find(e=>e.id===P.modelId);e&&D(e)}if("image-to-video"===E){if(P.imageFile){(null==J?void 0:J.startsWith("blob:"))&&URL.revokeObjectURL(J);let e=URL.createObjectURL(P.imageFile);$(P.imageFile),Q(e),K(null),B.current&&(B.current.value="")}else P.imageUrl&&($(null),(null==J?void 0:J.startsWith("blob:"))&&URL.revokeObjectURL(J),Q(P.imageUrl),K(P.imageUrl),B.current&&(B.current.value=""))}(P.aspectRatio||void 0!==P.videoLength)&&setTimeout(()=>{P.aspectRatio&&q(P.aspectRatio),void 0!==P.videoLength&&X(P.videoLength)},0)}},[null==P?void 0:P.timestamp]);let{submit:Z,persistDraft:ee,isPending:et}=function(){let e=(0,I.tx)(),[t,s]=(0,o.useState)(!1),i=(0,o.useCallback)(async e=>{let t=await T(e);t&&(0,a.kp)(t)},[]);return{submit:(0,o.useCallback)(async t=>{s(!0);try{await i(t);let s="text-to-video"===t.mode?"/text-to-video":"/image-to-video";e.push(s)}finally{s(!1)}},[i,e]),persistDraft:i,isPending:t}}(),es=(0,A.Ym)(),ei=(0,o.useMemo)(()=>es&&es!==g.DT.defaultLocale?"/".concat(es,"/"):"/",[es]),ea=(0,h.w)(),er=!!(null==ea?void 0:ea.user),[eo,el]=(0,o.useState)(!1),[en,ed]=(0,o.useState)(!1),[ec,em]=(0,o.useState)(!1),eu=!!G||!!Y,ex=M.trim().length>0&&!et&&!ec&&("text-to-video"===E||eu),ep=async()=>{var e,t,s,i;if(!ex)return;let a=null!==(t=null===(e=V.versions[0])||void 0===e?void 0:e.id)&&void 0!==t?t:V.id;if(!er){try{await ee({mode:E,prompt:M,modelId:V.id,versionId:a,aspectRatio:H,videoLength:W,imageFile:G,sampleImageUrl:Y})}catch(e){console.warn("[HeroPromptForm] è稿ä¿å失败ï¼ç»§ç»å¼¹ç»å½:",e)}el(!0);return}let r=(0,v.p$)(V.id,a,E);try{em(!0);let e=await (0,l.Q)();if((null!==(i=null==e?void 0:null===(s=e.data)||void 0===s?void 0:s.credits)&&void 0!==i?i:0)<r){ed(!0);return}}catch(e){console.warn("[HeroPromptForm] ç§¯åæ¥è¯¢å¤±è´¥ï¼æ¾è¡ç±å·¥ä½é¡µåæ ¡éª:",e)}finally{em(!1)}Z({mode:E,prompt:M,modelId:V.id,versionId:a,aspectRatio:H,videoLength:W,imageFile:G,sampleImageUrl:Y})},[eh,eg]=(0,o.useState)(!1);return(0,i.jsxs)("div",{className:(0,f.cn)("flex flex-col rounded-2xl bg-background/80 backdrop-blur border border-white/20 shadow-2xl shadow-black/30 p-5 sm:p-7 gap-5 sm:gap-6 min-h-[480px] sm:min-h-[560px]",U),children:[(0,i.jsx)(n.n,{mode:"modal",open:eo,onOpenChange:el,callbackUrl:ei}),(0,i.jsx)(d.p,{open:en,onClose:()=>ed(!1),type:"video"}),"image-to-video"===E&&(0,i.jsxs)("div",{className:"space-y-2",children:[(0,i.jsxs)(m.J,{className:"text-xs font-medium text-muted-foreground flex items-center gap-1.5",children:[(0,i.jsx)(b.A,{className:"h-3.5 w-3.5"}),C("imageUploadLabel")]}),(0,i.jsx)("input",{ref:B,type:"file",accept:"image/*",className:"hidden",onChange:e=>{var t;let s=null===(t=e.target.files)||void 0===t?void 0:t[0];if(!s||!s.type.startsWith("image/")||s.size>0xa00000)return;(null==J?void 0:J.startsWith("blob:"))&&URL.revokeObjectURL(J);let i=URL.createObjectURL(s);$(s),Q(i),K(null)}}),J?(0,i.jsxs)("div",{className:"relative inline-flex items-center gap-2 rounded-lg border border-muted-foreground
1/40 bg-muted/30 p-2",children:[(0,i.jsx)("img",{src:J,alt:C("imagePreviewAlt"),className:"w-14 h-14 object-cover rounded"}),(0,i.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,i.jsx)("p",{className:"text-xs text-foreground truncate",children:null!==(R=null==G?void 0:G.name)&&void 0!==R?R:C("sampleImageInUse")}),(0,i.jsx)("button",{type:"button",onClick:()=>{var e;return null===(e=B.current)||void 0===e?void 0:e.click()},className:"text-[10px] text-muted-foreground hover:text-foreground underline",children:C("replaceImage")})]}),(0,i.jsx)(c.$,{variant:"ghost",size:"icon",className:"h-6 w-6",onClick:()=>{$(null),(null==J?void 0:J.startsWith("blob:"))&&URL.revokeObjectURL(J),Q(null),K(null),B.current&&(B.current.value="")},"aria-label":C("removeImage"),children:(0,i.jsx)(j.A,{className:"h-3.5 w-3.5"})})]}):(0,i.jsxs)("button",{type:"button",onClick:()=>{var e;return null===(e=B.current)||void 0===e?void 0:e.click()},className:"w-full flex flex-col items-center justify-center gap-2 border-2 border-dashed border-muted-foreground/40 rounded-lg bg-muted/30 py-8 sm:py-10 text-sm text-muted-foreground hover:bg-muted/50 hover:border-muted-foreground/60 transition-colors",children:[(0,i.jsx)(w.A,{className:"h-5 w-5"}),(0,i.jsx)("span",{children:C("uploadImageHint")})]})]}),(0,i.jsxs)("div",{className:"flex flex-col gap-1.5 flex-1 min-h-0",children:[(0,i.jsx)(x.T,{value:M,onChange:e=>z(e.target.value.slice(0,3e3)),placeholder:C("text-to-video"===E?"promptPlaceholder.textToVideo":"promptPlaceholder.imageToVideo"),className:"flex-1 min-h-32 sm:min-h-36 resize-none bg-muted/30 border border-muted-foreground/40 text-sm leading-relaxed"}),(0,i.jsxs)("div",{className:"flex items-center justify-end text-[11px] text-muted-foreground flex-shrink-0",children:[M.length," / ",3e3]})]}),(0,i.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,i.jsxs)(u.AM,{open:eh,onOpenChange:eg,children:[(0,i.jsx)(u.Wv,{asChild:!0,children:(0,i.jsxs)(c.$,{variant:"outline",size:"sm",className:"h-9 bg-muted/50 border border-muted-foreground/40 hover:bg-muted hover:border-muted-foreground/60 overflow-hidden justify-between",children:[(0,i.jsx)("span",{className:"text-xs truncate text-left flex-1",children:V.name}),(0,i.jsx)(N.A,{className:"ml-1 h-3 w-3 flex-shrink-0"})]})}),(0,i.jsx)(u.hl,{className:"w-[260px] p-0 bg-popover border-border",align:"start",sideOffset:8,children:(0,i.jsx)("div",{className:"p-2 space-y-0.5",children:F.map(e=>{let t=V.id===e.id;return(0,i.jsxs)("button",{type:"button",onClick:()=>{D(e),eg(!1)},className:(0,f.cn)("w-full flex items-center gap-2 p-2 rounded-md transition-colors text-left",t?"bg-accent":"hover:bg-accent/50"),children:[(0,i.jsx)("img",{src:e.logo,alt:e.name,className:"w-6 h-6 rounded flex-shrink-0 object-contain"}),(0,i.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,i.jsx)("p",{className:"text-xs font-medium text-foreground truncate",children:e.name}),(0,i.jsxs)("p",{className:"text-[10px] text-muted-foreground truncate",children:[e.credits," ",L("credits.balance")]})]})]},e.id)})})})]}),(0,i.jsx)(k,{value:H,options:V.defaultParams.aspectRatios,onChange:q,className:"w-full justify-between"})]}),(0,i.jsx)(c.$,{type:"button",disabled:!ex,onClick:ep,className:"w-full h-12 sm:h-14 text-sm sm:text-base font-semibold bg-primary hover:bg-primary/90 mt-1",children:et||ec?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(y.A,{className:"h-4 w-4 mr-2 animate-spin"}),C("loading")]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(_.A,{className:"h-4 w-4 mr-2"}),C("createButton")]})})]})}function R(e){let{className:t}=e,[s,a]=(0,o.useState)(!0);return(0,i.jsx)("div",{className:(0,f.cn)("relative flex flex-col rounded-2xl overflow-hidden bg-black/40 border border-white/20 shadow-2xl shadow-black/30",t),children:(0,i.jsxs)("div",{className:"relative flex-1 min-h-[280px] sm:min-h-[420px] bg-black flex items-center justify-center",children:[s&&(0,i.jsxs)("div",{className:"absolute inset-0 flex items-center justify-center bg-zinc-900 overflow-hidden",children:[(0,i.jsx)("div",{className:"absolute inset-0 -translate-x-full animate-[shimmer_2s_infinite] bg-gradient-to-r from-transparent via-white/10 to-transparent"}),(0,i.jsx)("div",{className:"w-10 h-10 rounded-full border-2 border-white/20 border-t-primary animate-spin"})]}),(0,i.jsx)("video",{src:"https://media.seed3d20.app/demovideo/seed3d.mp4",className:(0,f.cn)("max-w-full max-h-full object-contain transition-opacity duration-300",s?"opacity-0":"opacity-100"),autoPlay:!0,loop:!0,muted:!0,playsInl
1ine:!0,preload:"auto",onLoadedData:()=>a(!1)})]})})}var E=s(49257),P=s(36184);let U=(0,f.cn)("gap-2 text-sm font-medium rounded-lg transition-all","text-muted-foreground hover:text-foreground","data-[state=active]:bg-primary","dark:data-[state=active]:bg-primary","data-[state=active]:text-primary-foreground","dark:data-[state=active]:text-primary-foreground","data-[state=active]:font-semibold","data-[state=active]:shadow-md","data-[state=active]:shadow-primary/30");function C(e){let{value:t,onChange:s,className:a}=e,o=(0,r.c3)("HomePage.hero.form.tabs");return(0,i.jsx)(E.tU,{value:t,onValueChange:e=>s(e),className:(0,f.cn)("w-full",a),children:(0,i.jsxs)(E.j7,{className:"bg-muted/40 h-11 sm:h-12 p-1 w-full grid grid-cols-2 rounded-xl border border-white/10",children:[(0,i.jsxs)(E.Xi,{value:"text-to-video",className:U,children:[(0,i.jsx)(P.A,{className:"h-4 w-4"}),(0,i.jsx)("span",{children:o("textToVideo")})]}),(0,i.jsxs)(E.Xi,{value:"image-to-video",className:U,children:[(0,i.jsx)(b.A,{className:"h-4 w-4"}),(0,i.jsx)("span",{children:o("imageToVideo")})]})]})})}function L(){let e=(0,r.c3)("HomePage.hero"),[t,s]=(0,o.useState)("text-to-video"),[l,n]=(0,o.useState)(null);return(0,o.useEffect)(()=>{let e=(0,a.pP)();if(!e)return;s(e.mode);let t={prompt:e.prompt,modelId:e.modelId,versionId:e.versionId,aspectRatio:e.aspectRatio,videoLength:e.videoLength,timestamp:Date.now()};if("image-to-video"===e.mode){if("file"===e.imageSource){let s=(0,a.Nu)(e.imageBase64,e.imageName,e.imageType);n({...t,imageFile:null!=s?s:void 0})}else"url"===e.imageSource&&e.imageUrl?n({...t,imageUrl:e.imageUrl}):n(t)}else n(t);(0,a.y5)(),console.log("[HeroSection] â¨ ä» sessionStorage æ¢å¤èç¨¿å®æ")},[]),(0,i.jsx)("main",{id:"hero",className:"relative overflow-hidden -mt-20 pt-20 bg-section-primary",children:(0,i.jsx)("section",{className:"relative z-30 w-full min-h-[calc(100vh-5rem)] flex items-center justify-center py-16 sm:py-24",children:(0,i.jsxs)("div",{className:"mx-auto w-full max-w-7xl px-4 sm:px-6 lg:px-8",children:[(0,i.jsxs)("div",{className:"text-center mb-14 sm:mb-20",children:[(0,i.jsx)("h1",{className:"text-balance text-5xl sm:text-6xl xl:text-7xl font-bold tracking-tight text-white leading-[1.05]",children:e("title")}),(0,i.jsx)("p",{className:"mt-7 text-base sm:text-lg text-white/60 max-w-3xl mx-auto leading-relaxed",children:e("subtitle")})]}),(0,i.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 lg:gap-10 items-stretch",children:[(0,i.jsxs)("div",{className:"flex flex-col gap-4 sm:gap-5",children:[(0,i.jsx)(C,{value:t,onChange:s}),(0,i.jsx)(S,{mode:t,preset:l,className:"flex-1"})]}),(0,i.jsx)(R,{className:"min-h-[400px] lg:min-h-full"})]})]})})})}},46117:(e,t,s)=>{"use strict";s.d(t,{default:()=>r});var i=s(8685),a=(s(80927),s(65133));let r=()=>((0,a.useEffect)(()=>{if(!i.u.features.enableCrispChat){console.log("Crisp chat is disabled");return}console.warn("Crisp website ID is not configured.")},[]),null)},47934:(e,t,s)=>{"use strict";s.d(t,{default:()=>c});var i=s(51129),a=s(10528),r=s(26241),o=s(76553),l=s(65133);let n=()=>{let[e,t]=(0,l.useState)(!1),[s,i]=(0,l.useState)(null);return(0,l.useEffect)(()=>{if(!s)return;let e=new IntersectionObserver(e=>{let[s]=e;t(s.isIntersecting)},{root:null,rootMargin:"0px",threshold:.1});return e.observe(s),()=>e.disconnect()},[s]),[i,e]},d=e=>{let{t}=e,[s,a]=n(),[r,o]=n();return(0,i.jsxs)("div",{className:"text-center max-w-3xl mx-auto mb-16",children:[(0,i.jsx)("h2",{ref:s,className:"text-4xl md:text-5xl font-light tracking-tight transition-all duration-700 ease-out text-white ".concat(a?"opacity-100 translate-y-0":"opacity-0 translate-y-10"),style:{transformStyle:"preserve-3d"},children:t("subtitle")}),(0,i.jsx)("p",{ref:r,className:"text-lg text-white/60 mt-4 transition-all duration-700 ease-out delay-200 ".concat(o?"opacity-100 translate-y-0":"opacity-0 translate-y-10"),style:{transformStyle:"preserve-3d"},children:t("description")})]})};function c(){let e=(0,o.c3)("HomePage.features"),t=[{title:e("items.item-1.title"),description:e("items.item-1.description"),videoUrl:"https://media.seed3d20.app/demovideo/damo01.mp4",href:"/text-to-vi
1deo",cta:e("cta.textToVideo")},{title:e("items.item-2.title"),description:e("items.item-2.description"),videoUrl:"https://media.seed3d20.app/demovideo/damo02.mp4",href:"/image-to-video",cta:e("cta.imageToVideo")},{title:e("items.item-3.title"),description:e("items.item-3.description"),videoUrl:"https://media.seed3d20.app/demovideo/damo03.mp4",href:"/text-to-video",cta:e("cta.aiAvatar")},{title:e("items.item-4.title"),description:e("items.item-4.description"),videoUrl:"https://media.seed3d20.app/demovideo/damo04.mp4",href:"/image-to-video",cta:e("cta.videoEffects")}];return(0,i.jsx)("section",{id:"features",className:"bg-section-secondary font-sans",children:(0,i.jsx)("div",{className:"px-[5%]",children:(0,i.jsx)("div",{className:"max-w-7xl lg:max-w-[1400px] xl:max-w-[1600px] 2xl:max-w-[1800px] mx-auto",children:(0,i.jsxs)("section",{className:"py-24 md:py-48 flex flex-col items-center",children:[(0,i.jsx)(d,{t:e}),(0,i.jsx)("div",{className:"w-full",children:t.map((e,t)=>(0,i.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 items-center gap-6 md:gap-10 lg:gap-12 xl:gap-16 p-8 md:p-12 lg:p-16 xl:p-20 rounded-2xl mb-16 sticky border border-glass bg-section-tertiary",style:{top:"200px"},children:[(0,i.jsxs)("div",{className:"flex flex-col justify-center",children:[(0,i.jsx)("h3",{className:"text-2xl md:text-3xl lg:text-4xl xl:text-5xl font-light tracking-tight mb-4 lg:mb-6 text-white",children:e.title}),(0,i.jsx)("p",{className:"text-base md:text-lg lg:text-xl text-white/60 mb-6",children:e.description}),(0,i.jsx)("div",{children:(0,i.jsxs)(a.XO,{href:e.href,className:"inline-flex items-center gap-2 text-brand-gradient font-semibold text-lg group transition-all",children:[e.cta,(0,i.jsx)(r.A,{className:"w-5 h-5 group-hover:translate-x-1 transition-transform"})]})})]}),(0,i.jsx)("div",{className:"video-wrapper mt-8 md:mt-0",children:(0,i.jsx)("video",{src:e.videoUrl,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,className:"w-full h-auto rounded-xl shadow-2xl object-cover",style:{maxHeight:"600px"},onError:e=>{let t=e.currentTarget;t.onerror=null,t.poster="https://placehold.co/600x400/cccccc/ffffff?text=Video+Not+Found"},children:"Your browser does not support the video tag."})})]},t))})]})})})})}},49257:(e,t,s)=>{"use strict";s.d(t,{Xi:()=>n,av:()=>d,j7:()=>l,tU:()=>o});var i=s(51129);s(65133);var a=s(47493),r=s(55730);function o(e){let{className:t,...s}=e;return(0,i.jsx)(a.bL,{"data-slot":"tabs",className:(0,r.cn)("flex flex-col gap-2",t),...s})}function l(e){let{className:t,...s}=e;return(0,i.jsx)(a.B8,{"data-slot":"tabs-list",className:(0,r.cn)("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",t),...s})}function n(e){let{className:t,...s}=e;return(0,i.jsx)(a.l9,{"data-slot":"tabs-trigger",className:(0,r.cn)("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...s})}function d(e){let{className:t,...s}=e;return(0,i.jsx)(a.UC,{"data-slot":"tabs-content",className:(0,r.cn)("flex-1 outline-none",t),...s})}},62496:(e,t,s)=>{"use strict";s.d(t,{NewsletterCard:()=>l});var i=s(51129),a=s(8685),r=s(76553),o=s(32551);function l(){let e=(0,o.useRouter)(),t=(0,r.c3)("Newsletter");return a.u.newsletter.enable?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("style",{children:"\n @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');\n\n * {\n font-family: 'Poppins', sans-serif;\n }\n "}),(0,i.jsxs)("div",{className:"w-full py-16 flex flex-col items-center justify-center text-center bg-section-secondary p-10",children:[(0,i.jsxs)("div",{className:"flex flex-wrap items-center justify-center p-1 rounded-full bg-glass backdrop-blur border border-glass text-sm text-white font-medium",children:[(0,i.jsxs)("div",{className:"flex items-center",children:[(0,i.jsx)("img",{className:"size-6 md:size-7 rounded-full border-[3px] border-white",src:"https://images.unsplash.com/photo-1633332755192-727a05c4013d?q=80&w=50",alt:"userImage1"}),(0,i.jsx)("img",{className:"size-6 md:size-7 rounded-full border-[3px] border-white -translate-x-2",src:"https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?q=80&w=50",alt:"userImage2"}),(0,i.jsx)("img",{className:"size-6 md:size-7 rounded-full border-[3px] border-white -translate-x-4",src:"https://images.unsplash.com/photo-1438761681033-6461ffad8d80?q=80&w=50&h=50&auto=format&fit=crop",alt:"userImage3"})]}),(0,i.jsx)("p",{className:"-translate-x-2 font-medium",children:t("subtitle")})]}),(0,i.jsx)("h2",{className:"text-4xl md:text-5xl md:leading-[60px] font-light tracking-tight max-w-xl mt-5 text-white",children:t("title")}),(0,i.jsx)("button",{type:"button",onClick:()=>
1{e.push("/image-to-video")},className:"px-10 py-4 bg-brand-gradient text-white font-semibold transition-all rounded-full text-base mt-8 shadow-2xl hover:shadow-3xl hover:scale-105 active:scale-95",children:t("createVideo")})]})]}):null}},63526:(e,t,s)=>{"use strict";s.d(t,{default:()=>j});var i=s(51129),a=s(2093),r=s(84582),o=s(92706),l=s(34609),n=s(36291),d=s(97749),c=s(40937),m=s(26763),u=s(68655),x=s(82509),p=s(24745),h=s(39137),g=s(3679),f=s(9299),v=s(76553),b=s(79522);function j(){let e=(0,v.c3)("HomePage.faqs"),t=[{id:"item-1",icon:r.A},{id:"item-2",icon:o.A},{id:"item-3",icon:l.A},{id:"item-4",icon:n.A},{id:"item-5",icon:d.A},{id:"item-6",icon:c.A},{id:"item-7",icon:m.A},{id:"item-8",icon:u.A},{id:"item-9",icon:x.A},{id:"item-10",icon:p.A},{id:"item-11",icon:h.A},{id:"item-12",icon:g.A},{id:"item-13",icon:f.A}],s=t=>{try{return e(t)}catch(e){return console.warn("Translation key not found: ".concat(t)),""}};return(0,i.jsx)("section",{className:"bg-section-primary py-16 md:py-24",children:(0,i.jsx)("div",{className:"mx-auto max-w-6xl px-6 md:px-12",children:(0,i.jsxs)("div",{className:"grid gap-12 lg:grid-cols-[320px_1fr]",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("h2",{className:"text-3xl font-light tracking-tight md:text-4xl text-white",children:s("title")||"Frequently Asked Questions"}),(0,i.jsx)("p",{className:"mt-4 text-base text-white/60",children:s("subtitle")||"Find answers to common questions about our service."})]}),(0,i.jsx)(a.nD,{type:"single",collapsible:!0,className:"flex flex-col gap-4",children:t.map(e=>{let t=e.icon;return(0,i.jsxs)(a.As,{value:e.id,className:"overflow-hidden rounded-2xl border border-glass bg-section-tertiary text-white shadow-sm",children:[(0,i.jsx)(a.$m,{className:"flex items-center justify-between gap-4 px-6 py-4 text-left text-base font-medium hover:no-underline",children:(0,i.jsxs)("span",{className:"flex items-center gap-3",children:[(0,i.jsx)("span",{className:"flex h-10 w-10 items-center justify-center rounded-full border border-glass bg-glass text-primary",children:(0,i.jsx)(t,{className:"h-4 w-4"})}),s("items.".concat(e.id,".question"))||"Question not available"]})}),(0,i.jsx)(a.ub,{className:"px-6 pb-6 text-sm text-white/60",children:(0,i.jsx)(w,{itemId:e.id})})]},e.id)})})]})})})}function w(e){let{itemId:t}=e,s=(0,v.c3)("HomePage.faqs"),a=(0,b.ot)(),r=(e=>{try{let t=e.split("."),s=a;for(let e of t){if(!s||"object"!=typeof s||!(e in s))return null;s=s[e]}return s}catch(t){return console.warn("Message object not found: ".concat(e)),null}})("HomePage.faqs.items.".concat(t,".answer"));if("object"==typeof r&&null!==r){if("item-2"===t)return(0,i.jsxs)("span",{children:[r.beforeLink,(0,i.jsx)("a",{href:r.linkUrl,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline",children:r.linkText}),r.afterLink]});if("item-8"===t)return(0,i.jsxs)("span",{children:[r.beforeEmail,(0,i.jsx)("a",{href:r.emailUrl,className:"text-primary underline",children:r.emailText}),r.betweenLinks,(0,i.jsx)("a",{href:r.discordUrl,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline",children:r.discordText}),r.afterDiscord]})}let o="string"==typeof r?r:(e=>{try{return s(e)}catch(t){return console.warn("Translation key not found: ".concat(e)),""}})("items.".concat(t,".answer"))||"Answer not available";return(0,i.jsx)("span",{children:o})}},72518:(e,t,s)=>{"use strict";s.d(t,{default:()=>d});var i=s(51129),a=s(67187),r=s(57709),o=s(36184),l=s(64492),n=s(76553);function d(){let e=(0,n.c3)("HomePage.trustBadges"),t=[{id:"users",icon:a.A,value:"1M+",label:e("items.users")||"Active Creators",description:e("descriptions.users")||"Creators worldwide",chartColor:"primary"},{id:"rating",icon:r.A,value:"4.8/5",label:e("items.rating")||"User Rating",description:e("descriptions.rating")||"Based on 10,000+ reviews",chartColor:"primary"},{id:"videos",icon:o.A,value:"5M+",label:e("items.videos")||"Videos Created",description:e("descriptions.videos")||"Generated this month",chartColor:"primary"},{id:"speed",icon:l.A,value:"3x",label:e("items.speed")||"Faster",description:e("descriptions.speed")||"Than competitors",chartColor:"primary"}];return(0,i.jsxs)("section",{className:"relative py-24 md:py-32 overflow-hidden bg-section-primary",children:[(0,i.jsx)("div",{className:"absolute inset-0 bg-gradient-to-b from-section-primary via-section-secondary/20 to-section-primary pointer-events-none"}),(0,i.jsxs)("div",{className:"relative mx-auto max-w-7xl px-6",children:[(0,i.jsxs)("div",{className:"text-center mb-16",children:[(0,i.jsx)("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-light tracking-tight text-white mb-4",children:e("title")||"Trusted by Creators Worldwide"}),(0,i.jsx)("p",{className:"text-lg md:text-xl text-white/60 max-w-2xl mx-auto",children:e("subtitle")||"Join thousands of creators who trust Seed3D 2.0 AI for their video generation needs"})]}),(0,i.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-16",children:t.map((e,t)=>{let s=e.icon;return(0,i.jsx)("div",{className:"group relative [animation:fadeInUp_0.6s_ease-out_both]",style:{animationDelay:"".concat(.1*t,"s")},children:(0,i.jsxs)("div",{className:"relative h-full p-8 rounded-2xl border border-glass bg-section-tertiary backdrop-blur-xl shadow-lg hover:shadow-2xl transition-all duration-500 hover:-translate-y-1",children:[(0,i.jsx)("div",{className:"absolute inset-0 rounded-2xl bg-primary opacity-0 group-hover:opacity-10 transition-opacity duration-500"}),(0,i.jsx)("div",{className:"relative mb-6",children:(0,i.jsx)("div",{className:"inline-flex p-3 rounded-2xl bg-primary",children:(0,i.jsx)(s,{className:"w-6 h-6 text-primary-foreground"})})}),(0,i.jsx)("div",{className:"relative mb-2",children:(0,i.jsx)("div",{className:"text-4xl md:text-5xl font-bold text-primary",children:e.value})}),(0,i.jsx)("div",{className:"relative text-base font-semibold text-white mb-1",children:e.label}),(0,i.jsx)("div",{className:"relative text-sm text-white/60",children:e.description})]})},e.id)})}),(0,i.jsxs)("div",{className:"relative p-12 rounded-2xl border border-glass bg-section-tertiary backdrop-blur-xl shadow-xl [animation:fadeInUp_0.6s_ease-out_0.4s_both]",children:[(0,i.jsx)("div",{className:"absolute inset-0 rounded-2xl bg-primary opacity-5"}),(0,i.jsxs)("div",{className:"relative flex flex-col items-center gap-6",children:[(0,i.jsxs)("div",{className:"flex items-center gap-3",children:[[1,2,3,4,5].map(e=>(0,i.jsx)(r.A,{className:"w-8 h-8 transition-all duration-300 ".concat(e<=4?"fill-primary text-primary":"fill-transparent text-white/60 opacity-40")},e)),(0,i.jsx)("span",{className:"text-3xl font-bold text-white ml-3",children:"4.8"})]}),(0,i.jsx)("p",{className:"text-base text-white/60 text-center",children:e("reviewCount")||"Based on 10,000+ reviews from our community"}),(0,i.jsx)("div",{className:"flex flex-wrap items-center justify-center gap-4 pt-4",children:(0,i.jsxs)("a",{href:"https://discord.gg/R2MA4bSAf8",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-6 py-3 rounded-full bg-brand-gradient text-white font-medium hover:opacity-90 transition-all duration-300 hover:scale-105 shadow-lg",children:[(0,i.jsx)(a.A,{className:"w-4 h-4"}),e("discordButton")]})})]})]})]})]})}},78267:(e,t,s)=>{"use strict";s.d(t,{Pj:()=>x,p$:()=>d,ny:()=>m,zR:()=>n});var i,a,r=s(8685),o=s(9686);let l={[o.x.SORA_2_TEXT_TO_VIDEO]:10,[o.x.SORA_2_IMAGE_TO_VIDEO]:10,[o.x.SORA_2_PRO_TEXT_TO_VIDEO]:600,[o.x.SORA_2_PRO_IMAGE_TO_VIDEO]:300,[o.x.VEO_31_FAST_TEXT_TO_VIDEO]:40,[o.x.VEO_31_FAST_IMAGE_TO_VIDEO]:40,...null!==(a=null===(i=r.u.video)||void 0===i?void 0:i.modelCredits)&&void 0!==a?a:{}};function n(e,t){let s=arguments.length>
12&&void 0!==arguments[2]?arguments[2]:"text-to-video";if("sora2"===e){if("sora2-standard"===t){if("text-to-video"===s)return o.x.SORA_2_TEXT_TO_VIDEO;if("image-to-video"===s)return o.x.SORA_2_IMAGE_TO_VIDEO}if("sora2-pro"===t){if("text-to-video"===s)return o.x.SORA_2_PRO_TEXT_TO_VIDEO;if("image-to-video"===s)return o.x.SORA_2_PRO_IMAGE_TO_VIDEO}}if("veo31-fast"===e&&"veo31-fast"===t){if("text-to-video"===s)return o.x.VEO_31_FAST_TEXT_TO_VIDEO;if("image-to-video"===s)return o.x.VEO_31_FAST_IMAGE_TO_VIDEO}if("kling26"===e&&"kling26"===t){if("text-to-video"===s)return o.x.VEO_31_FAST_TEXT_TO_VIDEO;if("image-to-video"===s)return o.x.VEO_31_FAST_IMAGE_TO_VIDEO}return console.warn("[VideoModelMapper] æªæ¾å°æ¨¡åæ å°: ".concat(e," - ").concat(t," - ").concat(s),"åéå°é»è®¤æ¨¡å: SORA_2_TEXT_TO_VIDEO"),o.x.SORA_2_TEXT_TO_VIDEO}function d(e,t,s){var i;return null!==(i=l[n(e,t,s)])&&void 0!==i?i:0}let c={"16:9":"landscape","9:16":"portrait",landscape:"landscape",Landscape:"landscape",portrait:"portrait",Portrait:"portrait",Auto:"Auto",auto:"Auto"};function m(e){return c[e]||"landscape"}let u={10:"10",15:"15"};function x(e){return Object.prototype.hasOwnProperty.call(u,e)?u[e]:Math.ceil(2.5*e).toString()}},87714:(e,t,s)=>{"use strict";s.d(t,{w:()=>a});var i=s(77193);let a=()=>{let{data:e,error:t}=i.y.useSession();return t?(console.error("useSession, error:",t),null):e}},87852:(e,t,s)=>{"use strict";s.d(t,{Nn:()=>o,bs:()=>l});let i={outputNumbers:[{value:1,label:"1"},{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"}],supportedFormats:["JPG","PNG","WEBP"],maxFileSize:10,minDimensions:{width:300,height:300}};({...i});let a={aspectRatios:[{value:"16:9",label:"16:9"},{value:"9:16",label:"9:16"}],videoLengths:[{value:10,label:"10s"},{value:15,label:"15s"}],...i},r={aspectRatios:[{value:"16:9",label:"16:9"},{value:"9:16",label:"9:16"},{value:"Auto",label:"Auto"}],videoLengths:[],outputNumbers:[{value:1,label:"1"}],supportedFormats:["JPG","PNG","WEBP"],maxFileSize:10,minDimensions:{width:300,height:300}},o=[{id:"veo31-fast",name:"Seed3D 2.0",description:"veo31.description",logo:"/svg/veo-3-1.svg",tags:["40 credits","Auto translate"],duration:"Auto",credits:40,isNew:!1,hasAudio:!1,supportedModes:["text-to-video","image-to-video"],maxImagesForImageToVideo:2,versions:[{id:"veo31-fast",name:"Seed3D 2.0",description:"Fast video generation with auto aspect ratio",isRecommended:!0,creditsRequired:40}],defaultParams:r},{id:"kling26",name:"Kling 2.6",description:"description.kling26",logo:"/svg/kling.svg",tags:["40 credits","Auto translate"],duration:"Auto",credits:40,isNew:!0,hasAudio:!1,supportedModes:["text-to-video","image-to-video"],maxImagesForImageToVideo:2,versions:[{id:"kling26",name:"Kling 2.6",description:"Cinematic videos with synced sound and visuals",isRecommended:!0,creditsRequired:40}],defaultParams:r},{id:"sora2",name:"Sora 2",description:"sora2.description",logo:"/svg/openainew.svg",tags:["4 min","10+ credits"],duration:"4 min",credits:10,isNew:!1,hasAudio:!0,discount:"+ 50% OFF",isPopular:!0,supportedModes:["text-to-video","image-to-video"],maxImagesForImageToVideo:1,versions:[{id:"sora2-standard",name:"Sora 2",description:"Realistic world & audio simulation",isRecommended:!0,creditsRequired:10},{id:"sora2-pro",name:"Sora 2 Pro",description:"Highest fidelity with cinematic detail",isDisabled:!1,creditsRequired:600}],defaultParams:a}];function l(e){return o.find(t=>t.id===e)}}},e=>{var t=t=>e(e.s=t);e.O(0,[3535,9114,1109,3615,3179,8838,7171,8798,7580,1524,676,3130,207,1230,2304,3842,2192,7193,4269,6878,3501,5210,671,4749,1170,7358],()=>t(2375)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.