PageSourceSearch

https://seedance-2.app/_next/static/chunks/53040-467c6ea940603519.js

js seedance-2.app collected 2026-10-08 12:14:08 UTC 13,196 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[53040],{21711:(e,t,a)=>{a.d(t,{CG:()=>l,Fm:()=>m,Qs:()=>f,cj:()=>o,h:()=>h,qp:()=>x});var i=a(72590);a(79998);var s=a(83249),r=a(25395),n=a(83461);function o(e){let{...t}=e;return(0,i.jsx)(s.bL,{"data-slot":"sheet",...t})}function l(e){let{...t}=e;return(0,i.jsx)(s.l9,{"data-slot":"sheet-trigger",...t})}function d(e){let{...t}=e;return(0,i.jsx)(s.ZL,{"data-slot":"sheet-portal",...t})}function c(e){let{className:t,...a}=e;return(0,i.jsx)(s.hJ,{"data-slot":"sheet-overlay",className:(0,n.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...a})}function h(e){let{className:t,children:a,side:o="right",...l}=e;return(0,i.jsxs)(d,{children:[(0,i.jsx)(c,{}),(0,i.jsxs)(s.UC,{"data-slot":"sheet-content",className:(0,n.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500","right"===o&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm","left"===o&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm","top"===o&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b","bottom"===o&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",t),...l,children:[a,(0,i.jsxs)(s.bm,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[(0,i.jsx)(r.A,{className:"size-4"}),(0,i.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function m(e){let{className:t,...a}=e;return(0,i.jsx)("div",{"data-slot":"sheet-header",className:(0,n.cn)("flex flex-col gap-1.5 p-4",t),...a})}function x(e){let{className:t,...a}=e;return(0,i.jsx)(s.hE,{"data-slot":"sheet-title",className:(0,n.cn)("text-foreground font-semibold",t),...a})}function f(e){let{className:t,...a}=e;return(0,i.jsx)(s.VY,{"data-slot":"sheet-description",className:(0,n.cn)("text-muted-foreground text-sm",t),...a})}},53040:(e,t,a)=>{a.d(t,{AiDashboardShell:()=>E});var i=a(72590),s=a(79998),r=a(59987),n=a(86247),o=a(37488),l=a(20494),d=a(36273),c=a(55963),h=a(99904),m=a(10466),x=a(42126),f=a(48523),u=a(24892),g=a(41081),p=a(39056),v=a(82660),b=a(21711),w=a(52471),y=a(87881),j=a(83461),N=a(83696);let _={"--background":"#0d0d1c","--foreground":"#e6e3f9","--card":"#18182a","--card-foreground":"#e6e3f9","--popover":"#18182a","--popover-foreground":"#e6e3f9","--primary":"#c799ff","--primary-foreground":"#160b26","--secondary":"#4af8e3","--secondary-foreground":"#052b27","--muted":"#121222","--muted-foreground":"#aba9be","--accent":"#24243a","--accent-foreground":"#f8f5ff","--border":"#2a2a42","--input":"#2a2a42","--ring":"#c799ff","--surface":"#11131a","--surface-container-low":"#10131b","--surface-container-high":"#1a1d27","--surface-container-highest":"#24243a","--tertiary":"#ff9dac","--tertiary-foreground":"#4a0919","--tertiary-container":"#fb899c","--brand-lime":"#cffb5c","--brand-gradient-start":"#9b6dff","--brand-gradient-mid":"#6200ee","--brand-gradient-end":"#4af8e3"};function k(){let e=new Date,t=new Date(e);t.setHours(23,59,59,999);let a=Math.max(0,t.getTime()-e.getTime()),i=Math.floor(a/36e5),s=Math.floor(a/6e4%60),r=Math.floor(a/1e3%60);return{hours:String(i).padStart(2,"0"),minutes:String(s).padStart(2,"0"),seconds:String(r).padStart(2,"0")}}let S=[{key:"video",titleKey:"ai_video",href:"/text-to-video",icon:o.A,modes:[{key:"text-to-video",titleKey:"text_to_video",href:"/text-to-video"},{key:"image-to-video",titleKey:"image_to_video",href:"/image-to-video"},{key:"reference-to-video",titleKey:"reference_to_video",href:"/reference-to-video"},{key:"video-to-video",titleKey:"video_to_video",href:"/video-to-video"}]},{key:"image",titleKey:"ai_image",href:"/text-to-image",icon:l.A,modes:[{key:"text-to-image",titleKey:"text_to_image",href:"/text-to-image"},{key:"image-to-image",titleKey:"image_to_image",href:"/image-to-image"}]},{key:"tool",titleKey:"ai_tool",href:"/background-remover",icon:d.A,modes:[{key:"image-background-remover",titleKey:"image_background_remover",href:"/background-remover"}]},{key:"model",titleKey:"ai_model",href:"/seedance-2-0-mini",icon:c.A,modes:[{key:"seedance-2-0-mini",titleKey:"seedance_2_0_mini",href:"/seedance-2-0-mini"},{key:"seedance-2-5",titleKey:"seedance_2_5",href:"/seedance-2-5"}]}],K=[{key:"assets",titleKey:"assets",href:"/assets",icon:h.A}],A={show_name:!0,show_credits:!0,show_sign_out:!0,items:[{title:"My Creations",url:"/activity/ai-tasks",icon:"Image"},{title:"Billing",url:"/settings/billing",icon:"CreditCard"}]}
1,C={video:"text-to-video",image:"text-to-image",tool:"image-background-remover",model:"seedance-2-0-mini"};function E(e){var t,a;let{children:r,brand:o,activeSection:l="video",footer:d,discountBanner:c}=e,h=(0,n.c3)("dashboard"),x=(0,u.a8)(),f=(0,y.a)(),{dismiss:S}=(0,w.Z)(),[K,C]=(0,s.useState)(k),[E,L]=(0,s.useState)(null),[M,T]=(0,s.useState)(!0),[z,D]=(0,s.useState)(!1),U=!0===E,B=(null==o?void 0:o.title)||"",H=(null==o?void 0:o.url)||"/";return(0,s.useEffect)(()=>{let e=window.setInterval(()=>{C(k())},1e3);return()=>window.clearInterval(e)},[]),(0,s.useEffect)(()=>{L("true"!==window.localStorage.getItem(w.ri))},[]),(0,s.useEffect)(()=>{D(!1)},[x]),(0,i.jsxs)("div",{className:"min-h-screen bg-[#080916] text-white",style:{..._,"--app-header-height":U?"108px":"56px","--generator-panel-height":"calc(100svh - var(--app-header-height, 56px) - 5.25rem)"},children:[(0,i.jsxs)("header",{className:"sticky top-0 z-40",children:[U?(0,i.jsx)("div",{className:"relative w-full overflow-hidden border-b border-white/10",children:(0,i.jsx)(N.DiscountBannerContent,{title:(null==c?void 0:c.title)||"Launch Credits",highlightText:(null==c?void 0:c.highlight_text)||"25% EXTRA",description:(null==c?void 0:c.description)||"for early HappyHorse AI creators",buttonText:(null==c||null==(t=c.button)?void 0:t.title)||"View pricing",buttonUrl:(null==c||null==(a=c.button)?void 0:a.url)||"/pricing",timeLeft:K,onDismiss:()=>{window.localStorage.setItem(w.ri,"true"),S(),L(!1)}})}):null,(0,i.jsx)("div",{className:"border-b border-white/10 bg-[#0d0d1c]",children:(0,i.jsxs)("div",{className:"flex h-14 items-center justify-between gap-4 pr-3 pl-1 sm:pr-4 md:pr-6 md:pl-2 lg:pr-8",children:[(0,i.jsxs)("div",{className:"flex min-w-0 items-center gap-4",children:[(0,i.jsx)("button",{type:"button","aria-label":"Toggle sidebar","aria-controls":f?"ai-dashboard-sidebar-mobile":"ai-dashboard-sidebar-desktop","aria-expanded":f?z:M,className:"flex h-10 w-10 items-center justify-center rounded-xl text-white/72 transition hover:bg-white/[0.06] hover:text-white",onClick:()=>{if(f)return void D(e=>!e);T(e=>!e)},children:(0,i.jsx)(m.A,{className:"h-5 w-5"})}),(0,i.jsx)(u.N_,{href:H,className:"flex min-w-0 items-center",children:(0,i.jsx)("span",{className:"text-cinematic-gradient truncate text-xl font-semibold",children:B})})]}),(0,i.jsxs)("div",{className:"flex shrink-0 items-center gap-3",children:[(0,i.jsx)(g.LocaleSelector,{}),(0,i.jsx)(v.SignUser,{userNav:A,signButtonSize:"default"})]})]})})]}),(0,i.jsxs)("div",{className:"flex min-h-[calc(100svh-var(--app-header-height,96px))]",children:[(0,i.jsx)("aside",{id:"ai-dashboard-sidebar-desktop",className:(0,j.cn)("sticky top-[var(--app-header-height,96px)] hidden h-[calc(100svh-var(--app-header-height,96px))] shrink-0 self-start border-r border-white/10 bg-[#080916] transition-[width] duration-200 md:flex",M?"w-[17.5rem]":"w-[3.75rem] overflow-hidden"),children:(0,i.jsx)(I,{activeSection:l,collapsed:!M})}),(0,i.jsx)(b.cj,{open:z,onOpenChange:D,children:(0,i.jsxs)(b.h,{side:"left",className:"w-[15rem] border-white/10 bg-[#080916] p-0 text-white [&>button]:top-4 [&>button]:right-4",children:[(0,i.jsxs)(b.Fm,{className:"sr-only",children:[(0,i.jsx)(b.qp,{children:h("creation_sidebar")}),(0,i.jsx)(b.Qs,{children:"Navigate between AI video and image tools."})]}),(0,i.jsx)("div",{id:"ai-dashboard-sidebar-mobile",className:"flex h-full flex-col",children:(0,i.jsx)(I,{activeSection:l})})]})}),(0,i.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col",children:[(0,i.jsx)("main",{className:"min-w-0 flex-1 bg-[#090b15] px-4 pt-4 pb-8 md:px-6",children:(0,i.jsx)("div",{className:"flex w-full flex-col gap-4 [&_#generator]:py-0 [&_#generator_.container]:max-w-none [&_#generator_.container]:px-0 [&_#generator_.container>div]:max-w-none",children:r})}),d?(0,i.jsx)(p.G,{footer:d}):null]})]})]})}function I(e){var t,a,o,l,d,c;let{activeSection:h,collapsed:m=!1}=e,f=(0,n.c3)("dashboard"),g=(0,u.a8)(),p=(0,r.useSearchParams)(),[v,b]=(0,s.useState)(()=>({video:!0,image:!0,tool:!0,model:!0})),w=p.get("tab"),y="video"===h||"image"===h||"tool"===h||"model"===h?h:null,N=y&&w&&(null==(a=S.find(e=>e.key===y))||null==(t=a.modes)?void 0:t.some(e=>e.key===w))?w:y?null!=(c=null==(d=S.find(e=>e.key===y))||null==(l=d.modes)||null==(o=l.find(e=>e.href.split("?")[0]===g))?void 0:o.key)?c:C[y]:void 0;return(0,s.useEffect)(()=>{y&&b(e=>({...e,[y]:!0}))},[y]),(0,i.jsxs)("div",{className:(0,j.cn)("flex h-full min-h-0 w-full flex-col py-6 transition-[padding] duration-200",m?"items-center px-2":"px-2"),children:[(0,i.jsxs)("nav",{className:(0,j.cn)("flex flex-1 flex-col",m?"items-center gap-3":"gap-5"),children:[(0,i.jsxs)("div",{className:"space-y-2",children:[!m&&(0,i.jsx)("div",{className:"px-1 text-[10px] font-black tracking-[0.28em] text-white/34 uppercase",children:f("creation")}),(0,i.jsx)("div",{className:"space-y-1.5",children:S.map(e=>{var t;return(0,i.jsx)(L,{item:e,title:f(e.titleKey),active:e.key===y,activeModeKey:N,exp
1anded:null!=(t=v[e.key])&&t,onToggle:()=>{var t;return t=e.key,void b(e=>({...e,[t]:!e[t]}))},collapsed:m},e.key)})})]}),(0,i.jsx)("div",{className:(0,j.cn)("space-y-1.5 pt-3",!m&&"border-t border-white/10"),children:K.map(e=>(0,i.jsx)(L,{item:e,title:f(e.titleKey),active:h===e.key||g===e.href,collapsed:m},e.key))})]}),(0,i.jsx)(u.N_,{href:"/pricing",title:m?"Upgrade Now":void 0,className:(0,j.cn)("relative mt-auto flex items-center justify-center border border-white/10 bg-[linear-gradient(135deg,#ec3bab_0%,#c33df1_100%)] text-sm font-semibold text-white shadow-[0_18px_42px_rgba(236,59,171,0.2),inset_0_1px_0_rgba(255,255,255,0.18)] transition hover:-translate-y-0.5 hover:brightness-110",m?"h-9 w-9 rounded-xl px-0 py-0":"h-12 w-full rounded-full px-4 py-1"),children:m?(0,i.jsx)(x.A,{className:"h-4 w-4"}):(0,i.jsx)("span",{className:"truncate",children:"Upgrade Now"})})]})}function L(e){var t,a;let{item:s,title:r,active:o=!1,activeModeKey:l,expanded:d=!1,onToggle:c,collapsed:h=!1}=e,m=(0,n.c3)("dashboard"),g=s.icon,p=!!(null==(t=s.modes)?void 0:t.length),v=p&&d,b=o&&("video"===s.key||"image"===s.key||"tool"===s.key||"model"===s.key);return h||!p?(0,i.jsxs)(u.N_,{href:s.href,title:h?r:void 0,"aria-label":h?r:void 0,className:(0,j.cn)("flex h-10 items-center rounded-xl text-sm font-semibold transition",h?"w-9 justify-center px-0":"gap-3 px-2.5",o?"text-white":"text-white/48 hover:bg-white/[0.045] hover:text-white/78"),children:[b?(0,i.jsx)(x.A,{className:"text-primary h-4 w-4"}):(0,i.jsx)(g,{className:"h-4 w-4"}),(0,i.jsx)("span",{className:(0,j.cn)("min-w-0 flex-1 truncate",h&&"sr-only"),children:r})]}):(0,i.jsxs)("div",{children:[(0,i.jsxs)("button",{type:"button","aria-label":"".concat(d?"Collapse":"Expand"," ").concat(r),"aria-expanded":d,onClick:c,className:(0,j.cn)("flex h-10 w-full items-center gap-3 rounded-xl px-2.5 text-left text-sm font-semibold transition",o?"text-white":"text-white/48 hover:bg-white/[0.045] hover:text-white/78"),children:[b?(0,i.jsx)(x.A,{className:"text-primary h-4 w-4"}):(0,i.jsx)(g,{className:"h-4 w-4"}),(0,i.jsx)("span",{className:"min-w-0 flex-1 truncate",children:r}),(0,i.jsx)(f.A,{className:(0,j.cn)("h-3.5 w-3.5 shrink-0 transition-transform",d?"rotate-0":"-rotate-90",o?"text-white/58":"text-white/30")})]}),v&&(0,i.jsx)("div",{className:"mt-1 ml-4 space-y-1 border-l border-white/10 pl-3",children:null==(a=s.modes)?void 0:a.map(e=>{let t=e.key===l,a=m(e.titleKey);return(0,i.jsx)(u.N_,{href:e.href,className:(0,j.cn)("flex min-h-8 items-center rounded-lg px-2 text-xs leading-tight font-semibold transition",t?"bg-white/[0.065] text-white shadow-[inset_0_1px_0_rgba(255,255,255,0.04)]":"text-white/44 hover:bg-white/[0.045] hover:text-white/76"),children:(0,i.jsx)("span",{className:"truncate",children:a})},e.key)})})]})}},87881:(e,t,a)=>{a.d(t,{a:()=>s});var i=a(79998);function s(){let[e,t]=i.useState(!1),[a,s]=i.useState(!1);return i.useEffect(()=>{s(!0);let e=window.matchMedia("(max-width: ".concat(767,"px)")),a=()=>{t(window.innerWidth<768)};return e.addEventListener("change",a),t(window.innerWidth<768),()=>e.removeEventListener("change",a)},[]),!!a&&e}}}]);

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.