1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9601],{13950:(e,t,a)=>{a.d(t,{E:()=>i});var s=a(88999),o=a(96244);function i({className:e,...t}){return(0,s.jsx)("div",{"data-slot":"skeleton",className:(0,o.cn)("bg-accent animate-pulse rounded-md",e),...t})}},14146:(e,t,a)=>{a.d(t,{N:()=>o});var s=a(88999);function o(e){return(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:45.75,height:48,viewBox:"0 0 488 512",...e,children:[(0,s.jsx)("title",{children:"Google"}),(0,s.jsx)("path",{fill:"currentColor",d:"M488 261.8C488 403.3 391.1 504 248 504C110.8 504 0 393.2 0 256S110.8 8 248 8c66.8 0 123 24.5 166.3 64.9l-67.5 64.9C258.5 52.6 94.3 116.6 94.3 256c0 86.5 69.1 156.6 153.7 156.6c98.2 0 135-70.4 140.8-106.9H248v-85.3h236.1c2.3 12.7 3.9 24.9 3.9 41.4"})]})}a(431)},30738:(e,t,a)=>{a.d(t,{n:()=>b});var s=a(88999),o=a(14146),i=a(33303),n=a(99787);let l=[{src:"/login/login-image.png",kind:"image"}];var r=a(20927),c=a(59770),d=a(45551),m=a(33164),u=a(75771),g=a(67197),x=a(60466),f=a(96618),h=a(33576),p=a(431);let b=({children:e,mode:t="modal",asChild:a,callbackUrl:b})=>{let v=(0,c.tx)(),w=(0,f.Ym)(),k=(0,h.c)("Metadata"),[j,N]=(0,p.useState)(!1),[y,C]=(0,p.useState)(!1),[B,A]=(0,p.useState)(!1),[I,z]=(0,p.useState)(0),E=(0,p.useRef)(null);(0,p.useEffect)(()=>{N(!0)},[]),(0,p.useEffect)(()=>{y&&z(0)},[y]),(0,p.useEffect)(()=>{let e=E.current,t=l[I];if(e&&y&&t?.kind==="video")return e.loop=!1,(0,u.s)(e)},[y,I]);let S=()=>{let e=b?`${g.BV.Login}?callbackUrl=${encodeURIComponent(b)}`:`${g.BV.Login}`;v.push(e)},P=async e=>{await d.y.signIn.social({provider:"google",callbackURL:e,errorCallbackURL:g.BV.AuthError},{onRequest:()=>A(!0),onResponse:()=>A(!1),onSuccess:()=>A(!1),onError:()=>A(!1)})};if(!j)return a?(0,s.jsx)(s.Fragment,{children:e}):(0,s.jsx)("span",{className:"cursor-pointer",children:e});if("modal"===t){let t=(0,m.Qk)(g.l4,w),d=b||t,u=r.u.auth.enableGoogleLogin,f=l[I],h=()=>{z(e=>e+1<l.length?e+1:e)};return(0,s.jsxs)(n.lG,{open:y,onOpenChange:C,children:[(0,s.jsx)(n.zM,{asChild:a,children:e}),(0,s.jsxs)(n.Cf,{className:"flex max-h-[92vh] w-[calc(100vw-1.5rem)] max-w-[calc(100vw-1.5rem)] overflow-hidden rounded-[30px] border border-zinc-500/60 bg-[#efefef] p-0 shadow-[0_35px_90px_rgba(0,0,0,0.5)] sm:w-auto sm:max-w-[min(96vw,1320px)]",children:[(0,s.jsx)(n.c7,{className:"hidden",children:(0,s.jsx)(n.L3,{})}),(0,s.jsxs)("div",{className:"flex max-h-[92vh] min-h-0 w-full flex-col md:max-h-[92vh] md:w-auto md:flex-row md:items-stretch",children:[(0,s.jsx)("div",{className:"flex min-h-[min(46vh,360px)] w-full min-w-0 items-center justify-center bg-zinc-950/[0.06] md:min-h-0 md:w-[min(70vw,900px)] md:flex-none md:self-stretch",children:(0,s.jsx)("div",{className:"flex h-full w-full max-w-full items-center justify-center px-2 py-3 md:px-4 md:py-4",children:f?.kind==="video"?(0,s.jsx)("video",{ref:E,className:"mx-auto h-auto max-h-[min(56vh,460px)] w-full max-w-full bg-[#09090b] object-contain object-center md:max-h-[88vh] md:w-full md:max-w-full",src:f.src,muted:!0,playsInline:!0,preload:"auto",autoPlay:!0,onError:h},f.src):f?.kind==="image"?(0,s.jsx)("img",{alt:"",src:f.src,className:"mx-auto h-auto max-h-[min(56vh,460px)] w-full max-w-full object-contain object-center md:max-h-[88vh] md:w-full md:max-w-full",onError:h},f.src):null})}),(0,s.jsx)("div",{className:"flex w-full min-w-0 shrink-0 flex-col justify-center overflow-y-auto bg-[#e7e7e7] p-8 text-zinc-900 md:w-[360px] md:min-w-[360px] md:max-w-[380px] md:border-l md:border-zinc-300/80 md:p-10",children:(0,s.jsxs)("div",{className:"mx-auto w-full max-w-sm space-y-8",children:[(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("h2",{className:"mb-4 text-2xl font-semibold leading-none tracking-tight md:text-3xl",children:k("name")}),(0,s.jsx)("p",{className:"mx-auto max-w-[320px] text-sm leading-relaxed text-zinc-600",children:"Create stunning AI images and videos with our unified generator."})]}),(0,s.jsx)("div",{className:"space-y-4",children:u?(0,s.jsxs)(i.$,{size:"lg",className:"h-12 w-full gap-3 rounded-xl border border-amber-300/90 bg-gradient-to-r from-[#ff9d2b] to-[#f7df46] text-base font-semibold text-zinc-900 shadow-[0_10px_22px_rgba(245,158,11,0.22)] transition-all hover:brightness-105",onClick:()=>P(d),disabled:B,children:[B?(0,s.jsx)(x.A,{className:"size-4 animate-spin"}):(0,s.jsx)(o.N,{className:"size-4"}),(0,s.jsx)("span",{children:"Sign in with Google"})]}):(0,s.jsx)("div",{className:"flex w-full items-center flex-col justify-between gap-3",children:(0,s.jsx)(i.$,{size:"lg",className:"h-12 w-full gap-3 rounded-xl border border-amber-300/70 bg-gradient-to-r from-amber-500 to-yellow-300 text-base font-semibold text-zinc-900 shadow-[0_10px_22px_rgba(245,158,11,0.24)] transition-all hover:brightness-105",onClick:S,children:"Sign in"})})}),(0,s.jsx)("div",{className:"text-center text-xs text-zinc-600",children:(0,s.jsxs)("p",{children:["By continuing, you agree to our"," ",(0,s.jsx)(c.XO,{className:"underline transition-colors hover:text-zinc-800",href:g.BV.PrivacyPolicy,children:"Privacy Policy"})," ","and"," ",(0,s.jsx)(c.XO,{className:"underline transition-colors hover:text-zinc-800",href:g.BV.TermsOfService,children:"Terms of Service"}),"."]})})]})})]})]})]})}return(0,s.jsx)("span",{onClick:S,className:"cursor-pointer",children:e})}},59770:(e,t,a)=>{a.d(t,{XO:()=>i,iN:()=>r,tx:()=>c});var s=a(34184),o=a(28574);let{Link:i,getPathname:n,redirect:l,usePathname:r,useRouter:c}=(0,s.A)(o.DT)},67197:(e,t,a)=>{a.d(t,{BV:()=>i,l4:()=>n});var s,o=a(20927),i=((s={}).Root="/",s.FAQ="/#faqs",s.Features="/#features",s.Pricing="/pricing",s.Testimonials="/testimonials",s.Blog="/blog",s.Docs="/docs",s.About="/about",s.Contact="/contact",s.Waitlist="/waitlist",s.Changelog="/changelog",s.Roadmap="/roadmap",s.CookiePolicy="/cookie",s.PrivacyPolicy="/privacy",s.TermsOfService="/terms",s.Disclaimer="/disclaimer",s.Login="/auth/login",s.Register="/auth/register",s.AuthError="/auth/error",s.ForgotPassword="/auth/forgot-password",s.ResetPassword="/auth/reset-password",s.Dashboard="/dashboard",s.AdminUsers="/admin/users",s.SettingsProfile="/settings/profile",s.SettingsBilling="/settings/billing",s.SettingsCredits="/settings/credits",s.SettingsSecurity="/settings/security",s.SettingsNotifications="/settings/notifications",s.Payment="/payment",s.AIText="/ai/text",s.AIImage="/ai/image",s.AIVideo="/ai/video",s.AIBatchVideo="/ai/batch-video",s.AIBatchImage="/ai/batch-image",s.AITextToImage="/ai/text-to-image",s.AIChat="/ai/chat",s.AICommunity="/ai/community",s.AIApps="/ai/apps",s.Chat="/chat",s.Creations="/ai/creations",s.AIAppDetail="/ai/apps/[id]",s.AIProEffects="/ai/pro-effects",s.AIFunEffects="/ai/fun-effects",s.AIImageEffe
1cts="/ai/apps/image-effects",s.AIImageToImageOp="/ai/apps/image-to-image",s.AIVideoEffectsOp="/ai/apps/effects",s.AITools="/ai/apps/ai-tools",s.MagicuiBlocks="/magicui",s.HeroBlocks="/blocks/hero-section",s.LogoCloudBlocks="/blocks/logo-cloud",s.FeaturesBlocks="/blocks/features",s.IntegrationsBlocks="/blocks/integrations",s.ContentBlocks="/blocks/content",s.StatsBlocks="/blocks/stats",s.TeamBlocks="/blocks/team",s.TestimonialsBlocks="/blocks/testimonials",s.CallToActionBlocks="/blocks/call-to-action",s.FooterBlocks="/blocks/footer",s.PricingBlocks="/blocks/pricing",s.ComparatorBlocks="/blocks/comparator",s.FAQBlocks="/blocks/faqs",s.LoginBlocks="/blocks/login",s.SignupBlocks="/blocks/sign-up",s.ForgotPasswordBlocks="/blocks/forgot-password",s.ContactBlocks="/blocks/contact",s);let n=o.u.routes.defaultLoginRedirect??"/dashboard"},75771:(e,t,a)=>{a.d(t,{s:()=>s});function s(e){let t=()=>{let t=e.duration;if(!t||!Number.isFinite(t)||t<=0)return;let a=Math.min(.07,.12*t);e.currentTime>=t-a&&(e.currentTime=0)};return e.addEventListener("timeupdate",t),()=>e.removeEventListener("timeupdate",t)}},99787:(e,t,a)=>{a.d(t,{Cf:()=>m,Es:()=>g,L3:()=>x,c7:()=>u,lG:()=>l,zM:()=>r});var s=a(88999);a(431);var o=a(2944),i=a(94e3),n=a(96244);function l({...e}){return(0,s.jsx)(o.bL,{"data-slot":"dialog",...e})}function r({...e}){return(0,s.jsx)(o.l9,{"data-slot":"dialog-trigger",...e})}function c({...e}){return(0,s.jsx)(o.ZL,{"data-slot":"dialog-portal",...e})}function d({className:e,...t}){return(0,s.jsx)(o.hJ,{"data-slot":"dialog-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",e),...t})}function m({className:e,children:t,showCloseButton:a=!0,overlayClassName:l,...r}){return(0,s.jsxs)(c,{"data-slot":"dialog-portal",children:[(0,s.jsx)(d,{className:l}),(0,s.jsxs)(o.UC,{"data-slot":"dialog-content",className:(0,n.cn)("bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),...r,children:[t,a&&(0,s.jsxs)(o.bm,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground 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 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[(0,s.jsx)(i.A,{}),(0,s.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function u({className:e,...t}){return(0,s.jsx)("div",{"data-slot":"dialog-header",className:(0,n.cn)("flex flex-col gap-2 text-center sm:text-left",e),...t})}function g({className:e,...t}){return(0,s.jsx)("div",{"data-slot":"dialog-footer",className:(0,n.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function x({className:e,...t}){return(0,s.jsx)(o.hE,{"data-slot":"dialog-title",className:(0,n.cn)("text-lg leading-none font-semibold",e),...t})}}}]);
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.