PageSourceSearch

https://imideo.io/_next/static/chunks/383.ae3695e15d522c19.js

js imideo.io collected 2026-10-10 02:39:02 UTC 33,696 bytes, 5 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[383,8276,7674],{61152:function(e,t,r){r.d(t,{_:function(){return o}});var n=r(57437),a=r(51817),s=r(82675);function o(e){let{userCredits:t,isLoadingCredits:r,requiredCredits:o,onBuyClick:i,labels:l,requiredSlot:d,pendingLabel:c}=e;if(!t||0===o&&!c)return null;let u=0===o,f=(e,t)=>Object.entries(t).reduce((e,t)=>{let[r,n]=t;return e.replace(RegExp(`{${r}}`,"g"),String(n))},e);return(0,n.jsx)("div",{className:"flex items-center justify-end gap-4",children:(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("div",{className:"text-xs text-muted-foreground",children:d??(u?c:l?.required?f(l.required,{credits:o}):`Required: ${o} credits`)}),r?(0,n.jsxs)("div",{className:"text-xs px-2 py-1 rounded-full bg-muted/20 flex items-center gap-1",children:[(0,n.jsx)(a.Z,{className:"w-3 h-3 animate-spin"}),l?.loading||"Loading..."]}):(0,n.jsx)("div",{className:(0,s.cn)("text-xs px-2 py-1 rounded-full",t.left_credits>=o?"bg-[hsl(142,50%,28%)]/20 text-[hsl(142,50%,45%)]":"bg-red-500/20 text-red-600"),children:l?.balance?f(l.balance,{credits:t.left_credits}):`Balance: ${t.left_credits} credits`}),!r&&!u&&t.left_credits<o&&(0,n.jsx)("button",{onClick:i,className:"text-xs font-medium bg-gradient-to-r from-[hsl(142,50%,35%)] via-[hsl(142,50%,40%)] to-[hsl(160,50%,40%)] bg-clip-text text-transparent hover:opacity-80 transition-opacity cursor-pointer underline decoration-[hsl(142,50%,40%)]",children:l?.buy||"Buy"})]})})}},24798:function(e,t,r){r.r(t),r.d(t,{default:function(){return N}});var n=r(57437),a=r(2265),s=r(66070),o=r(30166),i=r(19006),l=r(19020),d=r(62869),c=r(82431),u=r(42586);let f=a.memo(function(e){let{onClick:t,disabled:r,isCreating:a,requiredCredits:s,isImageMode:o=!1}=e,i=(0,u.useTranslations)("video_generator"),l=o?a?"Generating...":"Create Image":i("create.create_button");return(0,n.jsx)(d.z,{onClick:t,disabled:r,className:"w-full h-14 bg-gradient-to-r from-primary to-green-700 hover:from-primary/80 hover:to-green-800 disabled:from-muted/50 disabled:to-muted/50 disabled:text-muted-foreground disabled:cursor-not-allowed text-white text-lg font-semibold transition-all duration-200",children:a?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.Z,{className:"w-5 h-5 mr-2 animate-spin"}),l]}):(0,n.jsxs)(n.Fragment,{children:[l,s>0&&(0,n.jsxs)(n.Fragment,{children:[" | ",(0,n.jsxs)("span",{children:[s," Credits"]})]})]})})},(e,t)=>e.onClick===t.onClick&&e.disabled===t.disabled&&e.isCreating===t.isCreating&&e.requiredCredits===t.requiredCredits&&e.isImageMode===t.isImageMode);var p=r(26815),m=r(53647);let g=a.memo(function(e){let{value:t,max:r,disabled:a,onChange:s}=e,o=(0,u.useTranslations)("video_generator"),i=Number(r),l=Number.isFinite(i)?Math.max(1,Math.min(4,Math.floor(i))):1,d=Array.from({length:l},(e,t)=>t+1),c=Number(t),f=Number.isFinite(c)?Math.min(Math.max(1,Math.floor(c)),l):1;return(0,n.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center gap-2 w-full sm:w-auto",children:[(0,n.jsx)(p._,{htmlFor:"batch-variants",className:"text-sm font-medium whitespace-nowrap text-left block sm:inline",children:o("create.settings.variants")}),(0,n.jsxs)(m.Ph,{value:String(f),onValueChange:e=>s(Number(e)),disabled:a,children:[(0,n.jsx)(m.i4,{id:"batch-variants",className:"w-full sm:w-24 h-11 sm:h-10 bg-background/80 backdrop-blur-md !border-white/25",children:(0,n.jsx)("span",{className:"text-left",children:f})}),(0,n.jsx)(m.Bw,{children:d.map(e=>(0,n.jsx)(m.Ql,{value:String(e),children:e},e))})]})]})});var x=r(98141),h=r(20512),b=r(94152);let v=(0,o.default)(()=>r.e(9042).then(r.bind(r,19042)).then(e=>({default:e.default})),{loadableGenerated:{webpack:()=>[19042]},ssr:!1,loading:()=>null}),y=(0,o.default)(()=>Promise.all([r.e(3087),r.e(7259),r.e(4206),r.e(7414),r.e(9397)]).then(r.bind(r,7453)).then(e=>({default:e.ImageModePanel})),{loadableGenerated:{webpack:()=>[7453]},ssr:!1,loading:()=>(0,n.jsx)("div",{className:"h-48 rounded-lg bg-background/30"})}),w=(0,o.default)(()=>Promise.all([r.e(8089),r.e(8998)]).then(r.bind(r,12211)).then(e=>({default:e.VideoReplacerModePanel})),{loadableGenerated:{webpack:()=>[12211]},ssr:!1,loading:()=>(0,n.jsx)("div",{className:"h-48 rounded-lg bg-background/30"})}),j=(0,o.default)(()=>Promise.resolve().then(r.bind(r,99818)).then(e=>({default:e.VideoModeTabs})),{loadableGenerated:{webpack:()=>[99818]},ssr:!1,loading:()=>(0,n.jsx)("div",{className:"h-11 rounded-md bg-background/30"})});var N=a.memo(function(e){let{userCredits:t,isLoadingCredits:r,scrollToPricing:o,setShowLoginModal:d,calculateRequiredCredits:c,hideTabs:u=!1,discordInvitePageUrl:p}=e,m=(0,i.b)(),{videoMode:N,setVideoMode:k,resetProgress:C}=m,R=(0,x.P)({userCredits:t,isLoadingCredits:r,setShowLoginModal:d,discordInvitePageUrl:p}),{isImageMode:M,isVideoReplacerMode:D,batchVariants:V,setBatchVariants:_,batchVariantMax:z,supportsBatchVariants:T,requiredCredits:O,isCreating:P,isButtonDisabled:I,submit:Z}=R,E=T?(0,n.jsx)(g,{value:V,max:z,disabled:P,onChange:_}):null,F=(0,a.useCallback)(()=>{C()},[C]);return(0,n.jsxs)("div",{className:"w-full mx-auto",children:[!u&&(0,n.jsx)("div",{className:"w-full mb-6 relative z-30",children:(0,n.jsx)(j,{videoMode:N,onVideoModeChange:k,disabled:P,excludeModes:l.dV})}),(0,n.jsx)("div",{className:"w-full mx-auto",children:(0,n.jsx)("div",{className:"rounded-lg transition-colors duration-500",style:{borderColor:"image-to-vi
1deo"===N?"rgba(139, 92, 246, 0.3)":"text-to-video"===N?"rgba(34, 197, 94, 0.3)":"rgba(20, 184, 166, 0.3)"},children:(0,n.jsx)(s.Zb,{className:"w-full border-white/30 backdrop-blur-sm bg-background/95 shadow-xl",children:(0,n.jsxs)(s.aY,{className:"pt-10 px-6 pb-6 space-y-6",children:[(0,n.jsx)(v,{onTryAgain:F}),D?(0,n.jsx)(w,{}):M?(0,n.jsx)(y,{isCreating:P,isLoadingCredits:r,userCredits:t,setShowLoginModal:d,extraControls:E}):(0,n.jsx)(b.VideoModePanel,{isCreating:P,isLoadingCredits:r,userCredits:t,scrollToPricing:o,setShowLoginModal:d,extraControls:E}),!D&&(0,n.jsx)(f,{onClick:Z,disabled:I,isCreating:P,requiredCredits:O*(T?V:1),isImageMode:M})]})})})}),(0,n.jsx)(h.V,{bridge:D?void 0:{state:m,controller:R}})]})})},20512:function(e,t,r){r.d(t,{V:function(){return l}});var n=r(57437),a=r(2265),s=r(30166),o=r(95301);let i=(0,s.default)(()=>r.e(2033).then(r.bind(r,32033)),{loadableGenerated:{webpack:()=>[32033]},ssr:!1});function l(e){let{bridge:t,kind:r="video"}=e,s=(0,a.useRef)(null),[l,d]=(0,a.useState)(!1),[c,u]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let e;let t=s.current;if(!t||"undefined"==typeof IntersectionObserver)return;let r=document.querySelector(".sticky-header"),n=()=>{e?.disconnect();let n=r?.getBoundingClientRect().height??0;(e=new IntersectionObserver(e=>{let[t]=e;d(e=>(0,o.uG)(t,e))},{rootMargin:`-${Math.ceil(n)}px 0px 0px 0px`,threshold:[0,1]})).observe(t)};n();let a="undefined"!=typeof ResizeObserver?new ResizeObserver(n):null;return r&&a?.observe(r),()=>{e.disconnect(),a?.disconnect()}},[]),(0,a.useEffect)(()=>{l&&u(!0)},[l]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{"aria-hidden":"true",className:"pointer-events-none relative block h-0 w-full",children:(0,n.jsx)("span",{ref:s,"data-creator-workspace-end":!0,className:"absolute bottom-0 left-0 block h-6 w-px"})}),c&&(0,n.jsx)(i,{passed:l,bridge:t,initialKind:r})]})}},35974:function(e,t,r){r.d(t,{C:function(){return i}});var n=r(57437);r(2265);var a=r(90535),s=r(82675);let o=(0,a.j)("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function i(e){let{className:t,variant:r,...a}=e;return(0,n.jsx)("div",{className:(0,s.cn)(o({variant:r}),t),...a})}},62869:function(e,t,r){r.d(t,{d:function(){return l},z:function(){return d}});var n=r(57437),a=r(2265),s=r(37053),o=r(90535),i=r(82675);let l=(0,o.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-white/20 bg-background hover:bg-white/5 hover:text-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-transparent hover:text-foreground",link:"text-primary underline-offset-4 hover:underline",glowingGradient:"button-glowing-gradient relative overflow-hidden bg-transparent border-0 rounded-3xl text-foreground !px-16 !py-7 !text-lg font-semibold hover:scale-110 transition-all duration-300"},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"}}),d=a.forwardRef((e,t)=>{let{className:r,variant:a,size:o,asChild:d=!1,...c}=e,u=d?s.g7:"button";return(0,n.jsx)(u,{className:(0,i.cn)(l({variant:a,size:"glowingGradient"===a?void 0:o}),r),ref:t,...c})});d.displayName="Button"},66070:function(e,t,r){r.d(t,{Ol:function(){return i},Zb:function(){return o},aY:function(){return d},ll:function(){return l}});var n=r(57437),a=r(2265),s=r(82675);let o=a.forwardRef((e,t)=>
1{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",r),...a})});o.displayName="Card";let i=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("flex flex-col space-y-1.5 p-6",r),...a})});i.displayName="CardHeader";let l=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("text-2xl font-semibold leading-none tracking-tight",r),...a})});l.displayName="CardTitle",a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("text-sm text-muted-foreground",r),...a})}).displayName="CardDescription";let d=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("p-6 pt-0",r),...a})});d.displayName="CardContent",a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("flex items-center p-6 pt-0",r),...a})}).displayName="CardFooter"},26110:function(e,t,r){r.d(t,{$N:function(){return x},Be:function(){return h},PK:function(){return c},Vq:function(){return d},cN:function(){return g},cZ:function(){return p},fK:function(){return m}});var n=r(57437),a=r(2265),s=r(70001),o=r(21047),i=r(32489),l=r(82675);let d=s.fC;s.xz;let c=s.h_;function u(e){let{title:t="Dialog",description:r="Dialog content"}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.Dx,{className:"sr-only",children:t}),(0,n.jsx)(s.dk,{className:"sr-only",children:r})]})}s.x8;let f=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(s.aV,{ref:t,className:(0,l.cn)("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r),...a})});f.displayName=s.aV.displayName;let p=a.forwardRef((e,t)=>{let{className:r,children:a,showMinimize:d=!1,...p}=e;return(0,n.jsxs)(c,{children:[(0,n.jsx)(f,{}),(0,n.jsxs)(s.VY,{ref:t,className:(0,l.cn)("fixed left-[50%] top-[50%] z-[9999] grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",r),...p,children:[(0,n.jsx)(u,{}),a,(0,n.jsxs)("div",{className:"absolute right-3 top-3 sm:right-4 sm:top-4 flex items-center gap-2 z-50",children:[d&&(0,n.jsxs)(s.x8,{className:"rounded-full p-2 sm:p-1.5 bg-white/10 hover:bg-white/20 backdrop-blur-sm opacity-70 ring-offset-background transition-all hover:opacity-100 active:scale-95 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,n.jsx)(o.Z,{className:"h-4 w-4"}),(0,n.jsx)("span",{className:"sr-only",children:"Minimize"})]}),(0,n.jsxs)(s.x8,{className:"rounded-full p-2 sm:p-1.5 bg-white/10 hover:bg-white/20 backdrop-blur-sm opacity-70 ring-offset-background transition-all hover:opacity-100 active:scale-95 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,n.jsx)(i.Z,{className:"h-4 w-4"}),(0,n.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})]})});p.displayName=s.VY.displayName;let m=e=>{let{className:t,...r}=e;return(0,n.jsx)("div",{className:(0,l.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...r})};m.displayName="DialogHeader";let g=e=>{let{className:t,...r}=e;return(0,n.jsx)("div",{className:(0,l.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...r})};g.displayName="DialogFooter";let x=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(s.Dx,{ref:t,className:(0,l.cn)("text-lg font-semibold leading-none tracking-tight",r),...a})});x.displayName=s.Dx.displayName;let h=a.forwardRef((e,t)=>
1{let{className:r,...a}=e;return(0,n.jsx)(s.dk,{ref:t,className:(0,l.cn)("text-sm text-muted-foreground",r),...a})});h.displayName=s.dk.displayName},26815:function(e,t,r){r.d(t,{_:function(){return d}});var n=r(57437),a=r(2265),s=r(370),o=r(90535),i=r(82675);let l=(0,o.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(s.f,{ref:t,className:(0,i.cn)(l(),r),...a})});d.displayName=s.f.displayName},68163:function(e,t,r){r.d(t,{s:function(){return s}});var n=r(57437);r(2265);var a=r(82675);function s(e){let{options:t,value:r,onChange:s,disabled:o=!1,className:i,size:l="md"}=e,d={sm:"px-3 py-1.5 text-xs min-h-[36px]",md:"px-4 py-2 text-sm min-h-[40px]",lg:"px-6 py-3 text-base min-h-[48px]"};return(0,n.jsx)("div",{className:(0,a.cn)("inline-flex rounded-md border border-border/50","bg-background/30",{sm:"p-0.5 gap-0.5",md:"p-1 gap-1",lg:"p-1.5 gap-1.5"}[l],o&&"opacity-50 pointer-events-none",i),children:t.map(e=>{let t=r===e.value,i=o||e.disabled;return(0,n.jsxs)("button",{type:"button",onClick:()=>!i&&s(e.value),disabled:i,className:(0,a.cn)("relative rounded font-medium transition-all duration-200","flex items-center justify-center gap-2","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/50",d[l],t?["bg-[hsl(142,50%,28%)] text-white","shadow-sm"]:["text-foreground/60","hover:text-foreground hover:bg-background/50"],i&&"cursor-not-allowed opacity-50"),children:[e.icon,(0,n.jsx)("span",{children:e.label||e.value})]},e.value)})})}},53647:function(e,t,r){r.d(t,{Bw:function(){return b},Ph:function(){return u},Ql:function(){return v},RB:function(){return m},i4:function(){return g},ki:function(){return f}});var n=r(57437),a=r(2265),s=r(74797),o=r(40875),i=r(22135),l=r(30401),d=r(82675),c=r(27878);let u=s.fC;s.ZA;let f=s.B4,p=a.createContext(void 0),m=p.Provider,g=a.forwardRef((e,t)=>{let{className:r,children:a,...i}=e;return(0,n.jsxs)(s.xz,{ref:t,"aria-controls":void 0,className:(0,d.cn)(c.z,r),...i,children:[a,(0,n.jsx)(s.JO,{asChild:!0,children:(0,n.jsx)(o.Z,{className:"h-4 w-4 opacity-50"})})]})});g.displayName=s.xz.displayName;let x=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(s.u_,{ref:t,className:(0,d.cn)("flex cursor-default items-center justify-center py-1",r),...a,children:(0,n.jsx)(i.Z,{className:"h-4 w-4"})})});x.displayName=s.u_.displayName;let h=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(s.$G,{ref:t,className:(0,d.cn)("flex cursor-default items-center justify-center py-1",r),...a,children:(0,n.jsx)(o.Z,{className:"h-4 w-4"})})});h.displayName=s.$G.displayName;let b=a.forwardRef((e,t)=>{let{className:r,children:o,position:i="popper",style:l,...c}=e,u=a.useContext(p);return(0,n.jsx)(s.h_,{children:(0,n.jsxs)(s.VY,{ref:t,className:(0,d.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-white/20 bg-popover text-popover-foreground shadow-md 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","popper"===i&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:i,style:void 0===u?l:{zIndex:u,...l},...c,children:[(0,n.jsx)(x,{}),(0,n.jsx)(s.l_,{className:(0,d.cn)("p-1","popper"===i&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),(0,n.jsx)(h,{})]})})});b.displayName=s.VY.displayName,a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(s.__,{ref:t,className:(0,d.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",r),...a})}).displayName=s.__.displayName;let v=a.forwardRef((e,t)=>{let{className:r,children:a,...o}=e;return(0,n.jsxs)(s.ck,{ref:t,className:(0,d.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...o,children:[(0,n.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,n.jsx)(s.wU,{children:(0,n.jsx)(l.Z,{className:"h-4 w-4"})})}),(0,n.jsx)(s.eT,{children:a})]})});v.displayName=s.ck.displayName,a.forwardRef((e,t)=>
1{let{className:r,...a}=e;return(0,n.jsx)(s.Z0,{ref:t,className:(0,d.cn)("-mx-1 my-1 h-px bg-muted",r),...a})}).displayName=s.Z0.displayName},27878:function(e,t,r){r.d(t,{z:function(){return n}});let n="flex h-10 w-full items-center justify-between rounded-md border border-white/20 bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1"},85897:function(e,t,r){r.d(t,{i:function(){return i}});var n=r(57437),a=r(2265),s=r(38846),o=r(82675);let i=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsxs)(s.fC,{ref:t,className:(0,o.cn)("relative flex w-full touch-none select-none items-center",r),...a,children:[(0,n.jsx)(s.fQ,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:(0,n.jsx)(s.e6,{className:"absolute h-full bg-primary"})}),(0,n.jsx)(s.bU,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background 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"})]})});i.displayName=s.fC.displayName},76818:function(e,t,r){r.d(t,{g:function(){return o}});var n=r(57437),a=r(2265),s=r(82675);let o=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("textarea",{className:(0,s.cn)("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",r),ref:t,...a})});o.displayName="Textarea"},27527:function(e,t,r){r.d(t,{Q:function(){return s}});var n=r(2265),a=r(93327);function s(){let{user:e,setShowSignModal:t}=(0,a.b)();return{requireAuth:(0,n.useCallback)(()=>!!e||(t(!0),!1),[e,t]),isAuthenticated:!!e}}},40875:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},98617:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("Crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]])},85842:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("Focus",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}]])},21047:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]])},22106:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("Music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]])},82431:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},98728:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},32262:function(e,t,r){r.d(t,{D:function(){return s}});var n=r(3011),a=r(89134);let s=(0,n.U)()((0,a.tJ)((e,t)=>({tasks:[],recentVideos:[],ownerUuid:null,maxConcurrent:1,maxBatchVariants:1,isTaskModalOpen:!1,currentTab:"active",videosPagination:{page:1,pageSize:20,total:0,hasMore:!1},addTask:r=>{let{tasks:n,maxConcurrent:a}=t();if(n.filter(e=>"pending"===e.status||"processing"===e.status).length>=a){let e=Error(`Concurrent task limit reached (${a})`);throw console.error("[TaskStore]",e.message),e}e({tasks:[r,...n]})},updateTask:(t,r)=>
1{e(e=>({tasks:e.tasks.map(e=>{if(e.id!==t)return e;let n=Object.entries(r).reduce((t,r)=>{let[n,a]=r;return void 0===a&&void 0!==e[n]?t:{...t,[n]:a}},{});return{...e,...n,updatedAt:Date.now()}})}))},removeTask:t=>{e(e=>({tasks:e.tasks.filter(e=>e.id!==t)}))},claimOwner:r=>{let{ownerUuid:n}=t();n!==r&&(n&&console.log("[TaskStore] Account changed, clearing previous owner's tasks"),e({...n?{tasks:[],recentVideos:[],maxConcurrent:1,videosPagination:{page:1,pageSize:20,total:0,hasMore:!1}}:{},ownerUuid:r}))},setMaxConcurrent:t=>{e({maxConcurrent:t})},setMaxBatchVariants:t=>{e({maxBatchVariants:Math.max(1,Math.min(4,Math.floor(t)))})},openTaskModal:()=>e({isTaskModalOpen:!0,currentTab:"active"}),closeTaskModal:()=>e({isTaskModalOpen:!1}),setCurrentTab:t=>e({currentTab:t}),loadRecentVideos:async function(r){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;try{let r=t().videosPagination.pageSize,a=await fetch(`/api/my-assets?page=${n}&pageSize=${r}`,{credentials:"include"});if(!a.ok)throw Error("Failed to load videos");let{videos:s,total:o}=await a.json();e({recentVideos:1===n?s:[...t().recentVideos,...s],videosPagination:{page:n,pageSize:r,total:o,hasMore:s.length===r}})}catch(e){console.error("Failed to load recent videos:",e)}},loadMoreVideos:async e=>{let{page:r,hasMore:n}=t().videosPagination;n&&await t().loadRecentVideos(void 0,r+1)},getActiveTasks:()=>t().tasks.filter(e=>"pending"===e.status||"processing"===e.status),getCompletedTasks:()=>t().tasks.filter(e=>"completed"===e.status),canAddTask:()=>{let{tasks:e,maxConcurrent:r}=t();return e.filter(e=>"pending"===e.status||"processing"===e.status).length<r}}),{name:"task-store",partialize:e=>({tasks:e.tasks,ownerUuid:e.ownerUuid,maxConcurrent:e.maxConcurrent})}))},70001:function(e,t,r){r.d(t,{x8:function(){return eo},VY:function(){return en},dk:function(){return es},aV:function(){return er},h_:function(){return et},fC:function(){return X},Dx:function(){return ea},xz:function(){return ee}});var n=r(2265),a=r(6741),s=r(98575),o=r(73966),i=r(99255),l=r(80886),d=r(15278),c=r(99103),u=r(83832),f=r(71599),p=r(82912),m=r(86097),g=r(87922),x=r(5478),h=r(57437),b=Symbol("radix.slottable");function v(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===b}var y="Dialog",[w,j]=(0,o.b)(y),[N,k]=w(y),C=e=>{let{__scopeDialog:t,children:r,open:a,defaultOpen:s,onOpenChange:o,modal:d=!0}=e,c=n.useRef(null),u=n.useRef(null),[f,p]=(0,l.T)({prop:a,defaultProp:s??!1,onChange:o,caller:y});return(0,h.jsx)(N,{scope:t,triggerRef:c,contentRef:u,contentId:(0,i.M)(),titleId:(0,i.M)(),descriptionId:(0,i.M)(),open:f,onOpenChange:p,onOpenToggle:n.useCallback(()=>p(e=>!e),[p]),modal:d,children:r})};C.displayName=y;var R="DialogTrigger",M=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=k(R,r),i=(0,s.e)(t,o.triggerRef);return(0,h.jsx)(p.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":U(o.open),...n,ref:i,onClick:(0,a.Mj)(e.onClick,o.onOpenToggle)})});M.displayName=R;var D="DialogPortal",[V,_]=w(D,{forceMount:void 0}),z=e=>{let{__scopeDialog:t,forceMount:r,children:a,container:s}=e,o=k(D,t);return(0,h.jsx)(V,{scope:t,forceMount:r,children:n.Children.map(a,e=>(0,h.jsx)(f.z,{present:r||o.open,children:(0,h.jsx)(u.h,{asChild:!0,container:s,children:e})}))})};z.displayName=D;var T="DialogOverlay",O=n.forwardRef((e,t)=>{let r=_(T,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,s=k(T,e.__scopeDialog);return s.modal?(0,h.jsx)(f.z,{present:n||s.open,children:(0,h.jsx)(I,{...a,ref:t})}):null});O.displayName=T;var P=function(e){let t=function(e){let t=n.forwardRef((e,t)=>{let{children:r,...a}=e;if(n.isValidElement(r)){let e,o;let i=(e=Object.getOwnPropertyDescriptor(r.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?r.ref:(e=Object.getOwnPropertyDescriptor(r,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?r.props.ref:r.props.ref||r.ref,l=function(e,t){let r={...t};for(let n in t){let a=e[n],s=t[n];/^on[A-Z]/.test(n)?a&&s?r[n]=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let n=s(...t);return a(...t),n}:a&&(r[n]=a):"style"===n?r[n]={...a,...s}
1:"className"===n&&(r[n]=[a,s].filter(Boolean).join(" "))}return{...e,...r}}(a,r.props);return r.type!==n.Fragment&&(l.ref=t?(0,s.F)(t,i):i),n.cloneElement(r,l)}return n.Children.count(r)>1?n.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=n.forwardRef((e,r)=>{let{children:a,...s}=e,o=n.Children.toArray(a),i=o.find(v);if(i){let e=i.props.children,a=o.map(t=>t!==i?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,h.jsx)(t,{...s,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,a):null})}return(0,h.jsx)(t,{...s,ref:r,children:a})});return r.displayName=`${e}.Slot`,r}("DialogOverlay.RemoveScroll"),I=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=k(T,r);return(0,h.jsx)(g.Z,{as:P,allowPinchZoom:!0,shards:[a.contentRef],children:(0,h.jsx)(p.WV.div,{"data-state":U(a.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Z="DialogContent",E=n.forwardRef((e,t)=>{let r=_(Z,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,s=k(Z,e.__scopeDialog);return(0,h.jsx)(f.z,{present:n||s.open,children:s.modal?(0,h.jsx)(F,{...a,ref:t}):(0,h.jsx)(S,{...a,ref:t})})});E.displayName=Z;var F=n.forwardRef((e,t)=>{let r=k(Z,e.__scopeDialog),o=n.useRef(null),i=(0,s.e)(t,r.contentRef,o);return n.useEffect(()=>{let e=o.current;if(e)return(0,x.Ry)(e)},[]),(0,h.jsx)(A,{...e,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,a.Mj)(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:(0,a.Mj)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:(0,a.Mj)(e.onFocusOutside,e=>e.preventDefault())})}),S=n.forwardRef((e,t)=>{let r=k(Z,e.__scopeDialog),a=n.useRef(!1),s=n.useRef(!1);return(0,h.jsx)(A,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(a.current||r.triggerRef.current?.focus(),t.preventDefault()),a.current=!1,s.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(a.current=!0,"pointerdown"!==t.detail.originalEvent.type||(s.current=!0));let n=t.target;r.triggerRef.current?.contains(n)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&s.current&&t.preventDefault()}})}),A=n.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:i,...l}=e,u=k(Z,r),f=n.useRef(null),p=(0,s.e)(t,f);return(0,m.EW)(),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(c.M,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,h.jsx)(d.XB,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":U(u.open),...l,ref:p,onDismiss:()=>u.onOpenChange(!1)})}),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(Q,{titleId:u.titleId}),(0,h.jsx)(J,{contentRef:f,descriptionId:u.descriptionId})]})]})}),q="DialogTitle",B=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=k(q,r);return(0,h.jsx)(p.WV.h2,{id:a.titleId,...n,ref:t})});B.displayName=q;var $="DialogDescription",W=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=k($,r);return(0,h.jsx)(p.WV.p,{id:a.descriptionId,...n,ref:t})});W.displayName=$;var G="DialogClose",L=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,s=k(G,r);return(0,h.jsx)(p.WV.button,{type:"button",...n,ref:t,onClick:(0,a.Mj)(e.onClick,()=>s.onOpenChange(!1))})});function U(e){return e?"open":"closed"}L.displayName=G;var H="DialogTitleWarning",[Y,K]=(0,o.k)(H,{contentName:Z,titleName:q,docsSlug:"dialog"}),Q=e=>{let{titleId:t}=e,r=K(H),a=`\`${r.contentName}\` requires a \`${r.titleName}\` for the component to be accessible for screen reader users.
2
3If you want to hide the \`${r.titleName}\`, you can wrap it with our VisuallyHidden component.
4
5For more information, see https://radix-ui.com/primitives/docs/components/${r.docsSlug}`;return n.useEffect(()=>{t&&!document.getElementById(t)&&console.error(a)},[a,t]),null},J=e=>{let{contentRef:t,descriptionId:r}=e,a=K("DialogDescriptionWarning"),s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${a.contentName}}.`;return n.useEffect(()=>{let e=t.current?.getAttribute("aria-describedby");r&&e&&!document.getElementById(r)&&console.warn(s)},[s,t,r]),null},X=C,ee=M,et=z,er=O,en=E,ea=B,es=W,eo=L},50721:function(e,t,r){r.d(t,{bU:function(){return N},fC:function(){return j}});var n=r(2265),a=r(6741),s=r(98575),o=r(73966),i=r(80886),l=r(6718),d=r(90420),c=r(82912),u=r(57437),f="Switch",[p,m]=(0,o.b)(f),[g,x]=p(f),h=n.forwardRef((e,t)=>
5{let{__scopeSwitch:r,name:o,checked:l,defaultChecked:d,required:p,disabled:m,value:x="on",onCheckedChange:h,form:b,...v}=e,[j,N]=n.useState(null),k=(0,s.e)(t,e=>N(e)),C=n.useRef(!1),R=!j||b||!!j.closest("form"),[M,D]=(0,i.T)({prop:l,defaultProp:d??!1,onChange:h,caller:f});return(0,u.jsxs)(g,{scope:r,checked:M,disabled:m,children:[(0,u.jsx)(c.WV.button,{type:"button",role:"switch","aria-checked":M,"aria-required":p,"data-state":w(M),"data-disabled":m?"":void 0,disabled:m,value:x,...v,ref:k,onClick:(0,a.Mj)(e.onClick,e=>{D(e=>!e),R&&(C.current=e.isPropagationStopped(),C.current||e.stopPropagation())})}),R&&(0,u.jsx)(y,{control:j,bubbles:!C.current,name:o,value:x,checked:M,required:p,disabled:m,form:b,style:{transform:"translateX(-100%)"}})]})});h.displayName=f;var b="SwitchThumb",v=n.forwardRef((e,t)=>{let{__scopeSwitch:r,...n}=e,a=x(b,r);return(0,u.jsx)(c.WV.span,{"data-state":w(a.checked),"data-disabled":a.disabled?"":void 0,...n,ref:t})});v.displayName=b;var y=n.forwardRef((e,t)=>{let{__scopeSwitch:r,control:a,checked:o,bubbles:i=!0,...c}=e,f=n.useRef(null),p=(0,s.e)(f,t),m=(0,l.D)(o),g=(0,d.t)(a);return n.useEffect(()=>{let e=f.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(m!==o&&t){let r=new Event("click",{bubbles:i});t.call(e,o),e.dispatchEvent(r)}},[m,o,i]),(0,u.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:o,...c,tabIndex:-1,ref:p,style:{...c.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function w(e){return e?"checked":"unchecked"}y.displayName="SwitchBubbleInput";var j=h,N=v}}]);

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.